Jump to content

Recommended Posts

Posted (edited)

Ive been trying to follow a few different tutorials for adding a new fluid. I have got it mostly working. What isnt working is the texture of the fluid, and the texture in JEI. Ive tried everything with the blockstate and mode/block, but for the life of me cant make it work. Any help will be much appreciated.

 

block_fluid_coolant.json - BlockState

Spoiler

{
  "forge_marker": 1,
  "variants": {
    "fluid": {
      "model": "forge:fluid",
      "custom": {
        "fluid": "fluid_coolant"
      }
    },
    "inventory": {
      "model": "forge:forge_bucket",
      "textures": {
        "base": "forge:items/bucket_base",
        "fluid": "sw:items/bucket_fluid",
        "cover": "forge:items/bucket_cover"
      },
      "transform": "forge:default-item",
      "custom": {
        "fluid": "plutonium",
        "flipGas": true
      }
    }
  }
}

 

block_fluid_coolant.json - Model

Spoiler

{
    "forge-marker": 1,
    "parent": "block/block",
    "textures": {
        "all": "orecraft:blocks/block_fluid/coolant/block_fluid_coolant_still",
        "flowing": "orecraft:blocks/block_fluid/coolant/block_fluid_coolant_flow"
    }
}

 

Thanks in advance :)

 

EDIT - Some help to implement a bucket with my fluid would be cool too :D

EDIT II - Bucket sorted. Using Forges UniversalBucket.

Edited by Zeher_Monkey
Posted (edited)

Okay so ive got it rendering properly now, but its textured as water. Im really stuck.

 

EDIT- It doesnt render properly in inventory or my fluid tank though.

Edited by Zeher_Monkey
Posted

Okay so ive figured what the problem is, but im not sure how to solve it. Ive now got it rendering as water, however i cannot change this, and the bucket/tank is the broken texture.

 

BlockState: 

Spoiler

{
    "forge-marker": 1,
    "defaults": {
        "model": "forge:fluid"
    },
    "variants": {
        "coolant": {
             "model": "forge:fluid",
             "custom": {
                  "fluid": "coolant"
             }
        } 
        
    }
}

Its all to do with the blockstate, that being the texture of the actual fluid.

Not sure on the texture for bucket...

Posted

More classes if anyone can help

 

Spoiler

package com.zeher.orecraft.core.handlers;

import com.zeher.trzcore.fluid.TRZBlockFluid;
import com.zeher.trzcore.fluid.TRZFluid;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.renderer.block.statemap.StateMapperBase;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.IFluidBlock;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class FluidHandlerOreCraft {
    
    public static TRZFluid fluid_coolant;
    public static TRZBlockFluid block_fluid_coolant;
    
    public static ResourceLocation coolant_still = new ResourceLocation("orecraft:blocks/block_fluid/coolant/coolant_still.png");
    public static ResourceLocation coolant_flow = new ResourceLocation("orecraft:blocks/block_fluid/coolant/oolant_flow.png");
    
    public static void preInit(){
        fluid_coolant = new TRZFluid("coolant", coolant_still, coolant_flow);
        fluid_coolant.setUnlocalizedName("coolant");
    }
    
    public static void register(){
        registerFluid(fluid_coolant);
    }
    
    public static void registerFluid(Fluid fluid){
        FluidRegistry.registerFluid(fluid);
        FluidRegistry.addBucketForFluid(fluid);
    }
    
    
}
 

 

Spoiler

package com.zeher.orecraft.core.handlers;

import com.zeher.orecraft.OreCraft;
import com.zeher.orecraft.machine.block.energized.combiner.*;
import com.zeher.orecraft.machine.block.energized.compressor.*;
import com.zeher.orecraft.machine.block.energized.furnace.*;
import com.zeher.orecraft.machine.block.energized.grinder.*;
import com.zeher.orecraft.machine.block.powered.compressor.*;
import com.zeher.orecraft.machine.block.powered.compressor.*;
import com.zeher.orecraft.machine.block.powered.furnace.*;
import com.zeher.orecraft.machine.block.powered.grinder.*;
import com.zeher.orecraft.storage.block.capacitor.*;
import com.zeher.orecraft.storage.block.fluidtank.BlockFluidTankBasic;
import com.zeher.orecraft.storage.block.fluidtank.ItemBlockFluidTankBasic;
import com.zeher.orecraft.transfer.block.pipe.energy.*;
import com.zeher.orecraft.transfer.block.pipe.fluid.*;
import com.zeher.orecraft.transfer.block.pipe.item.*;
import com.zeher.trzcore.core.block.*;
import com.zeher.trzcore.fluid.TRZBlockFluid;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.renderer.block.statemap.StateMapperBase;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fluids.BlockFluidClassic;
import net.minecraftforge.fluids.IFluidBlock;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class BlockHandlerOreCraft {
    
    //Copper
    public static Block block_ore_copper;
    public static Block block_copper;
    //Tin
    public static Block block_ore_tin;
    public static Block block_tin;
    //Silver
    public static Block block_ore_silver;
    public static Block block_silver;
    //Eutine
    public static Block block_ore_eutine;
    public static Block block_eutine;
    //Mithril
    public static Block block_ore_mithril;
    public static Block block_mithril;
    //Adamantite
    public static Block block_ore_adamantite;
    public static Block block_adamantite;
    //Rune
    public static Block block_ore_rune;
    public static Block block_rune;
    //Fractum
    public static Block block_ore_fractum;
    public static Block block_fractum;
    //Silicon
    public static Block block_ore_silicon;
    public static Block block_silicon;
    
    public static Block block_steel;
    public static Block block_bronze;
    public static Block block_brass;
    
    //Onyx
    public static Block block_ore_onyx;
    public static Block block_onyx;
    //Satsum
    public static Block block_ore_satsum;
    public static Block block_satsum;
    //Azurite
    public static Block block_ore_azurite;
    public static Block block_azurite;
    //Ruby
    public static Block block_ore_ruby;
    public static Block block_ruby;
    //Amythest
    public static Block block_ore_amythest;
    public static Block block_amythest;
    //Yellow Topaz
    public static Block block_ore_yellowtopaz;
    public static Block block_yellowtopaz;
    //Fire Opal
    public static Block block_ore_fireopal;
    public static Block block_fireopal;
    //turquoise
    public static Block block_ore_turquoise;
    public static Block block_turquoise;
    //Black Diamond
    public static Block block_ore_blackdiamond;
    public static Block block_blackdiamond;
    
    public static Block block_god_one;
    public static Block block_god_two;
    public static Block block_god_three;
    
    public static Block block_red;
    
    public static Block block_godone;
    public static Block block_godtwo;
    public static Block block_godthree;
    
    
    public static Block block_basalt_cobblestone;
    public static Block block_basalt;
    public static Block block_basalt_smooth;
    public static Block block_basalt_brick;
    
    public static Block block_marble_cobblestone;
    public static Block block_marble;
    public static Block block_marble_smooth;
    public static Block block_marble_brick;
    
    public static Block block_darkstone;
    public static Block block_darkstone_smooth;
    public static Block block_darkstone_brick;
    
    public static Block block_lightstone;
    public static Block block_lightstone_smooth;
    public static Block block_lightstone_brick;
    
    public static Block block_blackglass;
    
    //Reinforced
    public static Block block_reinforcedstone;
    public static Block block_reinforcedstone_brick;
    public static Block block_reinforcedstone_glass;
    
    //Wither
    public static Block block_witherinfusedstone;
    public static Block block_witherinfusedstone_brick;
    public static Block block_witherinfusedstone_glass;
    
    /**Machine*/
    //Frame
    public static Block block_machineframe_basic;
    public static Block block_machineframe_basicupgrade;
    
    public static Block block_machineframe_ender;
    public static Block block_machineframe_enderupgrade;
    
    public static BlockCapacitorBasic block_capacitor_basic;
    public static ItemBlockCapacitorBasic itemblock_capacitor_basic;
    public static BlockCapacitorAdvanced block_capacitor_advanced;
    public static ItemBlockCapacitorAdvanced itemblock_capacitor_advanced;
    public static BlockCapacitorEnder block_capacitor_ender;
    public static ItemBlockCapacitorEnder itemblock_capacitor_ender;
    public static BlockCapacitorCreative block_capacitor_creative;
    public static ItemBlockCapacitorCreative itemblock_capacitor_creative;
    
    public static BlockFluidTankBasic block_fluidtank_basic;
    public static ItemBlockFluidTankBasic itemblock_fluidtank_basic;
    
    public static BlockEnergyPipeBasic block_energypipe_basic;
    public static BlockEnergyPipeAdvanced block_energypipe_advanced;
    public static BlockEnergyPipeEnder block_energypipe_ender;
    public static BlockEnergyPipeCreative block_energypipe_creative;
    
    public static BlockItemPipeBasicSolid block_itempipe_basic_solid;
    public static BlockItemPipeBasicClear block_itempipe_basic_clear;
    public static BlockItemPipeAdvancedSolid block_itempipe_advanced_solid;
    public static BlockItemPipeAdvancedClear block_itempipe_advanced_clear;
    public static BlockItemPipeEnderSolid block_itempipe_ender_solid;
    public static BlockItemPipeEnderClear block_itempipe_ender_clear;
    public static BlockItemPipeCreativeSolid block_itempipe_creative_solid;
    public static BlockItemPipeCreativeClear block_itempipe_creative_clear;
    
    public static BlockFluidPipeBasicSolid block_fluidpipe_basic_solid;
    public static BlockFluidPipeBasicClear block_fluidpipe_basic_clear;
    public static BlockFluidPipeAdvancedSolid block_fluidpipe_advanced_solid;
    public static BlockFluidPipeAdvancedClear block_fluidpipe_advanced_clear;
    public static BlockFluidPipeEnderSolid block_fluidpipe_ender_solid;
    public static BlockFluidPipeEnderClear block_fluidpipe_ender_clear;
    public static BlockFluidPipeCreativeSolid block_fluidpipe_creative_solid;
    public static BlockFluidPipeCreativeClear block_fluidpipe_creative_clear;
    
    public static BlockPoweredFurnaceBasic block_poweredfurnace_basic;
    public static BlockPoweredFurnaceBasic block_poweredfurnace_basic_burning;
    public static BlockPoweredFurnaceEnder block_poweredfurnace_ender;
    public static BlockPoweredFurnaceEnder block_poweredfurnace_ender_burning;
    
    public static BlockPoweredGrinderBasic block_poweredgrinder_basic;
    public static BlockPoweredGrinderBasic block_poweredgrinder_basic_burning;
    public static BlockPoweredGrinderEnder block_poweredgrinder_ender;
    public static BlockPoweredGrinderEnder block_poweredgrinder_ender_burning;
    
    public static BlockPoweredCompressorBasic block_poweredcompressor_basic;
    public static BlockPoweredCompressorBasic block_poweredcompressor_basic_burning;
    public static BlockPoweredCompressorEnder block_poweredcompressor_ender;
    public static BlockPoweredCompressorEnder block_poweredcompressor_ender_burning;
    
    public static BlockEnergizedFurnaceBasic block_energizedfurnace_basic;
    public static BlockEnergizedFurnaceBasic block_energizedfurnace_basic_burning;
    public static BlockEnergizedFurnaceEnder block_energizedfurnace_ender;
    public static BlockEnergizedFurnaceEnder block_energizedfurnace_ender_burning;
    
    public static BlockEnergizedCompressorBasic block_energizedcompressor_basic;
    public static BlockEnergizedCompressorBasic block_energizedcompressor_basic_burning;
    public static BlockEnergizedCompressorEnder block_energizedcompressor_ender;
    public static BlockEnergizedCompressorEnder block_energizedcompressor_ender_burning;
    
    public static BlockEnergizedGrinderBasic block_energizedgrinder_basic;
    public static BlockEnergizedGrinderBasic block_energizedgrinder_basic_burning;
    public static BlockEnergizedGrinderEnder block_energizedgrinder_ender;
    public static BlockEnergizedGrinderEnder block_energizedgrinder_ender_burning;
    
    public static BlockEnergizedCombinerBasic block_energizedcombiner_basic;
    public static BlockEnergizedCombinerBasic block_energizedcombiner_basic_burning;
    public static BlockEnergizedCombinerEnder block_energizedcombiner_ender;
    public static BlockEnergizedCombinerEnder block_energizedcombiner_ender_burning;
    
    public static TRZBlockFluid block_fluid_coolant;
    
    public static void preInit(){
        
        block_ore_copper = new TRZBlock("block_ore_copper", Material.ROCK, "pickaxe", 1, 3, 8, OreCraft.tab_orecraft);
        block_copper = new TRZBlock("block_copper", Material.IRON, "pickaxe", 1, 3, 8, OreCraft.tab_orecraft);
        
        block_ore_tin = new TRZBlock("block_ore_tin", Material.ROCK, "pickaxe", 1, 3, 8, OreCraft.tab_orecraft);
        block_tin = new TRZBlock("block_tin", Material.IRON, "pickaxe", 1, 3, 8, OreCraft.tab_orecraft);
        
        block_ore_silver = new TRZBlock("block_ore_silver", Material.ROCK, "pickaxe", 2, 5, 8, OreCraft.tab_orecraft);
        block_silver = new TRZBlock("block_silver", Material.IRON, "pickaxe", 1, 5, 8, OreCraft.tab_orecraft);
        
        block_ore_eutine = new TRZBlock("block_ore_eutine", Material.ROCK, "pickaxe", 2, 5, 8, OreCraft.tab_orecraft);
        block_eutine = new TRZBlock("block_eutine", Material.IRON, "pickaxe", 1, 5, 8, OreCraft.tab_orecraft);
        
        block_ore_mithril = new TRZBlock("block_ore_mithril", Material.ROCK, "pickaxe", 3, 7, 8, OreCraft.tab_orecraft);
        block_mithril = new TRZBlock("block_mithril", Material.IRON, "pickaxe", 3, 7, 10, OreCraft.tab_orecraft);
        
        block_ore_adamantite = new TRZBlock("block_ore_adamantite", Material.ROCK, "pickaxe", 3, 7, 8, OreCraft.tab_orecraft);
        block_adamantite = new TRZBlock("block_adamantite", Material.IRON, "pickaxe", 3, 7, 10, OreCraft.tab_orecraft);
        
        block_ore_rune = new TRZBlock("block_ore_rune", Material.ROCK, "pickaxe", 3, 7, 8, OreCraft.tab_orecraft);
        block_rune = new TRZBlock("block_rune", Material.IRON, "pickaxe", 3, 7, 12, OreCraft.tab_orecraft);
        
        block_ore_fractum = new TRZBlock("block_ore_fractum", Material.ROCK, "pickaxe", 4, 9, 8, OreCraft.tab_orecraft);
        block_fractum = new TRZBlock("block_fractum", Material.IRON, "pickaxe", 4, 9, 14, OreCraft.tab_orecraft);
        
        block_ore_silicon = new TRZBlock("block_ore_silicon", Material.ROCK, "pickaxe", 2, 4, 3, OreCraft.tab_orecraft);
        block_silicon = new TRZBlock("block_silicon", Material.IRON, "pickaxe", 2, 4, 5, OreCraft.tab_orecraft);
        
        block_steel = new TRZBlock("block_steel", Material.IRON, "pickaxe", 2, 5, 10, OreCraft.tab_orecraft);
        block_bronze = new TRZBlock("block_bronze", Material.IRON, "pickaxe", 2, 4, 8, OreCraft.tab_orecraft);
        block_brass = new TRZBlock("block_brass", Material.IRON, "pickaxe", 2, 4, 6, OreCraft.tab_orecraft);
        
        /**Crystals*/
        block_ore_onyx = new TRZBlockOreGem("block_ore_onyx", ItemHandlerOreCraft.gem_onyx, "pickaxe", 1, 3, OreCraft.tab_orecraft);
        block_onyx = new TRZBlock("block_onyx", Material.IRON, "pickaxe", 1, 3, 8, OreCraft.tab_orecraft);
        
        block_ore_satsum = new TRZBlockOreGem("block_ore_satsum", ItemHandlerOreCraft.gem_satsum, "pickaxe", 1, 3, OreCraft.tab_orecraft);
        block_satsum = new TRZBlock("block_satsum", Material.IRON, "pickaxe", 1, 3, 8, OreCraft.tab_orecraft);
        
        block_ore_azurite = new TRZBlockOreGem("block_ore_azurite", ItemHandlerOreCraft.gem_azurite, "pickaxe", 2, 5, OreCraft.tab_orecraft);
        block_azurite = new TRZBlock("block_azurite", Material.IRON, "pickaxe", 2, 5, 8, OreCraft.tab_orecraft);
        
        block_ore_ruby = new TRZBlockOreGem("block_ore_ruby", ItemHandlerOreCraft.gem_ruby, "pickaxe", 3, 7, OreCraft.tab_orecraft);
        block_ruby = new TRZBlock("block_ruby", Material.IRON, "pickaxe", 3, 7, 8, OreCraft.tab_orecraft);
        
        block_ore_amythest = new TRZBlockOreGem("block_ore_amythest", ItemHandlerOreCraft.gem_amythest, "pickaxe", 3, 7, OreCraft.tab_orecraft);
        block_amythest = new TRZBlock("block_amythest", Material.IRON, "pickaxe", 3, 7, 8, OreCraft.tab_orecraft);
        
        block_ore_yellowtopaz = new TRZBlockOreGem("block_ore_yellowtopaz", ItemHandlerOreCraft.gem_yellowtopaz, "pickaxe", 2, 5, OreCraft.tab_orecraft);
        block_yellowtopaz = new TRZBlock("block_yellowtopaz", Material.IRON, "pickaxe", 2, 5, 8, OreCraft.tab_orecraft);
        
        block_ore_fireopal = new TRZBlockOreGem("block_ore_fireopal", ItemHandlerOreCraft.gem_fireopal, "pickaxe", 3, 7, OreCraft.tab_orecraft);
        block_fireopal = new TRZBlock("block_fireopal", Material.IRON, "pickaxe", 3, 7, 8, OreCraft.tab_orecraft);
        
        block_ore_turquoise = new TRZBlockOreGem("block_ore_turquoise", ItemHandlerOreCraft.gem_turquoise, "pickaxe", 3, 7, OreCraft.tab_orecraft);
        block_turquoise = new TRZBlock("block_turquoise", Material.IRON, "pickaxe", 3, 7, 8, OreCraft.tab_orecraft);
        
        block_ore_blackdiamond = new TRZBlockOreGem("block_ore_blackdiamond", ItemHandlerOreCraft.gem_blackdiamond, "pickaxe", 4, 9, OreCraft.tab_orecraft);
        block_blackdiamond = new TRZBlock("block_blackdiamond", Material.IRON, "pickaxe", 4, 9, 8, OreCraft.tab_orecraft);
        
        block_red = new TRZBlock("block_red", Material.IRON, "pickaxe", 3, 4, 8, OreCraft.tab_orecraft);
        
        block_godone = new TRZBlock("block_godone", Material.IRON, "pickaxe", 4, 10, 12, OreCraft.tab_orecraft);
        block_godtwo = new TRZBlock("block_godtwo", Material.IRON, "pickaxe", 4, 10, 16, OreCraft.tab_orecraft);
        block_godthree = new TRZBlock("block_godthree", Material.IRON, "pickaxe", 4, 10, 20, OreCraft.tab_orecraft);
        
        block_machineframe_basic = new TRZBlock("block_machineframe_basic", Material.IRON, "pickaxe", 2, 5, 4, OreCraft.tab_orecraft);
        block_machineframe_basicupgrade = new TRZBlock("block_machineframe_basicupgrade", Material.IRON, "pickaxe", 2, 5, 4, OreCraft.tab_orecraft);
        
        block_machineframe_ender = new TRZBlock("block_machineframe_ender", Material.IRON, "pickaxe", 3, 8, 4, OreCraft.tab_orecraft);
        block_machineframe_enderupgrade = new TRZBlock("block_machineframe_enderupgrade", Material.IRON, "pickaxe", 3, 8, 4, OreCraft.tab_orecraft);
        
        block_capacitor_basic = new BlockCapacitorBasic(Material.IRON, "block_capacitor_basic");
        itemblock_capacitor_basic = new ItemBlockCapacitorBasic(block_capacitor_basic);
        block_capacitor_advanced = new BlockCapacitorAdvanced(Material.IRON, "block_capacitor_advanced");
        itemblock_capacitor_advanced = new ItemBlockCapacitorAdvanced(block_capacitor_advanced);
        block_capacitor_ender = new BlockCapacitorEnder(Material.IRON, "block_capacitor_ender");
        itemblock_capacitor_ender = new ItemBlockCapacitorEnder(block_capacitor_ender);
        block_capacitor_creative = new BlockCapacitorCreative(Material.IRON, "block_capacitor_creative");
        itemblock_capacitor_creative = new ItemBlockCapacitorCreative(block_capacitor_creative);
        
        block_fluidtank_basic = new BlockFluidTankBasic("block_fluidtank_basic", Material.GLASS, "pickaxe", 2, 3, 10, OreCraft.tab_orecraft_materials);
        itemblock_fluidtank_basic = new ItemBlockFluidTankBasic(block_fluidtank_basic);
        
        block_energypipe_basic = new BlockEnergyPipeBasic(Material.IRON, "block_energypipe_basic");
        block_energypipe_advanced = new BlockEnergyPipeAdvanced(Material.IRON, "block_energypipe_advanced");
        block_energypipe_ender = new BlockEnergyPipeEnder(Material.IRON, "block_energypipe_ender");
        block_energypipe_creative = new BlockEnergyPipeCreative(Material.IRON, "block_energypipe_creative");
        
        block_itempipe_basic_solid = new BlockItemPipeBasicSolid(Material.IRON, "block_itempipe_basic_solid");
        block_itempipe_basic_clear = new BlockItemPipeBasicClear(Material.IRON, "block_itempipe_basic_clear");
        block_itempipe_advanced_solid = new BlockItemPipeAdvancedSolid(Material.IRON, "block_itempipe_advanced_solid");
        block_itempipe_advanced_clear = new BlockItemPipeAdvancedClear(Material.IRON, "block_itempipe_advanced_clear");
        block_itempipe_ender_solid = new BlockItemPipeEnderSolid(Material.IRON, "block_itempipe_ender_solid");
        block_itempipe_ender_clear = new BlockItemPipeEnderClear(Material.IRON, "block_itempipe_ender_clear");
        block_itempipe_creative_solid = new BlockItemPipeCreativeSolid(Material.IRON, "block_itempipe_creative_solid");
        block_itempipe_creative_clear = new BlockItemPipeCreativeClear(Material.IRON, "block_itempipe_creative_clear");
        
        block_fluidpipe_basic_solid = new BlockFluidPipeBasicSolid(Material.IRON, "block_fluidpipe_basic_solid");
        block_fluidpipe_basic_clear = new BlockFluidPipeBasicClear(Material.IRON, "block_fluidpipe_basic_clear");
        block_fluidpipe_advanced_solid = new BlockFluidPipeAdvancedSolid(Material.IRON, "block_fluidpipe_advanced_solid");
        block_fluidpipe_advanced_clear = new BlockFluidPipeAdvancedClear(Material.IRON, "block_fluidpipe_advanced_clear");
        block_fluidpipe_ender_solid = new BlockFluidPipeEnderSolid(Material.IRON, "block_fluidpipe_ender_solid");
        block_fluidpipe_ender_clear = new BlockFluidPipeEnderClear(Material.IRON, "block_fluidpipe_ender_clear");
        block_fluidpipe_creative_solid = new BlockFluidPipeCreativeSolid(Material.IRON, "block_fluidpipe_creative_solid");
        block_fluidpipe_creative_clear = new BlockFluidPipeCreativeClear(Material.IRON, "block_fluidpipe_creative_clear");
        
        block_poweredfurnace_basic = new BlockPoweredFurnaceBasic(Material.IRON, "block_poweredfurnace_basic", false);
        block_poweredfurnace_basic_burning = new BlockPoweredFurnaceBasic(Material.IRON, "block_poweredfurnace_basic_burning", true);
        block_poweredfurnace_ender = new BlockPoweredFurnaceEnder(Material.IRON, "block_poweredfurnace_ender", false);
        block_poweredfurnace_ender_burning = new BlockPoweredFurnaceEnder(Material.IRON, "block_poweredfurnace_ender_burning", true);
        
        block_poweredgrinder_basic = new BlockPoweredGrinderBasic(Material.IRON, "block_poweredgrinder_basic", false);
        block_poweredgrinder_basic_burning = new BlockPoweredGrinderBasic(Material.IRON, "block_poweredgrinder_basic_burning", true);
        block_poweredgrinder_ender = new BlockPoweredGrinderEnder(Material.IRON, "block_poweredgrinder_ender", false);
        block_poweredgrinder_ender_burning = new BlockPoweredGrinderEnder(Material.IRON, "block_poweredgrinder_ender_burning", true);
        
        block_poweredcompressor_basic = new BlockPoweredCompressorBasic(Material.IRON, "block_poweredcompressor_basic", false);
        block_poweredcompressor_basic_burning = new BlockPoweredCompressorBasic(Material.IRON, "block_poweredcompressor_basic_burning", true);
        block_poweredcompressor_ender = new BlockPoweredCompressorEnder(Material.IRON, "block_poweredcompressor_ender", false);
        block_poweredcompressor_ender_burning = new BlockPoweredCompressorEnder(Material.IRON, "block_poweredcompressor_ender_burning", true);
        
        block_energizedfurnace_basic = new BlockEnergizedFurnaceBasic(Material.IRON, "block_energizedfurnace_basic", false);
        block_energizedfurnace_basic_burning = new BlockEnergizedFurnaceBasic(Material.IRON, "block_energizedfurnace_basic_burning", true);
        block_energizedfurnace_ender = new BlockEnergizedFurnaceEnder(Material.IRON, "block_energizedfurnace_ender", false);
        block_energizedfurnace_ender_burning = new BlockEnergizedFurnaceEnder(Material.IRON, "block_energizedfurnace_ender_burning", true);
        
        block_energizedgrinder_basic = new BlockEnergizedGrinderBasic(Material.IRON, "block_energizedgrinder_basic", false);
        block_energizedgrinder_basic_burning = new BlockEnergizedGrinderBasic(Material.IRON, "block_energizedgrinder_basic_burning", true);
        block_energizedgrinder_ender = new BlockEnergizedGrinderEnder(Material.IRON, "block_energizedgrinder_ender", false);
        block_energizedgrinder_ender_burning = new BlockEnergizedGrinderEnder(Material.IRON, "block_energizedgrinder_ender_burning", true);
        
        block_energizedcompressor_basic = new BlockEnergizedCompressorBasic(Material.IRON, "block_energizedcompressor_basic", false);
        block_energizedcompressor_basic_burning = new BlockEnergizedCompressorBasic(Material.IRON, "block_energizedcompressor_basic_burning", true);
        block_energizedcompressor_ender = new BlockEnergizedCompressorEnder(Material.IRON, "block_energizedcompressor_ender", false);
        block_energizedcompressor_ender_burning = new BlockEnergizedCompressorEnder(Material.IRON, "block_energizedcompressor_ender_burning", true);
        
        block_energizedcombiner_basic = new BlockEnergizedCombinerBasic(Material.IRON, "block_energizedcombiner_basic", false);
        block_energizedcombiner_basic_burning = new BlockEnergizedCombinerBasic(Material.IRON, "block_energizedcombiner_basic_burning", true);
        block_energizedcombiner_ender = new BlockEnergizedCombinerEnder(Material.IRON, "block_energizedcombiner_ender", false);
        block_energizedcombiner_ender_burning = new BlockEnergizedCombinerEnder(Material.IRON, "block_energizedcombiner_ender_burning", true);
        
        block_fluid_coolant = new TRZBlockFluid(FluidHandlerOreCraft.fluid_coolant, Material.WATER, "block_fluid_coolant");
    }
     
    public static void register(){
        registerBlock(block_ore_copper);
        registerBlock(block_copper);
        
        registerBlock(block_ore_tin);
        registerBlock(block_tin);
        
        registerBlock(block_ore_silver);
        registerBlock(block_silver);
        
        registerBlock(block_ore_eutine);
        registerBlock(block_eutine);
        
        registerBlock(block_ore_mithril);
        registerBlock(block_mithril);
        
        registerBlock(block_ore_adamantite);
        registerBlock(block_adamantite);
        
        registerBlock(block_ore_rune);
        registerBlock(block_rune);
        
        registerBlock(block_ore_fractum);
        registerBlock(block_fractum);
        
        registerBlock(block_ore_silicon);
        registerBlock(block_silicon);

        registerBlock(block_steel);
        registerBlock(block_bronze);
        registerBlock(block_brass);
        
        /**Crystals*/
        registerBlock(block_ore_onyx);
        registerBlock(block_onyx);
        
        registerBlock(block_ore_satsum);
        registerBlock(block_satsum);
        
        registerBlock(block_ore_azurite);
        registerBlock(block_azurite);
        
        registerBlock(block_ore_ruby);
        registerBlock(block_ruby);
        
        registerBlock(block_ore_amythest);
        registerBlock(block_amythest);
        
        registerBlock(block_ore_yellowtopaz);
        registerBlock(block_yellowtopaz);
        
        registerBlock(block_ore_fireopal);
        registerBlock(block_fireopal);
        
        registerBlock(block_ore_turquoise);
        registerBlock(block_turquoise);
        
        registerBlock(block_ore_blackdiamond);
        registerBlock(block_blackdiamond);
        
        registerBlock(block_red);
        
        registerBlock(block_godone);
        registerBlock(block_godtwo);
        registerBlock(block_godthree);
        
        registerBlock(block_machineframe_basic);
        registerBlock(block_machineframe_basicupgrade);
        
        registerBlock(block_machineframe_ender);
        registerBlock(block_machineframe_enderupgrade);
        
        registerBlock(block_capacitor_basic, itemblock_capacitor_basic);
        registerBlock(block_capacitor_advanced, itemblock_capacitor_advanced);
        registerBlock(block_capacitor_ender, itemblock_capacitor_ender);
        registerBlock(block_capacitor_creative, itemblock_capacitor_creative);
        
        registerBlock(block_fluidtank_basic, itemblock_fluidtank_basic);
        
        registerBlock(block_energypipe_basic);
        registerBlock(block_energypipe_advanced);
        registerBlock(block_energypipe_ender);
        registerBlock(block_energypipe_creative);
        
        registerBlock(block_itempipe_basic_solid);
        registerBlock(block_itempipe_basic_clear);
        registerBlock(block_itempipe_advanced_solid);
        registerBlock(block_itempipe_advanced_clear);
        registerBlock(block_itempipe_ender_solid);
        registerBlock(block_itempipe_ender_clear);
        registerBlock(block_itempipe_creative_solid);
        registerBlock(block_itempipe_creative_clear);
        
        registerBlock(block_fluidpipe_basic_solid);
        registerBlock(block_fluidpipe_basic_clear);
        registerBlock(block_fluidpipe_advanced_solid);
        registerBlock(block_fluidpipe_advanced_clear);
        registerBlock(block_fluidpipe_ender_solid);
        registerBlock(block_fluidpipe_ender_clear);
        registerBlock(block_fluidpipe_creative_solid);
        registerBlock(block_fluidpipe_creative_clear);
        
        registerBlock(block_poweredfurnace_basic);
        registerBlock(block_poweredfurnace_basic_burning);
        registerBlock(block_poweredfurnace_ender);
        registerBlock(block_poweredfurnace_ender_burning);
        
        registerBlock(block_poweredgrinder_basic);
        registerBlock(block_poweredgrinder_basic_burning);
        registerBlock(block_poweredgrinder_ender);
        registerBlock(block_poweredgrinder_ender_burning);
        
        registerBlock(block_poweredcompressor_basic);
        registerBlock(block_poweredcompressor_basic_burning);
        registerBlock(block_poweredcompressor_ender);
        registerBlock(block_poweredcompressor_ender_burning);
        
        registerBlock(block_energizedfurnace_basic);
        registerBlock(block_energizedfurnace_basic_burning);
        registerBlock(block_energizedfurnace_ender);
        registerBlock(block_energizedfurnace_ender_burning);

        registerBlock(block_energizedgrinder_basic);
        registerBlock(block_energizedgrinder_basic_burning);
        registerBlock(block_energizedgrinder_ender);
        registerBlock(block_energizedgrinder_ender_burning);
        
        registerBlock(block_energizedcompressor_basic);
        registerBlock(block_energizedcompressor_basic_burning);
        registerBlock(block_energizedcompressor_ender);
        registerBlock(block_energizedcompressor_ender_burning);
        
        registerBlock(block_energizedcombiner_basic);
        registerBlock(block_energizedcombiner_basic_burning);
        registerBlock(block_energizedcombiner_ender);
        registerBlock(block_energizedcombiner_ender_burning);
        
        registerBlock(block_fluid_coolant);
        registerFluidModel(block_fluid_coolant);
    }
     
    public static void registerRenders(){
        registerRender(block_ore_copper);
        registerRender(block_copper);
        
        registerRender(block_ore_tin);
        registerRender(block_tin);
        
        registerRender(block_ore_silver);
        registerRender(block_silver);
        
        registerRender(block_ore_eutine);
        registerRender(block_eutine);
        
        registerRender(block_ore_mithril);
        registerRender(block_mithril);
        
        registerRender(block_ore_adamantite);
        registerRender(block_adamantite);
        
        registerRender(block_ore_rune);
        registerRender(block_rune);
        
        registerRender(block_ore_fractum);
        registerRender(block_fractum);
        
        registerRender(block_ore_silicon);
        registerRender(block_silicon);
        
        registerRender(block_steel);
        registerRender(block_bronze);
        registerRender(block_brass);
        
        
        /**Crystals*/
        registerRender(block_ore_onyx);
        registerRender(block_onyx);
        
        registerRender(block_ore_satsum);
        registerRender(block_satsum);
        
        registerRender(block_ore_azurite);
        registerRender(block_azurite);
        
        registerRender(block_ore_ruby);
        registerRender(block_ruby);
        
        registerRender(block_ore_amythest);
        registerRender(block_amythest);
        
        registerRender(block_ore_yellowtopaz);
        registerRender(block_yellowtopaz);
        
        registerRender(block_ore_fireopal);
        registerRender(block_fireopal);
        
        registerRender(block_ore_turquoise);
        registerRender(block_turquoise);
        
        registerRender(block_ore_blackdiamond);
        registerRender(block_blackdiamond);
        
        registerRender(block_red);
        
        registerRender(block_godone);
        registerRender(block_godtwo);
        registerRender(block_godthree);
        
        registerRender(block_machineframe_basic);
        registerRender(block_machineframe_basicupgrade);
        
        registerRender(block_machineframe_ender);
        registerRender(block_machineframe_enderupgrade);
        
        registerRender(block_capacitor_basic);
        registerRender(block_capacitor_advanced);
        registerRender(block_capacitor_ender);
        registerRender(block_capacitor_creative);
        
        registerRender(block_fluidtank_basic);
        
        registerRender(block_energypipe_basic);
        registerRender(block_energypipe_advanced);
        registerRender(block_energypipe_ender);
        registerRender(block_energypipe_creative);
        
        registerRender(block_itempipe_basic_solid);
        registerRender(block_itempipe_basic_clear);
        registerRender(block_itempipe_advanced_solid);
        registerRender(block_itempipe_advanced_clear);
        registerRender(block_itempipe_ender_solid);
        registerRender(block_itempipe_ender_clear);
        registerRender(block_itempipe_creative_solid);
        registerRender(block_itempipe_creative_clear);

        registerRender(block_fluidpipe_basic_solid);
        registerRender(block_fluidpipe_basic_clear);
        registerRender(block_fluidpipe_advanced_solid);
        registerRender(block_fluidpipe_advanced_clear);
        registerRender(block_fluidpipe_ender_solid);
        registerRender(block_fluidpipe_ender_clear);
        registerRender(block_fluidpipe_creative_solid);
        registerRender(block_fluidpipe_creative_clear);
        
        registerRender(block_poweredfurnace_basic);
        registerRender(block_poweredfurnace_basic_burning);
        registerRender(block_poweredfurnace_ender);
        registerRender(block_poweredfurnace_ender_burning);
        
        registerRender(block_poweredgrinder_basic);
        registerRender(block_poweredgrinder_basic_burning);
        registerRender(block_poweredgrinder_ender);
        registerRender(block_poweredgrinder_ender_burning);
        
        registerRender(block_poweredcompressor_basic);
        registerRender(block_poweredcompressor_basic_burning);
        registerRender(block_poweredcompressor_ender);
        registerRender(block_poweredcompressor_ender_burning);

        registerRender(block_energizedfurnace_basic);
        registerRender(block_energizedfurnace_basic_burning);
        registerRender(block_energizedfurnace_ender);
        registerRender(block_energizedfurnace_ender_burning);

        registerRender(block_energizedgrinder_basic);
        registerRender(block_energizedgrinder_basic_burning);
        registerRender(block_energizedgrinder_ender);
        registerRender(block_energizedgrinder_ender_burning);
        
        registerRender(block_energizedcompressor_basic);
        registerRender(block_energizedcompressor_basic_burning);
        registerRender(block_energizedcompressor_ender);
        registerRender(block_energizedcompressor_ender_burning);
        
        registerRender(block_energizedcombiner_basic);
        registerRender(block_energizedcombiner_basic_burning);
        registerRender(block_energizedcombiner_ender);
        registerRender(block_energizedcombiner_ender_burning);
        
    }
     
    public static void registerRender(Block block){
        Item item = Item.getItemFromBlock(block);
        Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
    }
    
    public static void registerBlock(Block block, ItemBlock item){
        GameRegistry.register(block);
        GameRegistry.register(item, block.getRegistryName());
    }
    
    public static void registerBlock(Block block){
        ItemBlock item = new ItemBlock(block);
        GameRegistry.register(block);
        GameRegistry.register(item, block.getRegistryName());
    }
    
    public static void registerFluidModel(TRZBlockFluid fluidBlock){
        ItemBlock item = (ItemBlock) ItemBlock.getItemFromBlock(fluidBlock);
        
        ModelBakery.registerItemVariants(item);

        final ModelResourceLocation modelResourceLocation = new ModelResourceLocation("orecraft:block_fluid_coolant", fluidBlock.getFluid().getName());

        ModelLoader.setCustomMeshDefinition(item, MeshDefinitionFix.create(stack -> modelResourceLocation));

        ModelLoader.setCustomStateMapper((Block) fluidBlock, new StateMapperBase() {
            @Override
            protected ModelResourceLocation getModelResourceLocation(IBlockState p_178132_1_) {
                return modelResourceLocation;
            }
        });

        //GameRegistry.register(item);
    }
    
}
 

 

 

