Akim91

Untitled

Apr 13th, 2021
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. ### Items.yml (Requires MythicCrucible) ###
  2.  
  3. WarpingStone:
  4. Id: HEART_OF_THE_SEA
  5. Display: '&FWarping Stone'
  6. Lore:
  7. - 'It is said that what was once there is'
  8. - 'always there and can return there at will'
  9. - ''
  10. - '<#A9A9A9>Press &LLeft Click&R to store your'
  11. - '<#A9A9A9>current location and rotation'
  12. - ''
  13. - '<#A9A9A9>Press &LRight Click&R to teleport to'
  14. - '<#A9A9A9>your current stored location'
  15. Skills:
  16. - skill{s=LMG_StoreLocation} @self ~onSwing
  17. - skill{s=LMG_StoredLocationParticles} @self ~onTimer:20
  18. - skill{s=LMG_TeleportToStoredLocationCheck} @self ~onUse
  19.  
  20. ### Skills.yml ###
  21.  
  22. #### WARPING STONE ####
  23. ## WARP ##
  24. LMG_StoreLocation:
  25. Skills:
  26. - setvariable{var=caster.storedX;type=FLOAT;value=<caster.l.x.double>}
  27. - setvariable{var=caster.storedY;type=FLOAT;value=<caster.l.y.double>}
  28. - setvariable{var=caster.storedZ;type=FLOAT;value=<caster.l.z.double>}
  29. - setvariable{var=caster.storedYaw;value=<caster.l.yaw>}
  30. - setvariable{var=caster.storedPitch;value=<caster.l.pitch>}
  31. LMG_TeleportToStoredLocationCheck:
  32. Cooldown: 4
  33. Conditions:
  34. - variableisset{var=caster.storedX} true
  35. - variableisset{var=caster.storedY} true
  36. - variableisset{var=caster.storedZ} true
  37. - variableequals{var=caster.storedX;value=0.0} false
  38. - variableequals{var=caster.storedY;value=0.0} false
  39. - variableequals{var=caster.storedZ;value=0.0} false
  40. Skills:
  41. - teleport{sh=0;sv=0} @location{c=<caster.var.storedX>,<caster.var.storedY>,<caster.var.storedZ>,<caster.var.storedYaw>,<caster.var.storedPitch>}
  42. - setvariable{var=caster.storedX;type=FLOAT;value=0.0} @self
  43. - setvariable{var=caster.storedY;type=FLOAT;value=0.0} @self
  44. - setvariable{var=caster.storedZ;type=FLOAT;value=0.0} @self
  45. LMG_StoredLocationParticles:
  46. Conditions:
  47. - variableisset{var=caster.storedX} true
  48. - variableisset{var=caster.storedY} true
  49. - variableisset{var=caster.storedZ} true
  50. - variableequals{var=caster.storedX;value=0.0} false
  51. - variableequals{var=caster.storedY;value=0.0} false
  52. - variableequals{var=caster.storedZ;value=0.0} false
  53. Skills:
  54. - effect:particles{particle=enchanted_hit;a=10;hs=0.2;vs=0.5;y=0.66;s=0.2} @location{c=<caster.var.storedX>,<caster.var.storedY>,<caster.var.storedZ>}
Advertisement
Add Comment
Please, Sign In to add comment