simplified-mojang-jsons 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -219619,34 +219619,90 @@ var PlayerEntity = createRPEntityClient({
219619
219619
  },
219620
219620
  scripts: {
219621
219621
  scale: "0.9375",
219622
+ variables: {
219623
+ "variable.fpMeleeSpearUseAttachableRotationZ": "public",
219624
+ "variable.tpMeleeSpearUseAttachableRotationZ": "public",
219625
+ "variable.fpMeleeSpearAttackAttachableRotationZ": "public",
219626
+ "variable.tpMeleeSpearAttackAttachablePositionZ": "public",
219627
+ "variable.attackTime": "public",
219628
+ "variable.itemUseNormalized": "public"
219629
+ },
219622
219630
  initialize: [
219623
219631
  `${MoLang.variable("is_holding_right")} = 0.0;`,
219624
219632
  `${MoLang.variable("is_blinking")} = 0.0;`,
219625
219633
  `${MoLang.variable("last_blink_time")} = 0.0;`,
219626
- `${MoLang.variable("hand_bob")} = 0.0;`
219634
+ `${MoLang.variable("hand_bob")} = 0.0;`,
219635
+ `${MoLang.variable("melee_spear_java_to_bedrock_scale")} = 40.0;`
219627
219636
  ],
219628
219637
  preAnimation: [
219629
219638
  `${MoLang.variable("helmet_layer_visible")} = !${MoLang.hasHeadGear()};`,
219630
219639
  `${MoLang.variable("leg_layer_visible")} = 1.0;`,
219631
219640
  `${MoLang.variable("boot_layer_visible")} = 1.0;`,
219632
219641
  `${MoLang.variable("chest_layer_visible")} = 1.0;`,
219633
- "variable.attack_body_rot_y = Math.sin(360*Math.sqrt(variable.attack_time)) * 5.0;",
219634
- `${MoLang.variable("tcos0")} = (${MoLang.cos(`${MoLang.modifiedDistanceMoved()} * 38.17`)} * ${MoLang.modifiedMoveSpeed()} / ${MoLang.variable("gliding_speed_value")}) * 57.3;`,
219635
- `${MoLang.variable("first_person_rotation_factor")} = ${MoLang.sin(`(1 - ${MoLang.variable("attack_time")}) * 180.0`)};`,
219642
+ `${MoLang.variable("attack_body_rot_y")} = Math.sin(360 * Math.sqrt(${MoLang.variable("attack_time")})) * 10.0;`,
219643
+ `${MoLang.variable("tcos0")} = ${MoLang.cos(`${MoLang.modifiedDistanceMoved()} * 38.17`)} * ${MoLang.modifiedMoveSpeed()} / ${MoLang.variable("gliding_speed_value")} * 57.3;`,
219644
+ `${MoLang.variable("first_person_item_rotation_factor")} = ${MoLang.sin(`(1 - ${MoLang.variable("attack_time")}) * 180.0`)};`,
219636
219645
  `${MoLang.variable("hand_bob")} = ${MoLang.lifeTime()} < 0.01 ? 0.0 : ${MoLang.variable("hand_bob")} + ((${MoLang.isOnGround()} && ${MoLang.isAlive()} ? ${MoLang.max(0, MoLang.min(MoLang.sqrt(`${MoLang.pow(MoLang.positionDelta(0), 2)} + ${MoLang.pow(MoLang.positionDelta(2), 2)}`), 0.1))} : 0.0) - ${MoLang.variable("hand_bob")}) * 0.02;`,
219637
219646
  `${MoLang.variable("map_angle")} = ${MoLang.max(0, MoLang.min(`1 - ${MoLang.variable("player_x_rotation")} / 45.1`, 1))};`,
219647
+ `${MoLang.variable("item_use_duration")} = ${MoLang.mainHandItemUseDuration()} > 0.0 ? (${MoLang.mainHandItemMaxDuration()} - (${MoLang.mainHandItemUseDuration()} - ${MoLang.frameAlpha()} + 1.0)) : 0.0;`,
219638
219648
  `${MoLang.variable("item_use_normalized")} = ${MoLang.mainHandItemUseDuration()} / ${MoLang.mainHandItemMaxDuration()};`,
219639
- `${MoLang.variable("riding_y_offset")} = ${MoLang.isRidingAnyEntityOfType("minecraft:minecart", "minecraft:boat", "minecraft:chest_boat", "minecraft:strider")} ? -3.0 : 0.0;`
219649
+ `${MoLang.variable("riding_y_offset")} = ${MoLang.isRidingAnyEntityOfType("minecraft:minecart", "minecraft:boat", "minecraft:chest_boat", "minecraft:strider")} ? -3.0 : 0.0;`,
219650
+ `${MoLang.variable("melee_spear_equipped")} = ${MoLang.equippedItemAnyTag("slot.weapon.mainhand", "minecraft:is_spear")};`,
219651
+ `${MoLang.variable("tp_melee_spear_base_arm_rotation_x")} = (${MoLang.isSwimming()} || ${MoLang.isGliding()}) ? (-115.0 - ${MoLang.targetXRotation()}) : (${MoLang.isCrawling()} ? -115.0 : -30.0);`,
219652
+ [
219653
+ `(${MoLang.variable("melee_spear_equipped")}) ? {`,
219654
+ `${MoLang.temp("melee_spear_use_finish_raise_tick")} = ${MoLang.kineticWeaponDelay()};`,
219655
+ `t.melee_spear_use_finish_sway_tick = t.melee_spear_use_finish_raise_tick + ${MoLang.kineticWeaponDismountDuration()};`,
219656
+ "t.melee_spear_use_start_sway_tick = t.melee_spear_use_finish_sway_tick - 20.0;",
219657
+ `t.melee_spear_use_finish_lower_tick = t.melee_spear_use_finish_raise_tick + ${MoLang.kineticWeaponKnockbackDuration()};`,
219658
+ "t.melee_spear_use_start_lower_tick = t.melee_spear_use_finish_lower_tick - 40.0;",
219659
+ `t.melee_spear_use_finish_raise_back_tick = t.melee_spear_use_finish_raise_tick + ${MoLang.kineticWeaponDamageDuration()};`,
219660
+ "t.melee_spear_use_start_raise_back_tick = t.melee_spear_use_finish_raise_back_tick - 5.0;",
219661
+ "t.melee_spear_use_raise_progress = math.clamp(math.inverse_lerp(0.0, t.melee_spear_use_finish_raise_tick, v.item_use_duration), 0.0, 1.0);",
219662
+ "t.melee_spear_use_raise_progress_start = math.clamp(math.inverse_lerp(0.0, 0.5, t.melee_spear_use_raise_progress), 0.0, 1.0);",
219663
+ "t.melee_spear_use_raise_progress_middle = math.clamp(math.inverse_lerp(0.5, 0.8, t.melee_spear_use_raise_progress), 0.0, 1.0);",
219664
+ "t.melee_spear_use_raise_progress_end = math.clamp(math.inverse_lerp(0.8, 1.0, t.melee_spear_use_raise_progress), 0.0, 1.0);",
219665
+ "t.melee_spear_use_sway_progress = math.clamp(math.inverse_lerp(t.melee_spear_use_start_sway_tick, t.melee_spear_use_finish_sway_tick, v.item_use_duration), 0.0, 1.0);",
219666
+ "t.melee_spear_use_lower_progress = math.ease_in_out_elastic(0.0, 1.0, math.clamp(math.inverse_lerp(t.melee_spear_use_start_lower_tick, t.melee_spear_use_finish_lower_tick, v.item_use_duration - 20.0), 0.0, 1.0));",
219667
+ "t.melee_spear_use_raise_back_progress = math.clamp(math.inverse_lerp(t.melee_spear_use_start_raise_back_tick, t.melee_spear_use_finish_raise_back_tick, v.item_use_duration), 0.0, 1.0);",
219668
+ "t.melee_spear_use_sway_intensity = math.ease_out_circ(0.0, 2.0, t.melee_spear_use_sway_progress) + math.ease_in_circ(0.0, -2.0, t.melee_spear_use_raise_back_progress);",
219669
+ "t.melee_spear_use_sway_scale_slow = math.sin(v.item_use_duration * 19.0) * t.melee_spear_use_sway_intensity;",
219670
+ "t.melee_spear_use_sway_scale_fast = math.sin(v.item_use_duration * 30.0) * t.melee_spear_use_sway_intensity;",
219671
+ "v.fp_melee_spear_use_item_position_x = (t.melee_spear_use_raise_progress_start * 0.05 + t.melee_spear_use_raise_progress_end * -0.05 + t.melee_spear_use_sway_scale_slow * 0.005) * v.melee_spear_java_to_bedrock_scale;",
219672
+ "v.fp_melee_spear_use_item_position_y = (t.melee_spear_use_raise_progress_start * -0.075 + t.melee_spear_use_raise_progress_middle * 0.075 + t.melee_spear_use_sway_scale_fast * 0.01) * v.melee_spear_java_to_bedrock_scale;",
219673
+ "v.fp_melee_spear_use_item_position_z = (t.melee_spear_use_raise_progress_start * 0.05 + t.melee_spear_use_raise_progress_end * -0.05 + t.melee_spear_use_sway_scale_slow * 0.005) * v.melee_spear_java_to_bedrock_scale;",
219674
+ "v.fp_melee_spear_use_item_rotation_y = t.melee_spear_use_raise_progress * 20.0 + t.melee_spear_use_lower_progress * 20.0 + t.melee_spear_use_sway_scale_slow * 0.5 + t.melee_spear_use_raise_back_progress * -40.0;",
219675
+ "v.fp_melee_spear_use_item_rotation_z = math.ease_in_out_back(0.0, -60.0, t.melee_spear_use_raise_progress) + t.melee_spear_use_lower_progress * -25.0 + t.melee_spear_use_raise_back_progress * 85.0 + t.melee_spear_use_sway_scale_fast * 0.5;",
219676
+ "v.fp_melee_spear_use_attachable_rotation_z = math.clamp(math.inverse_lerp(0.5, 0.55, t.melee_spear_use_raise_progress), 0.0, 1.0) * -50.0 + t.melee_spear_use_sway_progress * 90.0 + t.melee_spear_use_raise_back_progress * -40.0;",
219677
+ "v.tp_melee_spear_use_arm_rotation_x = t.melee_spear_use_raise_progress_start * -40.0 + t.melee_spear_use_raise_progress_middle * 30.0 + t.melee_spear_use_raise_progress_end * -20.0 + t.melee_spear_use_lower_progress * 20.0 + t.melee_spear_use_raise_back_progress * 10.0;",
219678
+ "v.tp_melee_spear_use_arm_rotation_x = v.tp_melee_spear_use_arm_rotation_x + t.melee_spear_use_sway_scale_slow * 0.6;",
219679
+ "v.tp_melee_spear_use_arm_rotation_y = t.melee_spear_use_sway_scale_fast * 1.0;",
219680
+ "v.tp_melee_spear_use_arm_rotation_z = t.melee_spear_use_sway_scale_slow * 0.5;",
219681
+ "v.tp_melee_spear_use_item_rotation_x = t.melee_spear_use_raise_progress * 60.0 + t.melee_spear_use_raise_back_progress * -60.0;",
219682
+ "v.tp_melee_spear_use_attachable_rotation_z = t.melee_spear_use_raise_progress * 90.0 + t.melee_spear_use_sway_progress * -90.0;",
219683
+ `t.melee_spear_attack_duration_ratio = 1.0 / ${MoLang.baseSwingDuration()};`,
219684
+ "t.melee_spear_attack_raise_end = 0.05 * t.melee_spear_attack_duration_ratio;",
219685
+ "t.melee_spear_attack_thrust_end = 0.2 * t.melee_spear_attack_duration_ratio;",
219686
+ "t.melee_spear_attack_recover_start = 1.0 - (0.6 * t.melee_spear_attack_duration_ratio);",
219687
+ "t.melee_spear_attack_raise_progress = math.clamp(math.inverse_lerp(0.0, t.melee_spear_attack_raise_end, v.attack_time), 0.0, 1.0);",
219688
+ "t.melee_spear_attack_thrust_progress = math.clamp(math.inverse_lerp(t.melee_spear_attack_raise_end, t.melee_spear_attack_thrust_end, v.attack_time), 0.0, 1.0);",
219689
+ "t.melee_spear_attack_recover_progress = math.clamp(math.inverse_lerp(t.melee_spear_attack_recover_start, 1.0, v.attack_time), 0.0, 1.0);",
219690
+ "t.melee_spear_attack_raise_scale = math.ease_in_out_sine(0.0, 1.0, t.melee_spear_attack_raise_progress);",
219691
+ "t.melee_spear_attack_thrust_scale = math.ease_in_quad(0.0, 1.0, t.melee_spear_attack_thrust_progress);",
219692
+ "t.melee_spear_attack_recover_scale = math.ease_in_out_expo(0.0, 1.0, t.melee_spear_attack_recover_progress);",
219693
+ "v.fp_melee_spear_attack_item_position_x = (t.melee_spear_attack_raise_scale * 0.1 + t.melee_spear_attack_thrust_scale * -0.1) * v.melee_spear_java_to_bedrock_scale;",
219694
+ "v.fp_melee_spear_attack_item_position_y = (t.melee_spear_attack_raise_scale * -0.075 + t.melee_spear_attack_recover_scale * 0.075) * v.melee_spear_java_to_bedrock_scale;",
219695
+ "v.fp_melee_spear_attack_item_position_z = (t.melee_spear_attack_raise_scale * 0.65 + t.melee_spear_attack_thrust_scale * -0.65) * v.melee_spear_java_to_bedrock_scale;",
219696
+ "v.fp_melee_spear_attack_item_rotation_y = t.melee_spear_attack_raise_scale * 20.0 + t.melee_spear_attack_recover_scale * -20.0;",
219697
+ "v.fp_melee_spear_attack_item_rotation_z = t.melee_spear_attack_raise_scale * -60.0 + t.melee_spear_attack_recover_scale * 60.0;",
219698
+ "v.fp_melee_spear_attack_attachable_rotation_z = t.melee_spear_attack_raise_scale * 40.0 + t.melee_spear_attack_recover_scale * -40.0;",
219699
+ "v.tp_melee_spear_attack_arm_rotation_x = t.melee_spear_attack_raise_scale * 90.0 + t.melee_spear_attack_thrust_scale * -120.0 + t.melee_spear_attack_recover_scale * 30.0;",
219700
+ "v.tp_melee_spear_attack_item_rotation_x = t.melee_spear_attack_thrust_scale * 60.0 + t.melee_spear_attack_recover_scale * -60.0;",
219701
+ "v.tp_melee_spear_attack_attachable_position_z = (t.melee_spear_attack_thrust_scale * -0.15 + t.melee_spear_attack_recover_scale * 0.15) * v.melee_spear_java_to_bedrock_scale;",
219702
+ "};"
219703
+ ].join(" ")
219640
219704
  ],
219641
219705
  animate: ["root"],
219642
- variables: {
219643
- "variable.fpMeleeSpearUseAttachableRotationZ": "public",
219644
- "variable.tpMeleeSpearUseAttachableRotationZ": "public",
219645
- "variable.fpMeleeSpearAttackAttachableRotationZ": "public",
219646
- "variable.tpMeleeSpearAttackAttachablePositionZ": "public",
219647
- "variable.attackTime": "public",
219648
- "variable.itemUseNormalized": "public"
219649
- },
219650
219706
  shouldUpdateEffectsOffscreen: "1.0"
219651
219707
  },
219652
219708
  animations: {
@@ -219664,11 +219720,18 @@ var PlayerEntity = createRPEntityClient({
219664
219720
  "move.arms": "animation.player.move.arms",
219665
219721
  "move.legs": "animation.player.move.legs",
219666
219722
  swimming: "animation.player.swim",
219723
+ "swimming.no_right_arm": "animation.player.swim.no_right_arm",
219667
219724
  "swimming.legs": "animation.player.swim.legs",
219725
+ crawling: "animation.player.crawl",
219726
+ "crawling.no_right_arm": "animation.player.crawl.no_right_arm",
219727
+ "crawling.legs": "animation.player.crawl.legs",
219728
+ "riding.root": "animation.player.riding.root",
219668
219729
  "riding.arms": "animation.player.riding.arms",
219669
219730
  "riding.legs": "animation.player.riding.legs",
219670
219731
  holding: "animation.player.holding",
219732
+ holding_heavy_core: "animation.player.holding_heavy_core",
219671
219733
  brandish_spear: "animation.humanoid.brandish_spear",
219734
+ holding_spyglass: "animation.humanoid.holding_spyglass",
219672
219735
  charging: "animation.humanoid.charging",
219673
219736
  "attack.positions": "animation.player.attack.positions",
219674
219737
  "attack.rotations": "animation.player.attack.rotations",
@@ -219682,9 +219745,9 @@ var PlayerEntity = createRPEntityClient({
219682
219745
  first_person_base_pose: "animation.player.first_person.base_pose",
219683
219746
  first_person_empty_hand: "animation.player.first_person.empty_hand",
219684
219747
  first_person_swap_item: "animation.player.first_person.swap_item",
219748
+ first_person_shield_block: "animation.player.first_person.shield_block",
219685
219749
  first_person_attack_controller: "controller.animation.player.first_person_attack",
219686
219750
  first_person_attack_rotation: "animation.player.first_person.attack_rotation",
219687
- first_person_attack_rotation_item: "animation.player.first_person.attack_rotation_item",
219688
219751
  first_person_vr_attack_rotation: "animation.player.first_person.vr_attack_rotation",
219689
219752
  first_person_walk: "animation.player.first_person.walk",
219690
219753
  first_person_map_controller: "controller.animation.player.first_person_map",
@@ -219697,23 +219760,7 @@ var PlayerEntity = createRPEntityClient({
219697
219760
  first_person_breathing_bob: "animation.player.first_person.breathing_bob",
219698
219761
  third_person_crossbow_equipped: "animation.player.crossbow_equipped",
219699
219762
  third_person_bow_equipped: "animation.player.bow_equipped",
219700
- crossbow_hold: "animation.player.crossbow_hold",
219701
- crossbow_controller: "controller.animation.player.crossbow",
219702
- shield_block_main_hand: "animation.player.shield_block_main_hand",
219703
- shield_block_off_hand: "animation.player.shield_block_off_hand",
219704
- blink: "controller.animation.persona.blink",
219705
219763
  fishing_rod: "animation.humanoid.fishing_rod",
219706
- holding_spyglass: "animation.humanoid.holding_spyglass",
219707
- first_person_shield_block: "animation.player.first_person.shield_block",
219708
- tooting_goat_horn: "animation.humanoid.tooting_goat_horn",
219709
- holding_brush: "animation.humanoid.holding_brush",
219710
- brushing: "animation.humanoid.brushing",
219711
- crawling: "animation.player.crawl",
219712
- "crawling.legs": "animation.player.crawl.legs",
219713
- "swimming.no_right_arm": "animation.player.swim.no_right_arm",
219714
- "crawling.no_right_arm": "animation.player.crawl.no_right_arm",
219715
- "riding.root": "animation.player.riding.root",
219716
- holding_heavy_core: "animation.player.holding_heavy_core",
219717
219764
  first_person_melee_spear_use: "animation.player.first_person.melee_spear_use",
219718
219765
  first_person_melee_spear_hold: "animation.player.first_person.melee_spear_hold",
219719
219766
  first_person_melee_spear_attack: "animation.player.first_person.melee_spear_attack",
@@ -219721,7 +219768,15 @@ var PlayerEntity = createRPEntityClient({
219721
219768
  third_person_melee_spear_use: "animation.humanoid.melee_spear_use",
219722
219769
  third_person_melee_spear_hold: "animation.humanoid.melee_spear_hold",
219723
219770
  third_person_melee_spear_attack: "animation.player.melee_spear_attack",
219724
- third_person_melee_spear_controller: "controller.animation.player.melee_spear"
219771
+ third_person_melee_spear_controller: "controller.animation.player.melee_spear",
219772
+ crossbow_hold: "animation.player.crossbow_hold",
219773
+ crossbow_controller: "controller.animation.player.crossbow",
219774
+ shield_block_main_hand: "animation.player.shield_block_main_hand",
219775
+ shield_block_off_hand: "animation.player.shield_block_off_hand",
219776
+ blink: "controller.animation.persona.blink",
219777
+ tooting_goat_horn: "animation.humanoid.tooting_goat_horn",
219778
+ holding_brush: "animation.humanoid.holding_brush",
219779
+ brushing: "animation.humanoid.brushing"
219725
219780
  },
219726
219781
  renderControllers: [
219727
219782
  {