Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on Damage:
- victim is a zombie
- if victim's health - Damage is less than 0:
- cancel event
- heal victim
- if chance of 50%:
- give {Drop.10::%name of victim%} to attacker
- else if chance of 30%:
- give {Drop.12::%name of victim%} to attacker
- else if chance of 10%:
- give {Drop.14::%name of victim%} to attacker
- else if chance of 1%:
- give {Drop.16::%name of victim%} to attacker
- else:
- stop
- on RightClick on a monster:
- Player is Sneaking
- Player has permission "admin.sk"
- set {MobName.%Player%} to name of event-entity
- open chest with 3 row named "&A&lSetting" to player
- loop 27 time:
- add 1 to {_n}
- if {_n}-1 is not 10 or 12 or 14 or 16:
- set slot {_n}-1 of Player's current inventory to dark gray glass pane
- else:
- set {_b} to {_n}-1
- set slot {_b} of Player's current inventory to {Drop.%{_b}%::%name of event-entity%}
- on inventory Click:
- if name of Player's current inventory contains "&A&lSetting":
- if clicked item is dark gray glass pane:
- cancel event
- on inventory close:
- name of Player's current inventory contains "&A&lSetting"
- loop 16 time:
- add 1 to {_n}
- if {_n} is 10 or 12 or 14 or 16:
- set {Drop.%{_n}%::%{MobName.%Player%}%} to slot {_n} of player's current inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement