Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

big papa

Members
  • Joined

  • Last visited

  1. Do you have any documentation on how to do that?
  2. I have a biome, and I made custom trees spawn in it, but they don't spawn on my custom block. How do I make them spawn on it?
  3. I know that there is ".parent()", but I couldn't find any documentation on how to use it. How do I parent off of the Plains biome? Thanks!
  4. The problem just fixed itself. Thanks for the help tho.
  5. I have a block with part of it transparent, but the transparent part shows as white. I saw a topic about this and the solution was to put getBlockLayer(IBlockState state) but it gives an error: "The method getBlockLayer(IBlockState) of type JarBlock must override or implement a supertype method" JarBlock class (the class with the problem) package bigpapa.mod.blocks; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.util.BlockRenderLayer; import net.minecraft.util.EnumBlockRenderType; public class JarBlock extends BlockBase { public JarBlock(String name, Material materialIn) { super(name, materialIn); setSoundType(SoundType.GLASS); setHardness(1F); setResistance(15000000F); setHarvestLevel("pickaxe", 1); } @Override public boolean isFullCube(IBlockState state) { return false; } @Override public boolean isOpaqueCube(IBlockState state) { //error here return false; } } BlockBase class package bigpapa.mod.blocks; import bigpapa.mod.Main; import bigpapa.mod.init.ModBlocks; import bigpapa.mod.init.ModItems; import bigpapa.mod.util.IHasModel; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.util.BlockRenderLayer; public class BlockBase extends Block implements IHasModel { public BlockBase(String name, Material materialIn) { super(materialIn); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(CreativeTabs.MATERIALS); ModBlocks.BLOCKS.add(this); ModItems.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName())); } @Override public void registerModels() { Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory"); } } Thanks

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.