-
1.20.4 Forge, field Entity.level is not visible.
I still cannot get this one to work for anything, cant find what to put in my accesstransformer to make it visible.
-
1.19 What Is setRegistryName Changed To?
Title says it all. I can't seem to find what .setRegistryName is changed to.
-
[1.16.4]custom log points up when stripped
Just wondering if you could put up the fixed code so others could use it... Not sure what part you changed to that.
-
[1.16.5] How To Make A Strippable Log Block.
Found a version of what I was trying to do on github, had to tweak it a bit to make it updated to 1.16.5 tho.... package expanded.blocks; import javax.annotation.Nullable; import expanded.VanillaBuildingBlocks; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.RotatedPillarBlock; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.common.ToolType; public class CustomLog extends RotatedPillarBlock { public CustomLog(Properties properties) { super(properties); } @Override @Nullable public BlockState getToolModifiedState(BlockState state, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) { Block block = state.getBlock(); if (block == VanillaBuildingBlocks.acacia_log) { return VanillaBuildingBlocks.stripped_acacia_log.defaultBlockState(); } else if (block == VanillaBuildingBlocks.spruce_log) { return VanillaBuildingBlocks.stripped_spruce_log.defaultBlockState(); } else { return super.getToolModifiedState(state, world, pos, player, stack, toolType); } } } in case anyone else needs it.... This is solved now, thanks for all the help. ^^
-
[1.16.5] How To Make A Strippable Log Block.
I guess it would be then.
-
[1.16.5] How To Make A Strippable Log Block.
Not sure how I would do that, should I just make the stripped block extend Block or use something else like RotatdPillarBlock?
-
[1.16.5] How To Make A Strippable Log Block.
how would I do that with the Strippable Log class?
-
[1.16.5] How To Make A Strippable Log Block.
whenever i add more then one log type and i right click it turns into the acacia log, not it's own stripped version.... I'm using vanilla blocks to test it with so I know it's working. *edit: like if I make a spruce and right click with an axe, the spruce log turns into the acacia log, not the stripped version, but the acacia log turns into stripped acacia.
-
[1.16.5] How To Make A Strippable Log Block.
Okay, I got it working correctly now, but I'm not sure how to make it work with multiple blocks. My Block Code: package expanded.blocks; import javax.annotation.Nullable; import expanded.VanillaBuildingBlocks; import net.minecraft.block.BlockState; import net.minecraft.block.RotatedPillarBlock; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.common.ToolType; public class CustomLog extends RotatedPillarBlock { public CustomLog(Properties properties) { super(properties); } @Override @Nullable public BlockState getToolModifiedState(BlockState state, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) { return toolType == ToolType.AXE ? VanillaBuildingBlocks.acacia_log.defaultBlockState() : null; } }
-
[1.16.5] How To Make A Strippable Log Block.
Ya but I'm not sure how I would actually add/implement it into the class correctly, and then registering the block correctly in my register class.
-
[1.16.5] How To Make A Strippable Log Block.
How would I add that into the class file and which one would that be in?
-
[1.16.5] How To Make A Strippable Log Block.
Can't seem to find much about how to make this work and trying to use code from open source mods doesn't help, Tried using AxeItem.Strippables but that doesn't work either. I'm wondering if there's an easy vanilla way to do this. Googling it doesn't seem to help me either.
IPS spam blocked by CleanTalk.