Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click:
- player is sneaking
- set {_itemName} to name of player's tool
- {_itemName} does not contain "+"
- if player's offhand item is iron nugget:
- set name of player's tool to "&f%{_itemName}% &a+鉄塊"
- synthesize()
- if player's offhand item is spider eye:
- set name of player's tool to "&f%{_itemName}% &a+クモの目"
- synthesize()
- function synthesize():
- remove 1 of player's offhand item from player
- play sound "ui.button.click" with volume 1 and pitch 2 at player
- on damage:
- attacker is a player
- attacker's tool is not air
- player does not have player's tool on cooldown:
- set {_itemName} to name of attacker's tool
- if "+鉄塊" is in {_itemName}:
- set damage of event to (damage of event + 2)
- if "+クモの目" is in {_itemName}:
- apply potion of poison of tier 2 to victim for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment