Dobra działa mi juz ale musialem z innego kodu troche wziac z tego co mi pomagales 2 dni temu lub 1 dzien temu. I tak przypne ci najlepsza odpowiedz
Nie craftuje sie nwm czemu jest 0 errorow
import:
org.bukkit.event.inventory.PrepareItemCraftEvent
options:
rzucaneTNT: tnt of unbreaking 10 named "&4Rzucane &cTnT"
on right click:
player's tool is {@rzucaneTNT}
cancel event
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::1} is 64 tnt
{_matrix::2} is 64 tnt
{_matrix::3} is 64 tnt
{_matrix::4} is 64 tnt
{_matrix::5} is 64 emerald
{_matrix::6} is 64 tnt
{_matrix::7} is 64 tnt
{_matrix::8} is 64 tnt
{_matrix::9} is 64 tnt
set {_result} to 1 of {@rzucaneTNT}
event.getInventory.setResult({_result})
command /rzucak:
permission: skipmc.rzucak
permission message: &cNie posiadasz permisje &8(&6skipmc.rzucak&8)
trigger:
give player 1 of {@rzucaneTNT}
masz to jest kod