iCollin
-
Posts
6 -
Joined
-
Last visited
Posts posted by iCollin
-
-
okay well how do i use the tags?
-
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
-
okay thank you you have helped me so much
-
ah okay thank, do you have any recommendations for any bots and how to use them?
-
I don't know what I've done but I've messed up some how and I don't know how to fix it
package com.igc.sbpm.core.init; import com.igc.sbpm.SBPM; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.SoundType; 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, SBPM.MOD_ID); public static final RegistryObject<Block> SLATE_BLOCK = BLOCKS .register("slate_block", () -> new Block(AbstractBlock.Properties.create(Material.STONE, MaterialColor.STONE) .hardnessAndResistance(1.5f, 0.7f).harvestTool(ToolType.PICKAXE).harvestLevel(2) .sound(SoundType.STONE))); }
it shows a error under AbstractBlock, Properties and Tool Type
harvestTool(toolType.AXE) not working
in Modder Support
Posted
okay thank you