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%name of player's tool% &a+鉄塊"
- synthesize(player)
- if player's offhand item is spider eye:
- set name of player's tool to "&f%name of player's tool% &a+クモの目"
- synthesize(player)
- function synthesize(p: player):
- remove 1 of {_p}'s offhand item from {_p}
- command "/execute %{_p}% ~ ~ ~ playsound minecraft:ui.button.click master %{_p}% ~ ~ ~ 1 1"
- on damage:
- attacker is a player
- set {_itemName} to name of attacker's tool
- if {_itemName} contains "+鉄塊":
- damage victim by 2 hearts
- if {_itemName} contains "+クモの目":
- apply potion of poison of tier 2 to victim for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment