NUKE COMMAND

Status
This thread has been locked.

21Callcops

Feedback score
1
Posts
85
Reactions
10
Resources
0
Does anyone know how to edit the /Nuke command?
So far i have edited the message but i want to edit the amount of tnt that falls. Is this possible and if so, how?

Also sorry if this is in the wrong category i was unsure of what category this would fit into.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Norska

Java Developer (https://norska.dev)
Supreme
Feedback score
68
Posts
901
Reactions
1,407
Resources
14
It's not possible to do via Essentials, you'd need a full recode of the nuke feature if you want to be able to further tweak it.
 

21Callcops

Feedback score
1
Posts
85
Reactions
10
Resources
0
It's not possible to do via Essentials, you'd need a full recode of the nuke feature if you want to be able to further tweak it.
ahhhh ok that's annoying. Do u know of a plugin similar to that or a meteor plugin?
 

Norska

Java Developer (https://norska.dev)
Supreme
Feedback score
68
Posts
901
Reactions
1,407
Resources
14
ahhhh ok that's annoying. Do u know of a plugin similar to that or a meteor plugin?
Googling might help, but other than that the actual code for the nuke command is like 10 lines, it'd be more than easy to edit if you have basic coding knowledge.

Code:
final Location loc = player.getLocation();
            final World world = loc.getWorld();
            for (int x = -10; x <= 10; x += 5) {
                for (int z = -10; z <= 10; z += 5) {
                    final Location tntloc = new Location(world, loc.getBlockX() + x, world.getHighestBlockYAt(loc) + 64, loc.getBlockZ() + z);
                    final TNTPrimed tnt = world.spawn(tntloc, TNTPrimed.class);
                }
            }
 

21Callcops

Feedback score
1
Posts
85
Reactions
10
Resources
0
Ok thank you! I have no clue how to code so for me that's impossible xD[DOUBLEPOST=1557162346][/DOUBLEPOST]
Googling might help, but other than that the actual code for the nuke command is like 10 lines, it'd be more than easy to edit if you have basic coding knowledge.

Code:
final Location loc = player.getLocation();
            final World world = loc.getWorld();
            for (int x = -10; x <= 10; x += 5) {
                for (int z = -10; z <= 10; z += 5) {
                    final Location tntloc = new Location(world, loc.getBlockX() + x, world.getHighestBlockYAt(loc) + 64, loc.getBlockZ() + z);
                    final TNTPrimed tnt = world.spawn(tntloc, TNTPrimed.class);
                }
            }
Ok thank you! I have no clue how to code so for me that's impossible xD
 

Norska

Java Developer (https://norska.dev)
Supreme
Feedback score
68
Posts
901
Reactions
1,407
Resources
14
Ok thank you! I have no clue how to code so for me that's impossible xD[DOUBLEPOST=1557162346][/DOUBLEPOST]
Ok thank you! I have no clue how to code so for me that's impossible xD
What do you want to be able to edit exactly?
 

Norska

Java Developer (https://norska.dev)
Supreme
Feedback score
68
Posts
901
Reactions
1,407
Resources
14
It's ready, you can download it here: http://www.filedropper.com/nukeedit_1

For anyone interested in the config, it's here:
Code:
# NukeEdit, project by Norska#1933

# Permissions:
# 1. nuke.use
# 2. nuke.reload

# Notes:
# 1. radius = The radius of the the nuke.
# 2. maxYExtraHeight = The additional height added on top of the highest Y coord at the player's location.
# 3. blockDamage = whether the nuke damages blocks or not.
# 4. safeGuardDuration = for how many seconds tnts will be harmless after the nuke (increase or decrease based on the height).
# 5. gapBetweenTNT = how wide the gap between TNT is, this will decrease the amount of TNT spawned (up radius to increase amount).

# Default Essentials Settings: radius = 10, maxYExtraHeight = 64, blockDamage = false, gapBetweenTNT = 5

settings:
   radius: 10
   maxYExtraHeight: 64
   blockDamage: false
   safeGuardDuration: 10
   gapBetweenTNT: 10
  
messages:
   menu:
   - '&c&lNukerEdit'
   - ''
   - ' &7&o/nuke <name>'
   - ' &7&o/nuke all'
   - ' &7&o/nuke reload'
   - ''
   nuker:
   - '&c&lYou nuked %player%!'
   targetOffline:
   - '&c&l%player% is offline and cannot be nuked!'
   nukerAll:
   - '&c&lYou nuked everyone!'
   nuked:
   - '&c&lYou were nuked by %player%!'

If my link or download gets removed for whatever reason but you still want the plugin, add me on Discord. Norska#1933

Note: /nuke all does not nuke the nuker (this is not a bug), if you want to nuke yourself use /nuke <your name>.[DOUBLEPOST=1557166107][/DOUBLEPOST]Lmk if you want any other features 21Callcops
 
Last edited:

21Callcops

Feedback score
1
Posts
85
Reactions
10
Resources
0
Ok
It's ready, you can download it here: http://www.filedropper.com/nukeedit

For anyone interested in the config, it's here:
Code:
# NukeEdit, project by Norska#1933

# Notes:
# 1. radius = The radius of the the nuke.
# 2. maxYExtraHeight = The additional height added on top of the highest Y coord at the player's location.
# 3. blockDamage = whether the nuke damages blocks or not.
# 4. safeGuardDuration = for how many seconds tnts will be harmless after the nuke (increase or decrease based on the height).
# 5. gapBetweenTNT = how wide the gap between TNT is, this will decrease the amount of TNT spawned (up radius to increase amount).

# Default Essentials Settings: radius = 10, maxYExtraHeight = 64, blockDamage = false, gapBetweenTNT = 5

settings:
   radius: 10
   maxYExtraHeight: 64
   blockDamage: false
   safeGuardDuration: 10
   gapBetweenTNT: 10
 
messages:
   menu:
   - '&c&lNukerEdit'
   - ''
   - ' &7&o/nuke <name>'
   - ' &7&o/nuke all'
   - ' &7&o/nuke reload'
   - ''
   nuker:
   - '&c&lYou nuked %player%!'
   targetOffline:
   - '&c&l%player% is offline and cannot be nuked!'
   nukerAll:
   - '&c&lYou nuked everyone!'
   nuked:
   - '&c&lYou were nuked by %player%!'

If my link or download gets removed for whatever reason but you still want the plugin, add me on Discord. Norska#1933

Note: /nuke all does not nuke the nuker (this is not a bug), if you want to nuke yourself use /nuke <your name>.
Ok thank you so much!!!
 
Status
This thread has been locked.
Top