This is my first plugin that I am releasing to the public. I made this in maybe 30 min because the Idea came to me and I thought it would be easy and fun to make. I made this for people who have their own(probably locally hosted) server and are bored and feeling destructive. This basically just takes all the dirt ,64 blocks below you and 32 above you and in a 50 block radius(by default) from a sign that you right click that says "dirt to tnt"(without quotes), and turns into !!! This is a great plugin for the bored and Destructive mind. Sign formula: ------------------------------ |______dirt to tnt_____| OR |_______[reset]______| |______<radius>_____| |______<Depth>_____| |______<Height>_____| Features: Turns dirt that is 50 below, 50 above, and in a 50 block radius of a sign that says Dirt To TNT (Not case sensitive and Block measures are default) Change Log: v.0.6: added a reset. Same format as the normal 'dirt to tnt' but instead put '[reset]' on the first line and it replaces all tnt with dirt. v:0.5: Fixed a bug where you has to fill in all 4 lines in order for it to work Old Change Log (Move your mouse to reveal the content) Old Change Log (open) Old Change Log (close) v:0.4: Added depth/Height choosing Added support for newest Bukkit build that supports Minecraft 1.8 (1124)[1317(I didn't change anything)] Fixed a few small mistakes. v:0.3: Added being able to choose your radius on the second line of the sign. v:0.2: Fixed Server crashing v:0.1: Release Notes: SHOULDN'T be used with good servers (will end up ruining everything) For pure enjoyment, serves no practical purpose. Can cause A LOT of lag. TNT underground can be lit by lava. So if TNT starts randomly blowing-up that's probably why. If done at or below sea level (without any constraints) TNT will go down as far a bedrock. If done below sea level, you will crash because the program is trying to go below bedrock. Same thing will happen if you are too high. To activate put Dirt To TNT on a sign and right click it. Pictures (Move your mouse to reveal the content) Pictures (open) Pictures (close) Before: After: To Do: Any suggestions??? Bucket Dev downloads File NAME is TNT_Dirt
You can stop the crashing by adding a single IF statment inside the for loops in your code. Example is below, with arrows to highlight the change. Code: for(makeX = signX - 50; makeX <= signX + 50; makeX++){ for(makeZ = signZ - 50; makeZ <= signZ + 50; makeZ++){ for(makeY = signY - 64; makeY <= signY + 32; makeY++){ ---> if(makeY > 0 && makeY < 129){ ---> blockToChange = world.getBlockAt(makeX, makeY, makeZ); ---> if(blockToChange.getTypeId() == 2 || blockToChange.getTypeId() == 3){ ---> blockToChange.setTypeId(46); ---> } } } } }
Thanks I've been trying to figure out a way to do that and I ended up WAY over thinking it. If anyone could help me on getting rid of the double spoilers that would be appreciated. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
The double spoilers always seem to show up for me whenever I'm using the Edit feature... still haven't figured out how to get rid of them...
Um no? As of now, the most updated Bukkit version is 1060 and it does not work with 1.8 They're trying to get the new Bukkit version released with no bugs and working for 1.8. EDIT: Haha sorry I'm wrong. I thought he said 1024 instead of 1124. My mistake! XD
@thejoe4949 1124 is the newest build but it isn't recommended because it has a few bugs in it. EDIT: The reason I use it for this is because at the time I noticed it I had nothing going on and decided to make sure that it would still work with the bukkit versions for 1.8
@Buckethead All of the builds are dev builds. The ones that they put up are recommended builds and that is because they are relatively bug free.
nothing happens its just saying "you ready your fists" then it says "you lower your fists" then nothing happens.
@marinclaric 1. make sure that you have the latest version of bukkit installed on your server 2. I realized that there is an error that makes it so that you have to fill in the radius depth and height lines. I'll get to fixing that. EDIT: Fixed
= I really should download this plugin but I dont wont my server destroyed but I LOVE THIS PLUGIN!!!!