Hi all im fairly new to modding mine craft and struggling with stripped logs as now ive got them to actually strip they return upwardsany help would be welcome
the stripped class:
public class ModStrippedBlock extends RotatedPillarBlock {
private final BlockState stripped;
public ModStrippedBlock(BlockState state, Properties properties) {
super(properties);
this.stripped = state;
}
@Override
@Nullable
public BlockState getToolModifiedState(BlockState state, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) {
return toolType == ToolType.AXE ? stripped : null;
}
}
and the block:
public static final RegistryObject<Block> REDWOOD_LOG = register("redwood_log",
()-> new ModStrippedBlock(STRIPPED_REDWOOD_LOG.get().getDefaultState(),
AbstractBlock.Properties.create(Material.WOOD)
.hardnessAndResistance(0.5f,2.0f)
.harvestTool(ToolType.AXE)
.harvestLevel(0)));