[FUN/MISC]Dirt To TNT v.0.6 - Unleash Dirt's True Potential[1317]

Discussion in 'Inactive/Unsupported Plugins' started by Jogy34, Aug 28, 2011.

  1. Offline

    Jogy34

    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 [grass] into [tnt]!!!

    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 (open)

    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 :D


    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 (open)


    Before:
    2011-08-29_16.42.24.png

    After:
    2011-08-29_16.42.46.png



    To Do:

    • Any suggestions???
    Bucket Dev downloads

    File NAME is TNT_Dirt
     
  2. Offline

    Professor29

    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);
    --->					}
                			}
                		}
                	}
                }
     
  3. Offline

    Jogy34

    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.
     
    Last edited by a moderator: May 19, 2016
  4. Offline

    Professor29

    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...
     
  5. Offline

    Taco

    Remove any sort of formatting in or within 1 character of the spoiler tags. That should fix it.
     
  6. Offline

    Jogy34

    Thanks Taco
     
  7. Offline

    Buckethead

    omg is 1124 1.8 where do i get it?
     
  8. Offline

    thejoe4949

    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
     
  9. You can get the newest builds here.
     
  10. Offline

    Jogy34

    @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
     
  11. Offline

    thejoe4949

    Oh... Ok well I guess I'm wrong XD. Anyway nice plugin.
     
  12. Offline

    Buckethead

    is it a dev build or official release?
     
  13. Offline

    Jogy34

    @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.
     
  14. Offline

    Buckethead

    ok ty
     
  15. Offline

    marinclaric

    nothing happens its just saying "you ready your fists" then it says "you lower your fists" then nothing happens. :(
     
  16. Offline

    Jogy34

    @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 :D
     
  17. Offline

    shadowlockie1

    [dirt] = [tnt]

    I really should download this plugin but I dont wont my server destroyed but I LOVE THIS PLUGIN!!!!
     
  18. Offline

    kdalips

    umm... the reset doesn't work...
     
  19. Offline

    Jogy34

    @kdalips sorry I think I uploaded the wrong file. It should be good to go now
     
  20. Offline

    sanderhandeland

    looks sort of sexy :D , testing it.
     
  21. Offline

    marinclaric

    awesome plugin! i love it!
     

Share This Page