Advertisement
Akim91

Untitled

Apr 13th, 2021
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. ### Items.yml (requires MythicCrucible) ###
  2.  
  3. FeatherBoots:
  4. Id: LEATHER_BOOTS
  5. Display: 'Feathery Boots'
  6. Lore:
  7. - 'These boots are so light they feel'
  8. - 'like they are made out of feathers'
  9. - ''
  10. - '<#A9A9A9>When falling in the air, press &LLeft Shift'
  11. - '<#A9A9A9>to double jump. You must time it right in'
  12. - '<#A9A9A9>order to get the highest jump'
  13. - ''
  14. - '<#A9A9A9>You may &LLeft Click&R<#A9A9A9> to dash in'
  15. - '<#A9A9A9>the direction that you are already moving in'
  16. - '<#A9A9A9>Can be used with double jump'
  17. Skills:
  18. - skill{s=LMG_DoubleJumpCheck} @self ~onTimer:2
  19. - skill{s=LMG_DirectionalDashCheck} @self ~onSwing
  20. Attributes:
  21. Feet:
  22. Armor: 0
  23. Hide:
  24. - ATTRIBUTES
  25.  
  26. ### Skills.yml ###
  27.  
  28. #### FEATHERY BOOTS ####
  29. ## DOUBLE JUMP ##
  30. LMG_DoubleJumpCheck:
  31. Conditions:
  32. - variableisset{var=caster.canDoubleJump} castinstead LMG_DoubleJumpCheck2
  33. Skills:
  34. - setvariable{var=caster.canDoubleJump;value=0}
  35. - skill{s=LMG_DoubleJumpCheck2}
  36. LMG_DoubleJumpCheck2:
  37. Conditions:
  38. - crouching{} true
  39. - variableequals{var=caster.canDoubleJump;value=0} true
  40. Skills:
  41. - setvariable{var=caster.currentY;type=FLOAT;value=<caster.l.y.double>}
  42. - setvariable{var=caster.checkerY;type=FLOAT;value=<caster.l.y.double>;delay=1}
  43. - variableMath{var=caster.checkerY;equation="<caster.var.checkerY>-<caster.var.currentY>";delay=1}
  44. - skill{s=LMG_DoubleJumpCheck3;delay=1}
  45. LMG_DoubleJumpCheck3:
  46. Conditions:
  47. - variableinrange{var=caster.checkerY;value=<0} true
  48. Skills:
  49. - setvariable{var=caster.canDoubleJump;value=1}
  50. - velocity{m=SET;x=0;y=0.55;z=0}
  51. - skill{s=LMG_onGroundCheck_Loop}
  52. LMG_onGroundCheck_Loop:
  53. Conditions:
  54. - onground{} castinstead LMG_ResetDoubleJump
  55. Skills:
  56. - skill{s=LMG_onGroundCheck_Loop;delay=4}
  57. LMG_ResetDoubleJump:
  58. Skills:
  59. - setvariable{var=caster.canDoubleJump;value=0}
  60.  
  61. ## DIRECTIONAL DASH ##
  62. LMG_DirectionalDashCheck:
  63. Cooldown: 0.75
  64. Skills:
  65. - setvariable{var=caster.lastX;type=FLOAT;value=<caster.l.x.double>}
  66. - setvariable{var=caster.lastZ;type=FLOAT;value=<caster.l.z.double>}
  67. - setvariable{var=caster.xDifference;type=FLOAT;value=%math_1:half-down_<caster.l.x.double>-<caster.var.lastX>%;delay=1}
  68. - setvariable{var=caster.zDifference;type=FLOAT;value=%math_1:half-down_<caster.l.z.double>-<caster.var.lastZ>%;delay=1}
  69. - skill{s=DD_Check1;delay=2}
  70. DD_Check1:
  71. Conditions:
  72. - variableinrange{var=caster.xDifference;value=<0} castinstead DD_NegativeX
  73. - variableinrange{var=caster.xDifference;value=>0} castinstead DD_PositiveX
  74. - variableinrange{var=caster.xDifference;value=0} castinstead DD_NoX
  75. Skills:
  76. # nothing goes here, we take care of all possibilities above
  77. DD_NegativeX:
  78. Conditions:
  79. - variableinrange{var=caster.zDifference;value=<0} castinstead DD_NegativeXNegativeZ
  80. - variableinrange{var=caster.zDifference;value=>0} castinstead DD_NegativeXPositiveZ
  81. - variableinrange{var=caster.zDifference;value=0} castinstead DD_NegativeXNoZ
  82. Skills:
  83. # nothing goes here, we take care of all possibilities above
  84. DD_PositiveX:
  85. Conditions:
  86. - variableinrange{var=caster.zDifference;value=<0} castinstead DD_PositiveXNegativeZ
  87. - variableinrange{var=caster.zDifference;value=>0} castinstead DD_PositiveXPositiveZ
  88. - variableinrange{var=caster.zDifference;value=0} castinstead DD_PositiveXNoZ
  89. Skills:
  90. # nothing goes here, we take care of all possibilities above
  91. DD_NoX:
  92. Conditions:
  93. - variableinrange{var=caster.zDifference;value=<0} castinstead DD_NoXNegativeZ
  94. - variableinrange{var=caster.zDifference;value=>0} castinstead DD_NoXPositiveZ
  95. - variableinrange{var=caster.zDifference;value=0} castinstead DD_NoXNoZ
  96. Skills:
  97. # nothing goes here, we take care of all possibilities above
  98. DD_NegativeXNegativeZ:
  99. Skills:
  100. - velocity{m=set;x=-1.5;y=0;z=-1.5}
  101. DD_NegativeXPositiveZ:
  102. Skills:
  103. - velocity{m=set;x=-1.5;y=0;z=1.5}
  104. DD_NegativeXNoZ:
  105. Skills:
  106. - velocity{m=set;x=-1.5;y=0;z=0}
  107. DD_PositiveXNegativeZ:
  108. Skills:
  109. - velocity{m=set;x=1.5;y=0;z=-1.5}
  110. DD_PositiveXPositiveZ:
  111. Skills:
  112. - velocity{m=set;x=1.5;y=0;z=1.5}
  113. DD_PositiveXNoZ:
  114. Skills:
  115. - velocity{m=set;x=1.5;y=0;z=0}
  116. DD_NoXNegativeZ:
  117. Skills:
  118. - velocity{m=set;x=0;y=0;z=-1.5}
  119. DD_NoXPositiveZ:
  120. Skills:
  121. - velocity{m=set;x=0;y=0;z=1.5}
  122. DD_NoXNoZ:
  123. Skills:
  124. - velocity{m=set;x=0;y=0;z=0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement