NoPathtrampling icon

NoPathtrampling -----

Disables trampling if you wear leather boots



Disables trampling if you wear leather boots.

Should also work in older versions.
Current code:
Code (Text):

private static void preventFarmland(Cancellable event, @Nullable Block block, Entity entity) {
    if (block != null && block.getBlockData() instanceof Farmland
                    && entity instanceof LivingEntity le
                    && le.getEquipment() != null
                    && le.getEquipment().getItem(EquipmentSlot.FEET).getItemMeta() instanceof LeatherArmorMeta) {
        event.setCancelled(true);
    }
}
 
You can decompile if you want.
Resource Information
Author:
----------
Total Downloads: 73
First Release: Jul 1, 2024
Last Update: Jul 1, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings