on load:
set {tnt} to "RzucaneTNT"
new Recipe {tnt};
{tnt}.Recipe.setIngredient{1, 1 tnt};
{tnt}.Recipe.setIngredient{2, 1 tnt};
{tnt}.Recipe.setIngredient{3, 1 tnt};
{tnt}.Recipe.setIngredient{4, 1 tnt};
{tnt}.Recipe.setIngredient{5, 1 emerald block};
{tnt}.Recipe.setIngredient{6, 1 tnt};
{tnt}.Recipe.setIngredient{7, 1 tnt};
{tnt}.Recipe.setIngredient{8, 1 tnt};
{tnt}.Recipe.setIngredient{9, 1 tnt};
{tnt}.Recipe.setResult{1 tnt named "&c&lRzucane Tnt"};
{tnt}.Recipe.register{};
on right click with tnt block:
if name of player's tool is "&c&lRzucane Tnt":
shoot a tnt from player with speed 0.2
remove 1 tnt named "&c&lRzucane Tnt" with lore "&a&lwystrzel tnt na ponad 0.2 kratki! &c(DO USTAWIENIA W CONFIGU)" from player
stop
on place tnt block:
if name of player's tool is "&c&lRzucane Tnt":
cancel event
shoot a tnt from player with speed 0.2
remove 1 tnt named "&c&lRzucane Tnt" with lore "&a&lwystrzel tnt na ponad 0.2 kratki! &c(DO USTAWIENIA W CONFIGU)" from player
stop
command /tnt:
permission: tnt
permission message: &cBrak uprawnien!
trigger:
give 64 tnt named "&c&lRzucane Tnt" with lore "&a&lwystrzel tnt na ponad 0.2 kratki! &c(DO USTAWIENIA W CONFIGU)" to player
stop
a dodał byś do tego skryptu na %region at player%" contain "spawn":
cancel event