Hook up a stomping animation

This commit is contained in:
Sollace 2022-01-04 17:58:31 +02:00
parent 9fc4c384cb
commit e805354043

View file

@ -5,6 +5,7 @@ import org.jetbrains.annotations.Nullable;
import com.minelittlepony.unicopia.BlockDestructionManager;
import com.minelittlepony.unicopia.Race;
import com.minelittlepony.unicopia.ability.data.Hit;
import com.minelittlepony.unicopia.client.render.PlayerPoser.Animation;
import com.minelittlepony.unicopia.entity.player.Pony;
import com.minelittlepony.unicopia.item.UItems;
import com.minelittlepony.unicopia.item.enchantment.UEnchantments;
@ -90,6 +91,8 @@ public class EarthPonyStompAbility implements Ability<Hit> {
public void apply(Pony iplayer, Hit data) {
PlayerEntity player = iplayer.getMaster();
iplayer.setAnimation(Animation.STOMP, 10);
thrustDownwards(iplayer);
iplayer.waitForFall(() -> {