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.

Habeeb_M

Members
  • Joined

  • Last visited

  1. Habeeb_M changed their profile photo
  2. I managed to solve it with some help in the discord by registering in `RegisterBlocks` in CommonProxy, which printed an error to the log. Then we were able to create a statemapper and objectholder for the fluid, and it works! Credit goes to Virtuoel#9746.
  3. Forgot to give github links: https://github.com/Habeeb-M/rustiksmetallurgy/blob/master/src/main/java/com/rustik/metallurgy/fluids/ModFluid.java Here are the methods I use. https://github.com/Habeeb-M/rustiksmetallurgy/blob/master/src/main/java/com/rustik/metallurgy/proxy/CommonProxy.java And I call them here in preInit. https://github.com/Habeeb-M/rustiksmetallurgy/blob/master/src/main/resources/assets/metallurgy/blockstates/fluidmolten.json Here's the blockstate. https://github.com/Habeeb-M/rustiksmetallurgy/tree/master/src/main/resources/assets/metallurgy/textures/blocks And here are the texture files + mcmeta files.
  4. Hello. I am having troubles adding textures to a fluid. I have the fluid in game, with a bucket and a BlockFluid. However, the fluid in game shows up as the purple and black missing texture. I will show the methods and how I call them below: private static ResourceLocation createLoc(String name) { return new ResourceLocation(metallurgy.MODID,"blocks/" + name); } public static Fluid addFluid(String fluidName, int density, int viscosity) { Fluid fluid = new Fluid(fluidName, createLoc(fluidName + "_still"), createLoc(fluidName + "_flow")) .setDensity(density) .setViscosity(viscosity); FluidRegistry.registerFluid(fluid); FluidRegistry.addBucketForFluid(fluid); return fluid; } public static Block addBlock(Fluid fluid, MapColor colour) { return new BlockFluidClassic(fluid, new MaterialLiquid(colour)) .setRegistryName(fluid.getName()) .setTranslationKey(fluid.getName()); } ModFluid.addBlock(ModFluid.addFluid("fluidmolten", 500, 500), MapColor.RED); There are no errors in the log, I have skimmed it and ctrl+f'ed, as well as posted it publicly to people. Here is one of the logs: https://gist.github.com/c2b6ebb5217915b9741c10bad3ec4b06 Any ideas?

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.