All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Lucky TNT Lib

Lucky TNT Lib

by Fleshcrafter • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Lucky TNT Lib 💥

Banner

✏️About

Lucky TNT Lib does not offer any content on its own! It is a mod designed to be used as a library for mods that implement TNT and other explosives. It simplifies the workflow of creating a TNT significantly and offers easy-to-use and quick methods to design your TNT and edit your world, easening the repetitive tasks of creating explosives. Lucky TNT Lib is also updated fairly frequently and includes documentation to make for an even easier start in development.

❓What does Lucky TNT Lib offer?

We offer a wide range of useful functions. We easen up the repetitive workflow of creating explosives by simplifying it a lot, taking away almost all the registering work and collapsing it into simple booleans. We also allow for easy customisation of TNT post registering, fast and easy editing of your world with various functions and much more.

❓Can I see the source code?

Yeah, sure! We have uploaded both our projects, Lucky TNT Lib and Lucky TNT Mod, to GitHub. If you want to take a look at the source code, just click on one of the links.\ Lucky TNT Lib: here\ Lucky TNT Mod: here

❓Can I implement the mod into my project?

Yes! To do that you can click here. Implement the mod and you are ready to use Lucky TNT Lib as a dependency for your mod. This will have the added benefit of the source code being present already. If you don't know how to get started with Lucky TNT Lib or don't know how to implement it, follow the tutorial on our Lucky TNT Lib Github page here!

💥You got questions or ideas?

Join the SlimingHD & Fleshcrafter Discord Server here and meet us, the developers of this mod and many other nice people! You can chat with us, ask questions, report bugs, give ideas and get a closer look on our upcoming projects!

🧨Main Mod and other Addons

Main Mod files:

  • Lucky TNT Mod: Download the Lucky TNT Mod here!
  • Lucky TNT LeKoopa: Download the Lucky TNT LeKoopa Addon here!

Honorable Addons:

  • Unlucky TNT: Download Unlucky TNT here!
  • Silly TNT: Download Silly TNT here!

🚧Progress

Forge:\ 1.21 - Finished, Updates may still be created\ 1.20.5/1.20.6 - Finished, Updates may still be created\ 1.20.3/1.20.4 - Finished, Updates may still be created\ 1.20.2 - Finished, Updates may still be created\ 1.20/1.20.1 - Finished, Updates may still be created\ 1.19.4 - Finished, No more updates\ 1.19.3 - Finished, No more updates\ 1.19.2 - Finished, No more updates\ 1.19.1 or older - Not planned

NeoForge:\ 1.21 - Finished, Updates may still be created\ 1.20.5/1.20.6 - Finished, Updates may still be created\ 1.20.4 or older - Not planned

Fabric:\ 1.21 - Finished, Updates may still be created\ 1.20.5/1.20.6 - Finished, Updates may still be created\ 1.20.3/1.20.4 - Finished, Updates may still be created\ 1.20.2 - W.I.P.\ 1.20/1.20.1 - W.I.P.\ 1.19.4 or older - Not planned

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.x
Forge
17h ago 1
1.21
Fabric
17h ago 1
1.21
Forge
17h ago 1
1.21
Neoforge
17h ago 1
1.20.x
Fabric
17h ago 1
1.20.x
Fabric
17h ago 1
1.20.x
Neoforge
17h ago 1
1.20.x
Forge
17h ago 1
1.20.x
Forge
17h ago 1
1.20.2
Forge
17h ago 1
1.20.x
Forge
17h ago 1
1.19.4
Forge
17h ago 1
1.19.3
Forge
17h ago 1
1.19.2
Forge
17h ago 1
1.20.x
Forge
17h ago 1
1.20.2
Forge
17h ago 1
1.20.x
Forge
17h ago 1
1.19.4
Forge
17h ago 1
1.19.3
Forge
17h ago 1
1.19.2
Forge
17h ago 1
## **General**

### **Performance:**
  • Raytraced explosions now support multi-threading (this is enabled by default, but can be disabled in the config)
  • To allow for further optimization on different devices, we have added some settings to the config for multi-threading
  • Even when not multi-threaded, raytraced explosions are still much faster now
  • Non-raytraced explosions are much faster now at the cost of omitting block updates (the threshold can be adjusted in the config)

### **Additions:**
  • You can now enable explosion profiling to benchmark explosions on your device (this is disabled by default, but can be enabled in the config)
  • Explosions can now display particles

### **Changes:**
  • The "Explosion Performance Factor" and the "Performant Explosion" config values are no longer used, but remain in place to allow for backwards compatability (they will be removed in future versions)

## **Developers**

### **ImprovedExplosion:**
  • All old block explosion methods have been deprecated in favor of the new one
  • Multi-threading cannot be enabled / disabled by the developer, only the user can decide whether to use it
  • To ensure additional work that should complete after an explosion has concluded is executed at the right time, Improved Explosions now support the option to supply a consumer that executes after an explosion finished (only necessary for explosions that run the risk of being multi-threaded, as blocking the main thread is not possible without a deadlock)
  • To support custom effects, Improved Explosions can optionally be given a BlockExplosionEffect, which will leave the finishing of the explosion to your provided effect (Try to use the new rule system where possible instead for the best performance)