Spoiler

{
    "forge-marker": 1,
    "variants": {
        "coolant": {
             "model": "forge:fluid",
             "custom": {
                  "fluid": "coolant"
             }
        } 
        
    }
}

 

Spoiler

package com.zeher.trzcore.fluid;

import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fluids.Fluid;

public class TRZFluid extends Fluid {

    public TRZFluid(String fluidName, ResourceLocation still, ResourceLocation flowing) {
        super(fluidName, still, flowing);
    }

}
 

 

 

Im really at a loss, getting frustrated which isnt helping. Thanks in advance

  • 1 month later...
Posted

Not sure if you've figured it out yet, since it has been a while since you posted. I have only recently got back into trying modding fluids and after a bit of digging around figured it out. I haven't finished with the tanks and buckets yet, but you can get information on the fluid blocks in my tutorial here: http://jabelarminecraft.blogspot.com/p/minecraft-modding-fluids_18.html

 

You can also see some working code in my example mod here: https://github.com/jabelar/ExampleMod-1.12/tree/master/src/main/java/com/blogspot/jabelarminecraft/examplemod In that example I made a slime fluid block (that can push you like water and also puts an colored overlay on the screen if you go deep into it (also like water). 

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Looking for the best Temu coupon code $100 off? You’re in the right place! We’ve got the ultimate deal that helps you save big on your favorite items. Our exclusive ACS670886 Temu coupon code is perfect for shoppers in the USA, Canada, and Europe. Whether you're a new or existing customer, this code ensures you get maximum benefits. By using the Temu coupon $100 off, you can unlock exciting savings on Temu’s vast collection. Don’t miss this chance to claim your Temu 100 off coupon code today! What Is The Coupon Code For Temu $100 Off? Both new and existing customers can enjoy incredible benefits with our Temu coupon $100 off on the Temu app and website. This $100 off Temu coupon ensures huge savings for everyone! ACS670886 – Get a flat $100 off on selected purchases. ACS670886 – Unlock a $100 coupon pack for multiple uses. ACS670886 – Enjoy a $100 flat discount if you're a new customer. ACS670886 – Existing customers can claim an extra $100 promo code. ACS670886 – This $100 coupon is valid for shoppers in the USA and Canada. Temu Coupon Code $100 Off For New Users In 2025 New users can maximize their savings by applying our Temu coupon $100 off on the Temu app. This Temu coupon code $100 off unlocks amazing deals for first-time shoppers. ACS670886 – Get a flat $100 discount for new users. ACS670886 – Receive a $100 coupon bundle as a welcome offer. ACS670886 – Unlock up to $100 in coupons for multiple uses. ACS670886 – Enjoy free shipping to 68 countries. ACS670886 – Get an extra 30% off on any purchase as a first-time user. How To Redeem The Temu Coupon $100 Off For New Customers? Using the Temu $100 coupon is easy! Follow these steps to redeem your Temu $100 off coupon code for new users: Sign up on the Temu app or website. Browse and add your favorite items to the cart. Enter ACS670886 at checkout. See the $100 discount applied instantly. Complete your purchase and enjoy your savings! Temu Coupon $100 Off For Existing Customers Existing customers can also benefit from our exclusive Temu $100 coupon codes for existing users. Use this Temu coupon $100 off for existing customers free shipping deal and save more! ACS670886 – Get an extra $100 discount for existing users. ACS670886 – Enjoy a $100 coupon bundle for multiple purchases. ACS670886 – Receive a free gift with express shipping across the USA/Canada. ACS670886 – Grab an extra 30% off on top of existing discounts. ACS670886 – Avail free shipping to 68 countries. How To Use The Temu Coupon Code $100 Off For Existing Customers? Redeeming your Temu coupon code $100 off as an existing user is simple. Just follow these steps: Log in to your Temu account. Select your desired products and add them to your cart. Apply ACS670886 at checkout. Your Temu coupon $100 off code will be applied automatically. Confirm your order and enjoy massive savings! Latest Temu Coupon $100 Off First Order First-time buyers get the best deals with our Temu coupon code $100 off first order. This Temu coupon code first order ensures maximum savings. ACS670886 – Flat $100 discount for the first order. ACS670886 – Special $100 Temu coupon code for new customers. ACS670886 – Get up to $100 in coupons for multiple uses. ACS670886 – Free shipping to 68 countries. ACS670886 – Extra 30% off on any first-time purchase. How To Find The Temu Coupon Code $100 Off? Finding a Temu coupon $100 off is easy! Check out the Temu coupon $100 off Reddit section or follow these tips: Subscribe to the Temu newsletter for exclusive deals. Follow Temu’s official social media pages for the latest updates. Visit trusted coupon sites for verified and working codes. Is Temu $100 Off Coupon Legit? Yes, our Temu $100 Off Coupon Legit and verified! Wondering if the Temu 100 off coupon legit? Here’s why: The ACS670886 code is officially tested and confirmed. Valid for all customers in the USA, Canada, and Europe. No expiration date—use it anytime! How Does Temu $100 Off Coupon Work? The Temu coupon code $100 off first-time user works instantly upon applying at checkout. Simply enter the Temu coupon codes 100 off, and the discount is automatically deducted. How To Earn Temu $100 Coupons As A New Customer? To earn a Temu coupon code $100 off, sign up on Temu, make your first purchase, and refer friends. This 100 off Temu coupon code can be unlocked through special promotions. What Are The Advantages Of Using The Temu Coupon $100 Off? $100 discount on the first order $100 coupon bundle for multiple uses 70% discount on popular items Extra 30% off for existing customers Up to 90% off on selected products Free gifts for new users Free delivery to 68 countries Temu $100 Discount Code And Free Gift For New And Existing Customers Enjoy the Temu $100 off coupon code and get amazing benefits! Our $100 off Temu coupon code ensures huge savings. ACS670886 – $100 discount for the first order. ACS670886 – Extra 30% off on any item. ACS670886 – Free gift for new Temu users. ACS670886 – Up to 70% discount on all Temu items. ACS670886 – Free shipping in 68 countries including the USA and UK. Final Note: Use The Latest Temu Coupon Code $100 Off Using the Temu coupon code $100 off is the smartest way to save on Temu! Don’t wait—grab your discount now. Our Temu coupon $100 off is available for all customers, ensuring maximum savings. Get yours today! FAQs Of Temu $100 Off Coupon Q: How can I get the Temu $100 off coupon? A: Use code ACS670886 at checkout to claim your $100 discount. Q: Is the Temu $100 coupon valid for existing customers? A: Yes! Existing users can also apply ACS670886 and enjoy savings. Q: Does the Temu $100 off coupon have an expiration date? A: No, ACS670886 is valid indefinitely. Q: Can I use the Temu coupon on multiple orders? A: Yes! ACS670886 allows multiple redemptions. Q: Is the Temu $100 coupon applicable worldwide? A: Yes, it’s valid in the USA, Canada, Europe, and 68 other countries.
    • I tried both Vanilla and Optfine like you said, and both gave the same result. So I believe the issue is most likely with Minecraft in general and not Forge
    • https://pastebin.com/xWy0mWXA Like I said Modded Java Edition 1.12.2 using Forge Version 14.23.5.2859 Oh yeah and Exit Code: 1  
    • I love GTA V — Minecraft feels like a kids' game to me.
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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