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.

TheHobber1712

Members
  • Joined

  • Last visited

  1. It's not working. The Code don't like my Fluid Model Registery in the Proxy!
  2. Yep, it should have a water texture
  3. (Sorry for my bad english!) After I learned the basics of Blocks , Items... I wanted to make custom fluids. After I finished my work I saw a Problem! not the Game Crashes! not the fluid isn't in-game! No! the fluid hasn't his texture! So I began my search for the Mistake I made but after more than 4 hours I can't find anything! fluids.json { "forge_marker": 1, "defaults": { "model": "forge:fluid", "transform": "forge:default-item" }, "variants": { "fluid": [{ "custom": { "fluid": "fluid_test" } }] } } BlockFluidTest Class public class BlockFluidTest extends BlockFluidClassic{ public BlockFluidTest(Fluid fluid) { super(fluid, Material.WATER); this.setUnlocalizedName("block_test"); this.setRegistryName("block_test"); } } FluidTest Class public class FluidTest extends Fluid{ public FluidTest() { super("fluid_test", new ResourceLocation("blocks/water_still"), new ResourceLocation("blocks/water_flow")); } } Main Class public static FluidTest fluid = new FluidTest(); public static Block blockfluid; @EventHandler public void init(FMLInitializationEvent event) { FluidRegistry.registerFluid(fluid); blockfluid = new BlockFluidTest(fluid); registerBlock(blockfluid); } public static void registerBlock(Block block) { GameRegistry.register(block); GameRegistry.register(new ItemBlock(block).setRegistryName(block.getRegistryName())); } Client Proxy registerFluidModel(TestMod.blockfluid, "fluid"); public void registerFluidModel(Block fluidBlock, final String name) { Item item = Item.getItemFromBlock(fluidBlock); ModelBakery.registerItemVariants(item); ModelLoader.setCustomMeshDefinition(item, new ItemMeshDefinition() { @Override public ModelResourceLocation getModelLocation(ItemStack stack) { return new ModelResourceLocation(TestMod.MODID + ":fluids", name); } }); ModelLoader.setCustomStateMapper(fluidBlock, new StateMapperBase() { @Override protected ModelResourceLocation getModelResourceLocation(IBlockState state) { return new ModelResourceLocation(TestMod.MODID + ":fluids", name); } }); } Thanks in Advance! ?

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.