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.

FRA32

Members
  • Joined

  • Last visited

  1. I am making a small mod centered around crystals and similar. I want to create a block that acts similar to the furnace which uses lava instead of coal to work. What I need to know is: how to make the tileEntity accept any registered fluid container containing lava how to store the amount of fluid of that container in an internal tank how to show its filling state within a GUI If anyone knows effective ways to do one of these things, I would love if they would share these methods with me.
  2. I just hopped into modding and was creating a few blocks for a little testing mod, but one of the blocks isn't displaying its texture when placed in the world, even tho I basically copied the model files of another block and changed the names. When in item form the texture is shown correctly. Can someone explain me where the source of the problem is? The code samples are below: Block model File { "parent": "block/cube_all", "textures": { "all": "crystal:blocks/crystalDustBlock" } } Item model file { "parent":"crystal:block/crystalDustBlock", "display": { "thirdperson": { "rotation": [ 10, -45, 170 ], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375 ] } } } Block Registration public final class ModBlocks { public static Block crystalOre; public static Block crystalDustBlock; public static Block crystalizer; public static final void createBlocks() { GameRegistry.registerBlock(crystalOre = new CrystalOre(),"crystalOre"); GameRegistry.registerBlock(crystalDustBlock = new CrystalDustBlock(), "crystalDustBlock"); GameRegistry.registerBlock(crystalizer = new Crystalizer(false), "crystalizer"); } } BlockRenderRegister: public final class BlockRenderRegister { public static String modid = Main.MODID; public static void registerBlockRenderer() { reg(ModBlocks.crystalOre); reg(ModBlocks.crystalDustBlock); reg(ModBlocks.crystalizer); } public static void reg(Block block) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(modid + ":" + block.getUnlocalizedName().substring(5), "inventory")); } } The location of the texture is C:\Users\%My Username%\Desktop\Mod\src\main\resources\assets\crystal\textures\blocks\crystalDustBlock.png

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.