How would I make it so that if the player can like the "nuke" and have it so that it has a 5x times bigger blast radius than a normal tnt? Code:java package me.hbc.main; import java.util.Arrays; import org.bukkit.Bukkit;import org.bukkit.ChatColor;import org.bukkit.Material;import org.bukkit.event.EventHandler;import org.bukkit.event.Listener;import org.bukkit.event.player.PlayerInteractEvent;import org.bukkit.inventory.ItemStack;import org.bukkit.inventory.ShapedRecipe;import org.bukkit.inventory.meta.ItemMeta;import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin implements Listener { public void onEnable() { System.out.println("LRnuke has been enabled!"); ItemStack nuke = new ItemStack(Material.TNT, 1); ItemMeta meta = nuke.getItemMeta(); meta.setDisplayName(ChatColor.RED + "Nuke"); meta.setLore(Arrays.asList("This nuke has 10x the power of a normal tnt!")); nuke.setItemMeta(meta); ShapedRecipe nuker = new ShapedRecipe(nuke); nuker.shape( "*!*", "!#!", "*!*"); nuker.setIngredient('!', Material.BLAZE_ROD); nuker.setIngredient('*', Material.EMERALD); nuker.setIngredient('#', Material.TNT); Bukkit.getServer().addRecipe(nuker); } @EventHandler public void playere(PlayerInteractEvent e) { }}
Moved to the correct forum. Evildude221 Please just report the post, as stating that often causes the OP to repost in the correct section, causing dupes when we move the thread.
Well, if you know the moment you are triggering the explosion then: remove the block or entity or whatever you are using as the nuke and do: World w.createExplosion(no idea). Play around with that, I haven't used any of that yet.