I'm working on an rpg server and I'm trying to make wolves that drop one bone when killed, this works. But I'm making a weapon that when killing them puts the items straight into the players inventory. My Code:
if attacker's held item is iron shovel named "&7Bone Drill":
stop
else:
on death:
victim is wolf:
set {_drop} to bone named "&8Wolf Bone"
drop {_drop} at victim's location
This is my first time trying conditions, the if and stop work but its saying it doesn't understand else and doesn't understand the iron shovel bit (I attached a photo of the error message)
Here is the other part of the code that drops the 2x items and is ment to put it into your inventory:
on death:
victim is wolf:
if attacker's held item is iron shovel named "&7Bone Drill":
give attacker 2 bones named "&8Wolf Bone"
If anyone has any idea what's going wrong and how I can fix it I would be grateful. Thanks!
if attacker's held item is iron shovel named "&7Bone Drill":
stop
else:
on death:
victim is wolf:
set {_drop} to bone named "&8Wolf Bone"
drop {_drop} at victim's location
This is my first time trying conditions, the if and stop work but its saying it doesn't understand else and doesn't understand the iron shovel bit (I attached a photo of the error message)
Here is the other part of the code that drops the 2x items and is ment to put it into your inventory:
on death:
victim is wolf:
if attacker's held item is iron shovel named "&7Bone Drill":
give attacker 2 bones named "&8Wolf Bone"
If anyone has any idea what's going wrong and how I can fix it I would be grateful. Thanks!