1
0
forked from Clones/Controlify

rewrite most of joystick mapping

This commit is contained in:
isXander
2023-04-11 11:03:07 +01:00
parent ff7e676eb5
commit d3fc0a946b
19 changed files with 535 additions and 217 deletions

View File

@ -53,6 +53,8 @@ public class MultiPlayerGameModeMixin {
}
private void startRumble(BlockState state) {
stopRumble();
var effect = ContinuousRumbleEffect.builder()
.byTick(tick -> new RumbleState(
0.02f + Easings.easeInQuad(Math.min(1, state.getBlock().defaultDestroyTime() / 20f)) * 0.25f,