Hello, I am trying to change an NBT tag on a spawn egg, to allow me to use multiple spawn eggs for the same function. I have tried custom name but it doesn't seem to work.
If any one is able to help. Im new to skript and console commands, but have java knowledge, So any response if it could be explained to suit would be much appreciated. Thanks.
Code:
On rightclick holding spawn egg:
if "%name of tool of player%" contains "&dThrowable Egg 1":
cancel event
make the player shoot a egg at speed 1
execute console command "/execute %shooter% ~ ~ ~ /entitydata @e[type=Egg,r=2] {xTile:5546}"
On projectile hit:
broadcast "Test: %nbt of event-entity%"
If any one is able to help. Im new to skript and console commands, but have java knowledge, So any response if it could be explained to suit would be much appreciated. Thanks.