Posted October 9, 20214 yr package com.PE.projectevolution.core.init; import com.PE.projectevolution.ProjectEvolution; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.RotatedPillarBlock; import net.minecraft.world.level.block.SoundType; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.material.Material; import net.minecraft.world.level.material.MaterialColor; import net.minecraftforge.fmllegacy.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public class BlockInit { public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, ProjectEvolution.MOD_ID); public static final RegistryObject<Block> REDWOOD_LOG = BLOCKS.register("redwood_log", () -> new RotatedPillarBlock(BlockBehaviour.Properties.of(Material.WOOD, MaterialColor.WOOD).strength(2f, 3f) .sound(SoundType.WOOD).harvestTool(ToolType.AXE))); } i can't get the tool types to work in 1.17.1 and im not sure how to fix it
October 9, 20214 yr Forge Doc (Tags): https://mcforge.readthedocs.io/en/latest/utilities/tags/ Forge Community Wiki (Tags): https://forge.gemwire.uk/wiki/Tags you need to create the tag file (json file) into the correct data pack (forge/minecraft), then add the item (your tool) to the tag
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.