Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Items.yml (requires MythicCrucible) ###
- FeatherBoots:
- Id: LEATHER_BOOTS
- Display: 'Feathery Boots'
- Lore:
- - 'These boots are so light they feel'
- - 'like they are made out of feathers'
- - ''
- - '<#A9A9A9>When falling in the air, press &LLeft Shift'
- - '<#A9A9A9>to double jump. You must time it right in'
- - '<#A9A9A9>order to get the highest jump'
- - ''
- - '<#A9A9A9>You may &LLeft Click&R<#A9A9A9> to dash in'
- - '<#A9A9A9>the direction that you are already moving in'
- - '<#A9A9A9>Can be used with double jump'
- Skills:
- - skill{s=LMG_DoubleJumpCheck} @self ~onTimer:2
- - skill{s=LMG_DirectionalDashCheck} @self ~onSwing
- Attributes:
- Feet:
- Armor: 0
- Hide:
- - ATTRIBUTES
- ### Skills.yml ###
- #### FEATHERY BOOTS ####
- ## DOUBLE JUMP ##
- LMG_DoubleJumpCheck:
- Conditions:
- - variableisset{var=caster.canDoubleJump} castinstead LMG_DoubleJumpCheck2
- Skills:
- - setvariable{var=caster.canDoubleJump;value=0}
- - skill{s=LMG_DoubleJumpCheck2}
- LMG_DoubleJumpCheck2:
- Conditions:
- - crouching{} true
- - variableequals{var=caster.canDoubleJump;value=0} true
- Skills:
- - setvariable{var=caster.currentY;type=FLOAT;value=<caster.l.y.double>}
- - setvariable{var=caster.checkerY;type=FLOAT;value=<caster.l.y.double>;delay=1}
- - variableMath{var=caster.checkerY;equation="<caster.var.checkerY>-<caster.var.currentY>";delay=1}
- - skill{s=LMG_DoubleJumpCheck3;delay=1}
- LMG_DoubleJumpCheck3:
- Conditions:
- - variableinrange{var=caster.checkerY;value=<0} true
- Skills:
- - setvariable{var=caster.canDoubleJump;value=1}
- - velocity{m=SET;x=0;y=0.55;z=0}
- - skill{s=LMG_onGroundCheck_Loop}
- LMG_onGroundCheck_Loop:
- Conditions:
- - onground{} castinstead LMG_ResetDoubleJump
- Skills:
- - skill{s=LMG_onGroundCheck_Loop;delay=4}
- LMG_ResetDoubleJump:
- Skills:
- - setvariable{var=caster.canDoubleJump;value=0}
- ## DIRECTIONAL DASH ##
- LMG_DirectionalDashCheck:
- Cooldown: 0.75
- Skills:
- - setvariable{var=caster.lastX;type=FLOAT;value=<caster.l.x.double>}
- - setvariable{var=caster.lastZ;type=FLOAT;value=<caster.l.z.double>}
- - setvariable{var=caster.xDifference;type=FLOAT;value=%math_1:half-down_<caster.l.x.double>-<caster.var.lastX>%;delay=1}
- - setvariable{var=caster.zDifference;type=FLOAT;value=%math_1:half-down_<caster.l.z.double>-<caster.var.lastZ>%;delay=1}
- - skill{s=DD_Check1;delay=2}
- DD_Check1:
- Conditions:
- - variableinrange{var=caster.xDifference;value=<0} castinstead DD_NegativeX
- - variableinrange{var=caster.xDifference;value=>0} castinstead DD_PositiveX
- - variableinrange{var=caster.xDifference;value=0} castinstead DD_NoX
- Skills:
- # nothing goes here, we take care of all possibilities above
- DD_NegativeX:
- Conditions:
- - variableinrange{var=caster.zDifference;value=<0} castinstead DD_NegativeXNegativeZ
- - variableinrange{var=caster.zDifference;value=>0} castinstead DD_NegativeXPositiveZ
- - variableinrange{var=caster.zDifference;value=0} castinstead DD_NegativeXNoZ
- Skills:
- # nothing goes here, we take care of all possibilities above
- DD_PositiveX:
- Conditions:
- - variableinrange{var=caster.zDifference;value=<0} castinstead DD_PositiveXNegativeZ
- - variableinrange{var=caster.zDifference;value=>0} castinstead DD_PositiveXPositiveZ
- - variableinrange{var=caster.zDifference;value=0} castinstead DD_PositiveXNoZ
- Skills:
- # nothing goes here, we take care of all possibilities above
- DD_NoX:
- Conditions:
- - variableinrange{var=caster.zDifference;value=<0} castinstead DD_NoXNegativeZ
- - variableinrange{var=caster.zDifference;value=>0} castinstead DD_NoXPositiveZ
- - variableinrange{var=caster.zDifference;value=0} castinstead DD_NoXNoZ
- Skills:
- # nothing goes here, we take care of all possibilities above
- DD_NegativeXNegativeZ:
- Skills:
- - velocity{m=set;x=-1.5;y=0;z=-1.5}
- DD_NegativeXPositiveZ:
- Skills:
- - velocity{m=set;x=-1.5;y=0;z=1.5}
- DD_NegativeXNoZ:
- Skills:
- - velocity{m=set;x=-1.5;y=0;z=0}
- DD_PositiveXNegativeZ:
- Skills:
- - velocity{m=set;x=1.5;y=0;z=-1.5}
- DD_PositiveXPositiveZ:
- Skills:
- - velocity{m=set;x=1.5;y=0;z=1.5}
- DD_PositiveXNoZ:
- Skills:
- - velocity{m=set;x=1.5;y=0;z=0}
- DD_NoXNegativeZ:
- Skills:
- - velocity{m=set;x=0;y=0;z=-1.5}
- DD_NoXPositiveZ:
- Skills:
- - velocity{m=set;x=0;y=0;z=1.5}
- DD_NoXNoZ:
- Skills:
- - velocity{m=set;x=0;y=0;z=0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement