Jump to content

Cannot create a fluidstack from an unregistered fluid


Androbean

Recommended Posts

Hey! I'm trying to create a fluid called Pink Essence, but when I go into the creative tab to grab a bucket of the stuff, the game crashes and leaves the error "Cannot create a fluidstack from an unregistered fluid"

This is annoying because I very much did register the fluid.

Here's the code: Block Register (registerBlocks(event) is being called in an event handler under a @SubscribeEvent)

lic class GemBlocks {
    public static final Fluid FLUID_PINK_ESSENCE = (Fluid)new Fluid("pink_essence", new ResourceLocation("gem:blocks/pink_essence_still"), new ResourceLocation("gem:blocks/pink_essence_flowing"));
    public static BlockEssence PINK_ESSENCE;

    public static void registerBlocks(RegistryEvent.Register<Block> event){
        FluidRegistry.registerFluid(GemBlocks.FLUID_PINK_ESSENCE);
        FluidRegistry.addBucketForFluid(GemBlocks.FLUID_PINK_ESSENCE);
        GemBlocks.PINK_ESSENCE = (BlockEssence) new BlockEssence(GemBlocks.FLUID_PINK_ESSENCE, Material.WATER, MapColor.PINK);
        GemBlocks.registerBlock(GemBlocks.PINK_ESSENCE, new ResourceLocation("gem:pink_essence"), event);
        GemBlocks.registerStateMappers();
    }

    public static void registerFluid(Fluid fluid) {
        fluid.setUnlocalizedName(fluid.getName());
    }

    public static void registerBlock(Block block, ResourceLocation location, RegistryEvent.Register<Block> event) {
        block.setRegistryName(location);
        event.getRegistry().register(block);
    }

    public static void registerStateMappers(){
        ModelLoader.setCustomStateMapper(GemBlocks.PINK_ESSENCE, new FluidModelMapper(GemBlocks.FLUID_PINK_ESSENCE));
    }
}

 

Creative Tab Code: 

public class GemCreativeTabs extends CreativeTabs {
    public static final CreativeTabs CREATIVE_TAB_GOOD_GEMS = new GemCreativeTabs("good_gems", 0);
    public static final CreativeTabs CREATIVE_TAB_MISC = new GemCreativeTabs("misc",1);
    public final int id;

    public GemCreativeTabs(String label, int id) {
        super(CreativeTabs.getNextID(), label);
        this.id = id;
    }

    @Override
    public ItemStack getTabIconItem() {
        switch(id){
            case 0:
                return new ItemStack(GemItems.PEBBLE_GEM);
            case 1:
                return new ItemStack(GemItems.ESSENCE);
        }
        return new ItemStack(GemItems.PEBBLE_GEM);
    }

    @Override
    @SideOnly(Side.CLIENT)
    public void displayAllRelevantItems(NonNullList<ItemStack> items) {
        super.displayAllRelevantItems(items);
        if (this == GemCreativeTabs.CREATIVE_TAB_MISC) {
            items.add(FluidUtil.getFilledBucket(new FluidStack(GemBlocks.FLUID_PINK_ESSENCE, 1000)));
        }
    }
}

 

Pink Essence Fluid Block code: 


public class BlockEssence extends BlockFluidClassic {

    public BlockEssence(Fluid fluid, Material mat, MapColor color) {
        super(fluid, mat, color);
    }

    @Override
    public void onEntityCollidedWithBlock(World world, BlockPos pos, IBlockState state, Entity entity) {
        if(entity instanceof EntityItem){
            if(((EntityItem) entity).getItem() == new ItemStack(Blocks.STONE_BUTTON)){
                entity.setDead();
                EntityItem gem = new EntityItem(world, pos.getX(), pos.getY() + 1, pos.getZ(), new ItemStack(GemItems.PEBBLE_GEM));
                world.spawnEntity(gem);
            }
        }
    }
}

 

Any and all help appreciated, I've been at this for hours :D

Link to comment
Share on other sites

No problemo:


The version of Gradle you are using (2.14) does not support the environment variables customization feature. Support for this is available in Gradle 3.5 and all later versions.
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
Note: C:\Users\plazm\OneDrive\Desktop\Gemcubation\build\sources\main\java\com\zozo\gem\init\GemEntities.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:compileJava
:processResources UP-TO-DATE
:classes
:jar
:getVersionJson
:extractNatives SKIPPED
:extractUserdev UP-TO-DATE
:getAssetIndex UP-TO-DATE
:getAssets
Current status: 289/1305   22%
Current status: 881/1305   67%
Current status: 1063/1305   81%
Current status: 1074/1305   82%
Current status: 1147/1305   87%
:makeStart
:runClient
[17:04:33] [main/INFO] [GradleStart]: Extra: []
[17:04:34] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/plazm/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[17:04:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:04:34] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:04:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[17:04:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[17:04:34] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading
[17:04:34] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_231, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_231\jre
[17:04:34] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[17:04:34] [main/ERROR] [FML]: Full: C:\Users\plazm\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[17:04:34] [main/ERROR] [FML]: Trimmed: c:/users/plazm/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[17:04:34] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[17:04:34] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2020-04-28 17:04:41,594 main WARN Disabling terminal, you're running in an unsupported environment.
[17:04:41] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[17:04:41] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[17:04:41] [main/INFO] [FML]: Searching C:\Users\plazm\OneDrive\Desktop\Gemcubation\run\.\mods for mods
[17:04:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[17:04:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[17:04:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[17:04:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:04:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:04:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[17:04:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:04:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:04:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:04:46] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[17:04:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:04:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:04:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[17:04:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:04:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:04:47] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[17:04:50] [Client thread/INFO] [minecraft/Minecraft]: Setting user: Player116
[17:04:58] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[17:04:58] [Client thread/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
[17:05:00] [Client thread/INFO] [FML]: -- System Details --
Details:
	Minecraft Version: 1.12.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_231, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 305894920 bytes (291 MB) / 512753664 bytes (489 MB) up to 9544663040 bytes (9102 MB)
	JVM Flags: 1 total; -Xmx10G
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: 
	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13447 Compatibility Profile Context 16.300.2201.0' Renderer: 'AMD Radeon(TM) R6 Graphics'
[17:05:00] [Client thread/INFO] [FML]: MinecraftForge v14.23.5.2847 Initialized
[17:05:00] [Client thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[17:05:01] [Client thread/INFO] [FML]: Invalid recipe found with multiple oredict ingredients in the same ingredient...
[17:05:01] [Client thread/INFO] [FML]: Replaced 1227 ore ingredients
[17:05:03] [Client thread/INFO] [FML]: Searching C:\Users\plazm\OneDrive\Desktop\Gemcubation\run\.\mods for mods
[17:05:07] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 5237075800 nanos
[17:05:09] [Client thread/WARN] [FML]: Mod gem is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.0
[17:05:09] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[17:05:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, gem] at CLIENT
[17:05:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, gem] at SERVER
[17:05:11] [Client thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Gemcubation
[17:05:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[17:05:11] [Client thread/INFO] [FML]: Found 1168 ObjectHolder annotations
[17:05:11] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[17:05:11] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[17:05:12] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[17:05:12] [Client thread/INFO] [FML]: Applying holder lookups
[17:05:12] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[17:05:12] [Client thread/INFO] [FML]: Holder lookups applied
[17:05:12] [Client thread/INFO] [FML]: Applying holder lookups
[17:05:12] [Client thread/INFO] [FML]: Holder lookups applied
[17:05:12] [Client thread/INFO] [FML]: Applying holder lookups
[17:05:12] [Client thread/INFO] [FML]: Holder lookups applied
[17:05:12] [Client thread/INFO] [FML]: Applying holder lookups
[17:05:12] [Client thread/INFO] [FML]: Holder lookups applied
[17:05:12] [Client thread/INFO] [FML]: Injecting itemstacks
[17:05:12] [Client thread/INFO] [FML]: Itemstack injection complete
[17:05:12] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: AHEAD Target: null
[17:05:26] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem...
[17:05:26] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL
[17:05:26] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:05:27] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
[17:05:27] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
[17:05:49] [Client thread/INFO] [FML]: Max texture size: 16384
[17:05:50] [Client thread/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas
[17:05:57] [Client thread/INFO] [FML]: Applying holder lookups
[17:05:57] [Client thread/INFO] [FML]: Holder lookups applied
[17:05:57] [Client thread/INFO] [FML]: Injecting itemstacks
[17:05:57] [Client thread/INFO] [FML]: Itemstack injection complete
[17:05:58] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[17:05:58] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[17:05:59] [Client thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
[17:06:03] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id
[17:06:44] [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.12.2
[17:06:44] [Server thread/INFO] [minecraft/IntegratedServer]: Generating keypair
[17:06:45] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
[17:06:46] [Server thread/INFO] [FML]: Applying holder lookups
[17:06:46] [Server thread/INFO] [FML]: Holder lookups applied
[17:06:46] [Server thread/INFO] [FML]: Loading dimension 0 (Copy of Copy of Test2) (net.minecraft.server.integrated.IntegratedServer@76125908)
[17:06:47] [Server thread/INFO] [minecraft/AdvancementList]: Loaded 488 advancements
[17:06:47] [Server thread/INFO] [FML]: Loading dimension -1 (Copy of Copy of Test2) (net.minecraft.server.integrated.IntegratedServer@76125908)
[17:06:47] [Server thread/INFO] [FML]: Loading dimension 1 (Copy of Copy of Test2) (net.minecraft.server.integrated.IntegratedServer@76125908)
[17:06:47] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for level 0
[17:06:48] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 0%
[17:06:49] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 25%
[17:06:50] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 61%
[17:06:52] [Server thread/INFO] [FML]: Unloading dimension -1
[17:06:52] [Server thread/INFO] [FML]: Unloading dimension 1
[17:06:52] [Server thread/INFO] [minecraft/IntegratedServer]: Changing view distance to 2, from 10
[17:06:56] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[17:06:56] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[17:06:56] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : minecraft@1.12.2,FML@8.0.99.99,forge@14.23.5.2847,mcp@9.42,gem@1.0
[17:06:56] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[17:06:56] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[17:06:56] [Server thread/INFO] [minecraft/PlayerList]: Player116[local:E:f8cf9b94] logged in with entity id 180 at (-100.5, 67.0, -183.5)
[17:06:56] [Server thread/INFO] [minecraft/MinecraftServer]: Player116 joined the game
[17:06:59] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
[17:06:59] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'Copy of Copy of Test2'/overworld
[17:07:01] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 2079ms behind, skipping 41 tick(s)
[17:07:07] [Client thread/WARN] [FML]: ****************************************
[17:07:07] [Client thread/WARN] [FML]: * Failed attempt to create a FluidStack for an unregistered Fluid pink_essence (type net.minecraftforge.fluids.Fluid)
[17:07:07] [Client thread/WARN] [FML]: *  at net.minecraftforge.fluids.FluidStack.<init>(FluidStack.java:53)
[17:07:07] [Client thread/WARN] [FML]: *  at com.zozo.gem.init.GemCreativeTabs.displayAllRelevantItems(GemCreativeTabs.java:37)
[17:07:07] [Client thread/WARN] [FML]: *  at net.minecraft.client.gui.inventory.GuiContainerCreative.setCurrentCreativeTab(GuiContainerCreative.java:537)
[17:07:07] [Client thread/WARN] [FML]: *  at net.minecraft.client.gui.inventory.GuiContainerCreative.mouseReleased(GuiContainerCreative.java:474)
[17:07:07] [Client thread/WARN] [FML]: *  at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:621)
[17:07:07] [Client thread/WARN] [FML]: *  at net.minecraft.client.gui.inventory.GuiContainerCreative.handleMouseInput(GuiContainerCreative.java:630)...
[17:07:07] [Client thread/WARN] [FML]: ****************************************
[17:07:08] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server
[17:07:08] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players
[17:07:08] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds
[17:07:08] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'Copy of Copy of Test2'/overworld
[17:07:13] [Server thread/INFO] [FML]: Unloading dimension 0
[17:07:13] [Server thread/INFO] [FML]: Applying holder lookups
[17:07:13] [Server thread/INFO] [FML]: Holder lookups applied
[17:07:14] [Client thread/FATAL] [minecraft/Minecraft]: Reported exception thrown!
net.minecraft.util.ReportedException: Updating screen events
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1899) ~[Minecraft.class:?]
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1188) ~[Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:442) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_231]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_231]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_231]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_231]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_231]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_231]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.lang.IllegalArgumentException: Cannot create a fluidstack from an unregistered fluid
	at net.minecraftforge.fluids.FluidStack.<init>(FluidStack.java:54) ~[FluidStack.class:?]
	at com.zozo.gem.init.GemCreativeTabs.displayAllRelevantItems(GemCreativeTabs.java:37) ~[GemCreativeTabs.class:?]
	at net.minecraft.client.gui.inventory.GuiContainerCreative.setCurrentCreativeTab(GuiContainerCreative.java:537) ~[GuiContainerCreative.class:?]
	at net.minecraft.client.gui.inventory.GuiContainerCreative.mouseReleased(GuiContainerCreative.java:474) ~[GuiContainerCreative.class:?]
	at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:621) ~[GuiScreen.class:?]
	at net.minecraft.client.gui.inventory.GuiContainerCreative.handleMouseInput(GuiContainerCreative.java:630) ~[GuiContainerCreative.class:?]
	at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:576) ~[GuiScreen.class:?]
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1886) ~[Minecraft.class:?]
	... 15 more
[17:07:14] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
// I let you down. Sorry :(

Time: 4/28/20 5:07 PM
Description: Updating screen events

java.lang.IllegalArgumentException: Cannot create a fluidstack from an unregistered fluid
	at net.minecraftforge.fluids.FluidStack.<init>(FluidStack.java:54)
	at com.zozo.gem.init.GemCreativeTabs.displayAllRelevantItems(GemCreativeTabs.java:37)
	at net.minecraft.client.gui.inventory.GuiContainerCreative.setCurrentCreativeTab(GuiContainerCreative.java:537)
	at net.minecraft.client.gui.inventory.GuiContainerCreative.mouseReleased(GuiContainerCreative.java:474)
	at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:621)
	at net.minecraft.client.gui.inventory.GuiContainerCreative.handleMouseInput(GuiContainerCreative.java:630)
	at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:576)
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1886)
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1188)
	at net.minecraft.client.Minecraft.run(Minecraft.java:442)
	at net.minecraft.client.main.Main.main(Main.java:118)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
	at GradleStart.main(GradleStart.java:25)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
	at net.minecraftforge.fluids.FluidStack.<init>(FluidStack.java:54)
	at com.zozo.gem.init.GemCreativeTabs.displayAllRelevantItems(GemCreativeTabs.java:37)
	at net.minecraft.client.gui.inventory.GuiContainerCreative.setCurrentCreativeTab(GuiContainerCreative.java:537)
	at net.minecraft.client.gui.inventory.GuiContainerCreative.mouseReleased(GuiContainerCreative.java:474)
	at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:621)
	at net.minecraft.client.gui.inventory.GuiContainerCreative.handleMouseInput(GuiContainerCreative.java:630)
	at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:576)

-- Affected screen --
Details:
	Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [EntityPlayerSP['Player116'/180, l='MpServer', x=-100.83, y=67.00, z=-184.70]]
	Chunk stats: MultiplayerChunkCache: 49, 49
	Level seed: 0
	Level generator: ID 00 - default, ver 1. Features enabled: false
	Level generator options: 
	Level spawn location: World: (-100,64,-188), Chunk: (at 12,4,4 in -7,-12; contains blocks -112,0,-192 to -97,255,-177), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
	Level time: 1833 game time, 1833 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Forced entities: 4 total; [EntityCreeper['Creeper'/96, l='MpServer', x=-98.40, y=39.00, z=-172.33], EntitySquid['Squid'/97, l='MpServer', x=-87.58, y=61.06, z=-174.89], EntityPlayerSP['Player116'/180, l='MpServer', x=-100.83, y=67.00, z=-184.70], EntitySlime['Slime'/61, l='MpServer', x=-112.26, y=34.00, z=-178.52]]
	Retry entities: 0 total; []
	Server brand: fml,forge
	Server type: Integrated singleplayer server
Stacktrace:
	at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:461)
	at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2889)
	at net.minecraft.client.Minecraft.run(Minecraft.java:463)
	at net.minecraft.client.main.Main.main(Main.java:118)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
	at GradleStart.main(GradleStart.java:25)

-- System Details --
Details:
	Minecraft Version: 1.12.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_231, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 380027168 bytes (362 MB) / 917504000 bytes (875 MB) up to 9544663040 bytes (9102 MB)
	JVM Flags: 1 total; -Xmx10G
	IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
	FML: MCP 9.42 Powered by Forge 14.23.5.2847 5 mods loaded, 5 mods active
	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

	| State  | ID        | Version      | Source                           | Signature |
	|:------ |:--------- |:------------ |:-------------------------------- |:--------- |
	| LCHIJA | minecraft | 1.12.2       | minecraft.jar                    | None      |
	| LCHIJA | mcp       | 9.42         | minecraft.jar                    | None      |
	| LCHIJA | FML       | 8.0.99.99    | forgeSrc-1.12.2-14.23.5.2847.jar | None      |
	| LCHIJA | forge     | 14.23.5.2847 | forgeSrc-1.12.2-14.23.5.2847.jar | None      |
	| LCHIJA | gem       | 1.0          | gem-1.0.jar                      | None      |

	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13447 Compatibility Profile Context 16.300.2201.0' Renderer: 'AMD Radeon(TM) R6 Graphics'
	Launched Version: 1.12.2
	LWJGL: 2.9.4
	OpenGL: AMD Radeon(TM) R6 Graphics GL version 4.5.13447 Compatibility Profile Context 16.300.2201.0, ATI Technologies Inc.
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: Yes
	Is Modded: Definitely; Client brand changed to 'fml,forge'
	Type: Client (map_client.txt)
	Resource Packs: 
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	CPU: 4x AMD A10-7300 Radeon R6, 10 Compute Cores 4C+6G 
[17:07:14] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\plazm\OneDrive\Desktop\Gemcubation\run\.\crash-reports\crash-2020-04-28_17.07.14-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Picked up _JAVA_OPTIONS: -Xmx10G
:runClient FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_231\bin\java.exe'' finished with non-zero exit value -1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3 mins 7.925 secs
Process 'command 'C:\Program Files\Java\jdk1.8.0_231\bin\java.exe'' finished with non-zero exit value -1
5:07:16 PM: Task execution finished 'runClient -client -Xmx10G'.

Essentially it's having issues showing me the bucket item because it can't load it from the FluidRegistry class because my fluid is "unregistered", which to my knowledge is wrong.

Thanks again!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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