Advertisement
kjfalkeiae

- SkriptCodeEditor

Jun 25th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. on damage:
  2. attacker is a player
  3. send "Attacker is a player" to attacker
  4. victim is a villager
  5. send "Victim is a villager" to attacker
  6. cancel event
  7. send "Opening" to attacker
  8. open victim's inventory to attacker
  9. send "Open" to attacker
  10. if victim's inventory contains 1 dirt:
  11. add 10 to {money.%uuid of attacker%}
  12. remove 1 dirt from victim's inventory
  13.  
  14. command /skmoney:
  15. trigger:
  16. send "%{money.%uuid of player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement