Ehh... było powiedzieć o tym wcześniej.
options:
rzucaneTNT: tnt of unbreaking 10 named "&4Rzucane &cTnT"
import:
org.bukkit.event.inventory.PrepareItemCraftEvent
on right click:
player's tool is {@rzucaneTNT}
shoot a tnt from player with speed 0.7
set player's tool to (item amount of player's tool - 1) of player's tool
on PrepareItemCraftEvent:
set {_matrix::*} to event.getInventory().getMatrix()
{_matrix::*} is 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 emerald, 64 tnt, 64 tnt, 64 tnt and 64 tnt
set {_result} to {@rzucaneTNT}
event.getInventory.setResult({_result})
Sprawdź działanie skryptu. Wymagany dodatek skript-reflect. Upewnij się, że używasz zwykłych szmaragdów i zwykłych TNT.
Jeżeli to nie zadziała, trzeba będzie po prostu sprawdzać kolejno sloty.