Skip to content

Commit

Permalink
Add new pulverizer model
Browse files Browse the repository at this point in the history
  • Loading branch information
Rearth committed Jan 1, 2025
1 parent fec3548 commit 863b22a
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 252 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public PlayState onAnimationUpdate(final AnimationState<MachineBlockEntity> stat
}

public boolean isActivelyWorking() {
return world.getTime() - lastWorkedAt < 5;
return world.getTime() - lastWorkedAt < 15;
}

public void playSetupAnimation() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,233 +1,49 @@
{
"format_version": "1.8.0",
"animations": {
"idle": {
"animation_length": 0.25
},
"working": {
"loop": true,
"animation_length": 3,
"bones": {
"gear": {
"a": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
"vector": [0, 0, -40]
},
"3.0": {
"vector": [0, -960, 0],
"easing": "easeInOutSine"
"2.8333": {
"vector": [0, 0, -760],
"easing": "easeInOutBack",
"easingArgs": [0.5]
}
}
},
"gear2": {
"b": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
"0.1667": {
"vector": [0, 0, 40]
},
"3.0": {
"vector": [0, 960, 0],
"easing": "easeInOutSine"
"vector": [0, 0, 760],
"easing": "easeInOutBack",
"easingArgs": [0.5]
}
}
},
"front_frame": {
"position": {
"0.0": {
"vector": [0, 0, 0]
},
"0.125": {
"vector": [0, 0, 0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"0.2917": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"0.4583": {
"vector": [0, 0, 0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"0.625": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"0.7917": {
"vector": [0, 0, 0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"0.9583": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"1.1667": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"1.3333": {
"vector": [0, 0, 0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"1.5": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"1.625": {
"vector": [0, 0, 0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"1.7917": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"1.9583": {
"vector": [0, 0, 0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"2.125": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"2.2917": {
"vector": [0, 0, 0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"2.4583": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"2.625": {
"vector": [0, 0, 0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"2.7917": {
"vector": [0, 0, -0.04],
"easing": "easeInOutElastic",
"easingArgs": [2]
},
"3.0": {
"vector": [0, 0, 0]
}
}
},
"beam_inner": {
}
}
},
"idle": {
"animation_length": 0.1667,
"bones": {
"a": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
},
"3.0": {
"vector": [0, 2700, 0]
}
"vector": [0, 0, -40]
}
},
"top_holder": {
"b": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
},
"0.125": {
"vector": [0, -2, 0],
"easing": "easeInBounce"
},
"0.25": {
"vector": [0, 1, 0],
"easing": "easeInBounce"
},
"0.375": {
"vector": [0, -4, 0],
"easing": "easeInBounce"
},
"0.5": {
"vector": [0, 0.45313, -2]
},
"0.5417": {
"vector": [0, 1, 0],
"easing": "easeInBounce"
},
"0.7083": {
"vector": [0, -1, 0],
"easing": "easeInBounce"
},
"0.875": {
"vector": [0, 1, 0],
"easing": "easeInBounce"
},
"1.0417": {
"vector": [0, -2, 0],
"easing": "easeInBounce"
},
"1.0833": {
"vector": [0, 0.52083, 1]
},
"1.1667": {
"vector": [0, 1, 0],
"easing": "easeInBounce"
},
"1.2917": {
"vector": [0, -4, 0],
"easing": "easeInBounce"
},
"1.4583": {
"vector": [0, 1, 0],
"easing": "easeInBounce"
},
"1.625": {
"vector": [0, -1, 0],
"easing": "easeInBounce"
},
"1.7917": {
"vector": [0, 1, 0],
"easing": "easeInBounce"
},
"1.9583": {
"vector": [0, -2, -2.5],
"easing": "easeInBounce"
},
"2.0833": {
"vector": [0, 1, -2.5],
"easing": "easeInBounce"
},
"2.2083": {
"vector": [0, -4, 0],
"easing": "easeInBounce"
},
"2.375": {
"vector": [0, 1, 0],
"easing": "easeInBounce"
},
"2.5417": {
"vector": [0, -1, 2.5],
"easing": "easeInBounce"
},
"2.7083": {
"vector": [0, 1, 0],
"easing": "easeInBounce"
},
"3.0": {
"vector": [0, 0, 0]
}
"vector": [0, 0, 40]
}
}
},
"sound_effects": {
"0.0": {
"effect": "oritech:grinder_working|0.4|1"
}
}
}
},
Expand Down
Loading

0 comments on commit 863b22a

Please sign in to comment.