Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- itemname = "&6&lBite Wand" #The name of the item the player has to be holding (INCLUDING COLOR CODES).
- damage = 3.5 #The damage you want it to deal to the player.
- command /givewand: #---To give me the wand for testing. Delete this command if you don't want it!---#
- trigger:
- give a blaze rod with name "%{itemname}%" to player
- on right click: #---To shoot snowball for testing. Delete this command if you don't want it!---#
- player is holding a blaze rod named "%{itemname}%":
- shoot a snowball from the player at speed 1.5
- on damage:
- if attacker is a player:
- attacker is holding a blaze rod named "%{itemname}%":
- if victim is a player:
- #if true is true:
- damage the victim by {damage}
- set {_vy} to victim's y-coordinate
- set {_ay} to attacker's y-coordinate
- set {_ydif1} to {_ay} - {_vy}
- set {_ydif2} to {_vy} - {_ay}
- if {ay} is bigger than {vy}:
- set {_value} to the location {_ydif1} meters below the attacker
- push victim (direction from {_value} to victim) at speed 0.5
- push victim upwards at speed 0.5
- else:
- set {_value} to the location {_ydif2} meters above the attacker
- push victim (direction from {_value} to victim) at speed 0.5
- push victim upwards at velocity 0.5
- #----IMPORTANT----#
- #if the wand is not a blaze rod then change all the 'blaze rod' to the item that your wand is.
- #Change the variables to your needs!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement