Jump to content

clement585

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

clement585's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks Draco 18 but I haven't figured out how to get the Minecraft blocks class.
  2. Thank you Draco 18 I have a hard time looking at the link you sent me but in 1.15.1 the import net.minecraft.util.BlockRenderLayer don't exist.
  3. I know what @Override means and I know how to use it but I don't understand why my code is wrong. I have to pass @Override before the variable public boolean isOpaqueCube () { return false; }
  4. I use intellij idea and minecraft 1.15, it highlights me override in red wave.
  5. I have a problem with my blocks, I can see the cave. I think it's because the game detects my blocks as opaque blocks. I have read a tutorial and a post: http://greyminecraftcoder.blogspot.com/2013/07/rendering-transparent-blocks.html here is the class code that instantiates the blocks: package fr.chtibizoux.woodcraft.init.blocks; import fr.chtibizoux.woodcraft.init.ModBlocks; import net.minecraft.block.Block; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; public class BlockWoodCraft extends Block { public BlockWoodCraft(String name,Properties properties) { super(properties); setRegistryName(name); ModBlocks.blocks.add(this); ModBlocks.blockItems.add((BlockItem) new BlockItem(this, new Item.Properties()).setRegistryName(getRegistryName())); } public boolean isOpaqueCube() { return false; } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.