[1.16.5 bug] Mod feature unsupport CraftTweaker
GoldenTotem opened this issue ยท 1 comments
Minecraft 1.16.5 Forge 36.2.35 Atum2.2.12
Block atum:fertile_soil_tilled will not fire MCFarmlandTrampleEvent when being trampled. It may because that it not use the same trampling logic of vanilla.
Copy the code below and write it into a zs file. This will prevent vanilla and other mod farmland being trampled, but not work on fertile soil tilled.
import crafttweaker.api.events.CTEventManager;
CTEventManager.register<crafttweaker.api.event.block.MCFarmlandTrampleEvent>(event => {
event.cancel();
});