### **ExplosionHelper:**
  • All old explosion methods have been depreacted in favor of the new ones
  • All explosions exist in a slow (performing block updates) and fast version
  • Additionally, a custom BlockExplosionEffect can be applied to all shapes (Try to use the new rule system where possible instead for the best performance)

### **Additions (Utility):**
  • LightUpdateHelper: Helper class for updating direct and indirect lights when using fast removal operations, which would otherwise not update light at all (They are called in Improved Explosions and the ExplosionHelper)
  • HeightmapUpdateHelper: Helper class for updating the height maps when using fast removal operations, which would otherwise not update them (They are called in Improved Explosions and the ExplosionHelper)
  • BiomeSetter: Similar to the ExplosionHelper, allowing for the modification of biomes in Cube, Sphere, and Cylinder shapes
  • ExplosionRule System: See below for full explanation

### **ExplosionRule System:**
  • ExplosionRules were introduced to allow the new fast explosion methods to have customizable results for every block they affect
  • ExplosionRules must be registered, as they will have to be synched to the client, making it crucial that their behavior on both logical sides is identical
  • Custom ExplosionRules can be created, but this mod already provides a large selection of ExplosionRules that can be used to filter blocks, provide block states for placement, or perform logical operations
  • ExplosionRules are purely local, as they can only edit one block at a time, making them not applicable in all situations
  • Ported the mod to 1.21**
  • Ported the mod to 1.21**
  • Ported the mod to 1.21**
  • The Fabric version has been ported to 1.20.5/1.20.6**
### **The Mod has been ported to Fabric!**

  • Changes**:
  • Configuration of this mod is now accessible through the new Item "TNT Config" found in the Ingredients Tab
Ported to NeoForge
#### Fixes:

  • LivingPrimedLTNT can now be killed using /kill or the void
  • Updated and improved the Config Screen
  • Performant Explosion is now on by default (may still be off, if you already ran a version of Lucky TNT Lib)
  • General:**
  • Updated Forge to version 49.0.50

  • Fixes:**
  • LivingPrimedLTNT can now be killed using /kill or the void
  • Updated and improved the Config Screen
  • Performant Explosion is now on by default (may still be off, if you already ran a version of Lucky TNT Lib)
  • General:**
  • Updated Forge to version 48.1.0

  • Fixes:**
  • LivingPrimedLTNT can now be killed using /kill or the void
  • Updated and improved the Config Screen
  • Performant Explosion is now on by default (may still be off, if you already ran a version of Lucky TNT Lib)
  • General:**
  • Updated Forge to version 47.2.32

  • Fixes:**
  • LivingPrimedLTNT can now be killed using /kill or the void
  • Updated and improved the Config Screen
  • Performant Explosion is now on by default (may still be off, if you already ran a version of Lucky TNT Lib)
  • General:**
  • Updated Forge to version 45.2.15

  • Fixes:**
  • LivingPrimedLTNT can now be killed using /kill or the void
  • Updated and improved the Config Screen
  • Performant Explosion is now on by default (may still be off, if you already ran a version of Lucky TNT Lib)
  • General:**
  • Updated Forge to version 44.1.23

  • Fixes:**
  • LivingPrimedLTNT can now be killed using /kill or the void
  • Updated and improved the Config Screen
  • Performant Explosion is now on by default (may still be off, if you already ran a version of Lucky TNT Lib)
  • General:**
  • Updated Forge to version 43.3.13

  • Fixes:**
  • LivingPrimedLTNT can now be killed using /kill or the void
  • Updated and improved the Config Screen
  • Performant Explosion is now on by default (may still be off, if you already ran a version of Lucky TNT Lib)
#### Fixes:
  • 1.20.2: TNT Minecart Dispense position fixed
  • TNT Minecart Stack size reduced to 1
  • 1.20.2: TNT Minecarts can't destroy themselves through explosions anymore
  • Lucky TNT Blocks being blown up would leave the respecting Block behind
#### Fixes:
  • TNT Minecart Dispense position fixed
  • TNT Minecart Stack size reduced to 1
  • TNT Minecarts can't destroy themselves through explosions anymore
  • Lucky TNT Blocks being blown up would leave the respecting Block behind
#### Fixes:
  • TNT Minecart Stack size reduced to 1
  • Lucky TNT Blocks being blown up would leave the respecting Block behind
#### Fixes:
  • TNT Minecart Stack size reduced to 1
  • Lucky TNT Blocks being blown up would leave the respecting Block behind
#### Fixes:
  • TNT Minecart Stack size reduced to 1
  • Lucky TNT Blocks being blown up would leave the respecting Block behind
#### Fixes:
  • TNT Minecart Stack size reduced to 1
  • Lucky TNT Blocks being blown up would leave the respecting Block behind
Lucky TNT Lib Icon
Download Lucky TNT Lib
Select game version
Select platform