Recently, I stumbled in a problem where no matter what I do with the player inventory, I cannot put an item in an anvil. Help? Also, I don't want to change plugins, so don't mention it unless it is impossible otherwise.
Code:
function NameEvent():
send "1" to {p}
wait 3 ticks
open anvil window to {p}
send "2" to {p}
wait 1 tick
set slot 0 of current inventory of {p} to 1 name tag with name "Name Event"
Plugins:
Skript, skQuery, skVault
Code:
function NameEvent():
send "1" to {p}
wait 3 ticks
open anvil window to {p}
send "2" to {p}
wait 1 tick
set slot 0 of current inventory of {p} to 1 name tag with name "Name Event"
Plugins:
Skript, skQuery, skVault