Cuberite Forum

Full Version: Tnt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Tnt v1
This is my first script for this software
How to use
All it does at this point is make tnt do something, i do know it is not perfect but i am working on it.
Bugs:
  • It wont kill the player when it blows
  • It does not give any drops
  • It only works when you place tnt, there is no way of me adding this t'ill i know how to use the delete function
  • If you place the tnt right next to a cactus it crash's the server, idk why this is
If you see any bugs that i don't have please tell me
Planned features:
  • Making it kill the player(or add damage)
  • Making tnt blow other tnt
Change log:
v2:
  • added a command to turn tnt on or off
  • added a command to turn random tnt mode on or off
Also if you know how to use the delete function, please tell meBig Grin

Just an idea, you might want to check out how this would work using recursion to let TNT set of other TNT.

Create a function that loops over the area like you do, but if it hits a block that is TNT, call the function again using new starting position.

I can do this if you don't want to or don't know how.


Also, OnBlockDig works the exact same as OnBlockPlace.
Want to recreate TNT? Read this Smile
http://www.minecraftwiki.net/wiki/Explosion