Untitled

mail@pastecode.io avatar
unknown
java
24 days ago
1.4 kB
2
Indexable
Never
    public static final Item ENDERITE_SWORD = registerItems("enderite_sword",
            new SwordItem(ModToolMaterials.ENDERITE,
                    new Item.Settings().fireproof()
                            .attributeModifiers(SwordItem.createAttributeModifiers(ModToolMaterials.ENDERITE, 8, -2.4f))));
    public static final Item ENDERITE_PICKAXE = registerItems("enderite_pickaxe",
            new PickaxeItem(ModToolMaterials.ENDERITE,
                    new Item.Settings().fireproof()
                            .attributeModifiers(PickaxeItem.createAttributeModifiers(ModToolMaterials.ENDERITE, 6, -2.8f))));
    public static final Item ENDERITE_AXE = registerItems("enderite_axe",
            new AxeItem(ModToolMaterials.ENDERITE,
                    new Item.Settings().fireproof()
                            .attributeModifiers(AxeItem.createAttributeModifiers(ModToolMaterials.ENDERITE, 10, -3f))));
    public static final Item ENDERITE_HOE = registerItems("enderite_hoe",
            new HoeItem(ModToolMaterials.ENDERITE,
                    new Item.Settings().fireproof()
                            .attributeModifiers(HoeItem.createAttributeModifiers(ModToolMaterials.ENDERITE, 0, 0f))));
                            
    private static Item registerItems(String name, Item item) {
        return Registry.register(Registries.ITEM, new Identifier(EnderiteMod.MOD_ID, name), item);
    }
Leave a Comment