Entity Event: Animal Tame (#109)

This commit is contained in:
lazynessmind
2021-06-23 17:46:14 +01:00
committed by GitHub
parent c12524b7aa
commit 125494399d
7 changed files with 169 additions and 0 deletions

View File

@@ -117,6 +117,10 @@ public class DebugEvents {
TestMod.SINK.accept(sb.toString());
return EventResult.pass();
}));
EntityEvent.ANIMAL_TAME.register(((animal, player) -> {
TestMod.SINK.accept("%s tamed %s at %s", player.getScoreboardName(), animal.getDisplayName().getString(), toShortString(animal.position()));
return EventResult.pass();
}));
ExplosionEvent.DETONATE.register((world, explosion, affectedEntities) -> {
TestMod.SINK.accept(world.dimension().location() + " explodes at " + toShortString(ExplosionHooks.getPosition(explosion)) + logSide(world));
});