Jump to content

[1.7.2] openGui Problem (onBlockActivated)


BreezerTwo

Recommended Posts

Hello everybody.... I have a small problem....

 

evertime if I try to open the GUI of my custum furnace minecraft crashes!

I have been searching for the error for hours now and I decided to ask the people here If they have an idea what's wrong!

 

I think it has something to do with the openGui at onBlockActivated in the CustumFurnace class (here:  Grinder.java)

 

Thanks for your help! :D

 

The Console Error Log:

 

 

[22:48:03] [main/INFO]: Setting user: Player777

[22:48:03] [Client thread/INFO]: LWJGL Version: 2.9.0

[22:48:03] [Client thread/ERROR]: Couldn't set icon

javax.imageio.IIOException: Can't read input file!

at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.client.Minecraft.readImage(Minecraft.java:680) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:509) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[22:48:06] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[22:48:06] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1025 Initialized

[22:48:06] [Client thread/INFO] [FML]: Replaced 128 ore recipies

[22:48:06] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[22:48:06] [Client thread/INFO] [FML]: Searching D:\Desktop\Usage\Minecraft\Moding\RecipesMod\Update1.7.2\RecipesMod2\mods for mods

[22:48:07] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[22:48:08] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[22:48:08] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MoreReipesMod

[22:48:08] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[22:48:08] [Client thread/WARN]: Adding duplicate key 'MODID:Butter' to registry

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

OpenAL initialized.

[22:48:09] [Client thread/ERROR]: Using missing texture, unable to load morerecipes:textures/blocks/tomatos_6.png

java.io.FileNotFoundException: morerecipes:textures/blocks/tomatos_6.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[22:48:09] [Client thread/ERROR]: Using missing texture, unable to load morerecipes:textures/blocks/tomatos_7.png

java.io.FileNotFoundException: morerecipes:textures/blocks/tomatos_7.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[22:48:09] [Client thread/ERROR]: Using missing texture, unable to load morerecipes:textures/blocks/tomatos_4.png

java.io.FileNotFoundException: morerecipes:textures/blocks/tomatos_4.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[22:48:09] [Client thread/ERROR]: Using missing texture, unable to load morerecipes:textures/blocks/tomatos_5.png

java.io.FileNotFoundException: morerecipes:textures/blocks/tomatos_5.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[22:48:09] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/grinder_side.png

java.io.FileNotFoundException: minecraft:textures/blocks/grinder_side.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

 

[22:48:09] [sound Library Loader/INFO]: Sound engine started

[22:48:09] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/grinder_top.png

java.io.FileNotFoundException: minecraft:textures/blocks/grinder_top.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[22:48:09] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[22:48:10] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[22:48:10] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[22:48:11] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms

[22:48:15] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu

[22:48:21] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press

[22:48:21] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[22:48:21] [server thread/INFO]: Generating keypair

[22:48:22] [server thread/INFO] [FML]: Injecting new block and item data into this server instance

[22:48:22] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@2c5cab9e)

[22:48:22] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@2c5cab9e)

[22:48:22] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@2c5cab9e)

[22:48:22] [server thread/INFO]: Preparing start region for level 0

[22:48:23] [Netty Client IO #0/INFO] [FML]: Server protocol version 1

[22:48:23] [Netty IO #1/INFO] [FML]: Client protocol version 1

[22:48:23] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : MODID@VERSION,[email protected],[email protected],[email protected]

[22:48:23] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT

[22:48:23] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER

[22:48:23] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[22:48:23] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established

[22:48:23] [server thread/INFO]: Player777[local:E:ae69c570] logged in with entity id 87 at (559.2880203768701, 64.0, -524.9512553324255)

[22:48:23] [server thread/INFO]: Player777 joined the game

[22:48:24] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.hurt

[22:48:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[22:48:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.hurt

[22:48:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.pig.say

[22:48:26] [server thread/INFO]: Stopping server

[22:48:26] [server thread/INFO]: Saving players

[22:48:26] [server thread/INFO]: Saving worlds

[22:48:26] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[22:48:26] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[22:48:26] [server thread/INFO]: Saving chunks for level 'New World'/The End

[22:48:26] [server thread/INFO] [FML]: Unloading dimension 0

[22:48:26] [server thread/INFO] [FML]: Unloading dimension -1

[22:48:26] [server thread/INFO] [FML]: Unloading dimension 1

[22:48:26] [Client thread/FATAL]: Unreported exception thrown!

java.lang.NullPointerException

at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263) ~[NetworkRegistry.class:?]

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) ~[FMLNetworkHandler.class:?]

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2476) ~[EntityPlayer.class:?]

at breezertwo.morerecipes.src.Grinder.onBlockActivated(Grinder.java:121) ~[Grinder.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:398) ~[PlayerControllerMP.class:?]

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1537) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2050) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1035) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

---- Minecraft Crash Report ----

// I just don't know what went wrong :(

 

Time: 10.02.14 22:48

Description: Unexpected error

 

java.lang.NullPointerException: Unexpected error

at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2476)

at breezertwo.morerecipes.src.Grinder.onBlockActivated(Grinder.java:121)

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:398)

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1537)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2050)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1035)

at net.minecraft.client.Minecraft.run(Minecraft.java:951)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2476)

at breezertwo.morerecipes.src.Grinder.onBlockActivated(Grinder.java:121)

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:398)

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1537)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player777'/87, l='MpServer', x=559,29, y=65,62, z=-524,95]]

Chunk stats: MultiplayerChunkCache: 225, 225

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (183,64,347), Chunk: (at 7,4,11 in 11,21; contains blocks 176,0,336 to 191,255,351), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 64007 game time, 1821 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: 108 total; [EntityCreeper['Creeper'/262, l='MpServer', x=633,69, y=18,00, z=-604,66], EntitySkeleton['Skeleton'/263, l='MpServer', x=636,69, y=18,08, z=-594,40], EntityBat['Bat'/264, l='MpServer', x=639,00, y=20,10, z=-582,66], EntityPig['Pig'/265, l='MpServer', x=630,09, y=64,00, z=-577,91], EntityClientPlayerMP['Player777'/87, l='MpServer', x=559,29, y=65,62, z=-524,95], EntityZombie['Zombie'/110, l='MpServer', x=491,97, y=52,00, z=-582,69], EntitySkeleton['Skeleton'/111, l='MpServer', x=485,34, y=51,00, z=-586,09], EntityZombie['Zombie'/108, l='MpServer', x=492,44, y=47,00, z=-593,13], EntityPig['Pig'/109, l='MpServer', x=480,81, y=63,00, z=-579,41], EntitySkeleton['Skeleton'/117, l='MpServer', x=491,50, y=41,00, z=-501,50], EntityPig['Pig'/116, l='MpServer', x=481,97, y=64,00, z=-556,94], EntityPig['Pig'/115, l='MpServer', x=493,13, y=64,00, z=-559,03], EntityPig['Pig'/114, l='MpServer', x=483,97, y=64,00, z=-566,06], EntityPig['Pig'/113, l='MpServer', x=489,47, y=65,00, z=-564,56], EntityPig['Pig'/112, l='MpServer', x=483,22, y=63,00, z=-587,91], EntityBat['Bat'/127, l='MpServer', x=496,33, y=31,92, z=-483,77], EntityZombie['Zombie'/126, l='MpServer', x=506,69, y=31,00, z=-488,94], EntityZombie['Zombie'/125, l='MpServer', x=511,13, y=12,00, z=-517,41], EntitySpider['Spider'/124, l='MpServer', x=503,41, y=11,00, z=-515,19], EntityPig['Pig'/123, l='MpServer', x=511,44, y=68,00, z=-581,16], EntityPig['Pig'/137, l='MpServer', x=514,19, y=63,00, z=-561,59], EntityPig['Pig'/136, l='MpServer', x=522,66, y=63,00, z=-564,97], EntityPig['Pig'/139, l='MpServer', x=512,51, y=64,00, z=-556,30], EntityPig['Pig'/138, l='MpServer', x=524,28, y=69,00, z=-573,66], EntityZombie['Zombie'/141, l='MpServer', x=521,50, y=16,00, z=-519,50], EntityZombie['Zombie'/140, l='MpServer', x=513,03, y=12,00, z=-514,50], EntityPig['Pig'/131, l='MpServer', x=519,31, y=71,00, z=-597,53], EntityPig['Pig'/130, l='MpServer', x=524,50, y=69,00, z=-594,69], EntityPig['Pig'/133, l='MpServer', x=522,31, y=70,00, z=-593,47], EntityPig['Pig'/132, l='MpServer', x=524,47, y=68,00, z=-601,53], EntityPig['Pig'/135, l='MpServer', x=527,72, y=70,00, z=-589,81], EntityZombie['Zombie'/134, l='MpServer', x=516,22, y=35,00, z=-581,69], EntityPig['Pig'/152, l='MpServer', x=541,31, y=64,00, z=-553,72], EntityBat['Bat'/153, l='MpServer', x=530,25, y=19,10, z=-496,59], EntitySkeleton['Skeleton'/154, l='MpServer', x=543,41, y=17,00, z=-482,56], EntitySkeleton['Skeleton'/155, l='MpServer', x=541,38, y=17,00, z=-468,50], EntityBat['Bat'/156, l='MpServer', x=538,75, y=19,10, z=-467,53], EntityZombie['Zombie'/158, l='MpServer', x=534,94, y=18,00, z=-456,38], EntityCreeper['Creeper'/159, l='MpServer', x=534,50, y=24,00, z=-453,50], EntityPig['Pig'/148, l='MpServer', x=535,88, y=69,00, z=-594,47], EntityPig['Pig'/149, l='MpServer', x=538,88, y=68,00, z=-595,63], EntityPig['Pig'/150, l='MpServer', x=531,50, y=73,00, z=-573,50], EntityPig['Pig'/151, l='MpServer', x=528,84, y=64,00, z=-565,50], EntityBat['Bat'/171, l='MpServer', x=559,75, y=36,89, z=-584,65], EntityPig['Pig'/175, l='MpServer', x=545,97, y=65,00, z=-552,06], EntitySquid['Squid'/174, l='MpServer', x=559,52, y=54,42, z=-558,53], EntityCreeper['Creeper'/173, l='MpServer', x=554,03, y=44,00, z=-552,41], EntityBat['Bat'/172, l='MpServer', x=555,53, y=38,05, z=-564,75], EntityBat['Bat'/162, l='MpServer', x=541,66, y=24,70, z=-449,25], EntityBat['Bat'/161, l='MpServer', x=543,56, y=31,10, z=-453,09], EntityBat['Bat'/160, l='MpServer', x=543,59, y=30,10, z=-451,56], EntitySkeleton['Skeleton'/186, l='MpServer', x=548,31, y=32,00, z=-464,17], EntityCreeper['Creeper'/184, l='MpServer', x=546,03, y=22,00, z=-451,59], EntityBat['Bat'/185, l='MpServer', x=545,22, y=20,78, z=-457,44], EntitySkeleton['Skeleton'/190, l='MpServer', x=567,44, y=32,00, z=-548,94], EntityZombie['Zombie'/191, l='MpServer', x=566,03, y=33,00, z=-559,41], EntityCreeper['Creeper'/188, l='MpServer', x=575,50, y=31,00, z=-600,50], EntitySkeleton['Skeleton'/189, l='MpServer', x=567,94, y=32,00, z=-552,53], EntityZombie['Zombie'/178, l='MpServer', x=557,50, y=33,00, z=-505,88], EntityBat['Bat'/179, l='MpServer', x=560,16, y=35,18, z=-501,50], EntityPig['Pig'/176, l='MpServer', x=554,81, y=64,00, z=-551,13], EntityZombie['Zombie'/177, l='MpServer', x=558,59, y=56,00, z=-535,69], EntityBat['Bat'/182, l='MpServer', x=552,28, y=34,98, z=-466,84], EntitySkeleton['Skeleton'/183, l='MpServer', x=550,50, y=23,00, z=-456,50], EntitySkeleton['Skeleton'/180, l='MpServer', x=555,25, y=32,00, z=-485,69], EntitySkeleton['Skeleton'/181, l='MpServer', x=553,50, y=18,00, z=-474,50], EntityWitch['Witch'/205, l='MpServer', x=582,22, y=45,00, z=-563,28], EntityCreeper['Creeper'/204, l='MpServer', x=577,06, y=16,00, z=-559,50], EntityBat['Bat'/206, l='MpServer', x=576,66, y=39,10, z=-493,91], EntityZombie['Zombie'/201, l='MpServer', x=586,53, y=22,00, z=-597,97], EntityCreeper['Creeper'/203, l='MpServer', x=581,50, y=84,00, z=-577,28], EntityCreeper['Creeper'/202, l='MpServer', x=591,50, y=29,00, z=-581,97], EntityCreeper['Creeper'/197, l='MpServer', x=560,31, y=35,00, z=-498,31], EntitySpider['Spider'/196, l='MpServer', x=561,72, y=35,64, z=-496,72], EntityPig['Pig'/193, l='MpServer', x=575,06, y=63,00, z=-533,06], EntityBat['Bat'/192, l='MpServer', x=569,44, y=46,10, z=-543,00], EntityZombie['Zombie'/195, l='MpServer', x=562,69, y=36,00, z=-497,98], EntityPig['Pig'/194, l='MpServer', x=563,91, y=64,00, z=-524,94], EntitySpider['Spider'/220, l='MpServer', x=603,22, y=23,00, z=-565,66], EntityZombie['Zombie'/221, l='MpServer', x=603,53, y=42,00, z=-570,97], EntityZombie['Zombie'/222, l='MpServer', x=597,34, y=42,00, z=-570,66], EntityCreeper['Creeper'/223, l='MpServer', x=603,50, y=82,00, z=-563,50], EntitySkeleton['Skeleton'/218, l='MpServer', x=599,70, y=25,00, z=-602,31], EntityZombie['Zombie'/219, l='MpServer', x=607,75, y=25,00, z=-586,16], EntityZombie['Zombie'/238, l='MpServer', x=614,00, y=26,00, z=-594,44], EntityCreeper['Creeper'/237, l='MpServer', x=621,13, y=23,00, z=-601,63], EntitySkeleton['Skeleton'/231, l='MpServer', x=604,09, y=33,00, z=-482,41], EntitySkeleton['Skeleton'/230, l='MpServer', x=605,47, y=34,00, z=-489,38], EntitySquid['Squid'/229, l='MpServer', x=598,46, y=61,09, z=-501,75], EntitySquid['Squid'/228, l='MpServer', x=597,49, y=61,40, z=-503,90], EntitySquid['Squid'/227, l='MpServer', x=596,16, y=62,00, z=-506,68], EntitySquid['Squid'/226, l='MpServer', x=597,29, y=61,00, z=-502,75], EntitySpider['Spider'/225, l='MpServer', x=604,59, y=28,00, z=-501,34], EntityCreeper['Creeper'/224, l='MpServer', x=592,00, y=46,00, z=-513,63], EntityPig['Pig'/252, l='MpServer', x=616,50, y=64,00, z=-524,50], EntitySkeleton['Skeleton'/253, l='MpServer', x=608,56, y=34,00, z=-493,78], EntityPig['Pig'/250, l='MpServer', x=618,50, y=63,00, z=-529,50], EntityPig['Pig'/251, l='MpServer', x=616,50, y=63,00, z=-525,50], EntityCreeper['Creeper'/248, l='MpServer', x=609,00, y=28,00, z=-531,50], EntityBat['Bat'/249, l='MpServer', x=611,25, y=41,98, z=-524,63], EntityPig['Pig'/246, l='MpServer', x=623,91, y=63,00, z=-558,25], EntitySkeleton['Skeleton'/247, l='MpServer', x=615,70, y=11,33, z=-537,30], EntitySkeleton['Skeleton'/244, l='MpServer', x=612,84, y=20,00, z=-556,53], EntityBat['Bat'/245, l='MpServer', x=615,44, y=19,32, z=-555,22], EntityPig['Pig'/242, l='MpServer', x=623,78, y=63,00, z=-560,13], EntityPig['Pig'/243, l='MpServer', x=622,91, y=64,00, z=-571,13], EntityZombie['Zombie'/240, l='MpServer', x=617,50, y=28,00, z=-580,06], EntitySpider['Spider'/241, l='MpServer', x=611,30, y=21,14, z=-561,28]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:418)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556)

at net.minecraft.client.Minecraft.run(Minecraft.java:980)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 8 (amd64) version 6.2

Java Version: 1.7.0_21, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 201689160 bytes (192 MB) / 724434944 bytes (690 MB) up to 1884684288 bytes (1797 MB)

JVM Flags: 0 total;

AABB Pool Size: 17299 (968744 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94

FML: MCP v9.01-pre FML v7.2.116.1025 Minecraft Forge 10.12.0.1025 4 mods loaded, 4 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{7.2.116.1025} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1025.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{10.12.0.1025} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1025.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

MODID{VERSION} [MoreReipesMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.7.2

LWJGL: 2.9.0

OpenGL: GeForce GTX 660M/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Packs: []

Current Language: ~~ERROR~~ NullPointerException: null

Profiler Position: N/A (disabled)

Vec3 Pool Size: 5307 (297192 bytes; 0 MB) allocated, 23 (1288 bytes; 0 MB) used

Anisotropic Filtering: Off (1)

#@!@# Game crashed! Crash report saved to: #@!@# D:\Desktop\Usage\Minecraft\Moding\RecipesMod\Update1.7.2\RecipesMod2\.\crash-reports\crash-2014-02-10_22.48.26-client.txt

AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

The CustumFurnace Class (here: Grinder.java):

 

package breezertwo.morerecipes.src;

import breezertwo.morerecipes.src.grinder.TileEntityGrinder;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;

public class Grinder extends BlockContainer
{
    private final Random field_149933_a = new Random();
    private final boolean field_149932_b;
    private static boolean field_149934_M;
    @SideOnly(Side.CLIENT)
    private IIcon field_149935_N;
    @SideOnly(Side.CLIENT)
    private IIcon field_149936_O;

    protected Grinder(boolean p_i45407_1_)
    {
        super(Material.rock);
        this.field_149932_b = p_i45407_1_;
    }

    public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
    {
        return Item.getItemFromBlock(recipesmod.Grinder);
    }

    /**
     * Called whenever the block is added into the world. Args: world, x, y, z
     */
    public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)
    {
        super.onBlockAdded(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);
        this.func_149930_e(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);
    }

    private void func_149930_e(World p_149930_1_, int p_149930_2_, int p_149930_3_, int p_149930_4_)
    {
        if (!p_149930_1_.isRemote)
        {
            Block block = p_149930_1_.getBlock(p_149930_2_, p_149930_3_, p_149930_4_ - 1);
            Block block1 = p_149930_1_.getBlock(p_149930_2_, p_149930_3_, p_149930_4_ + 1);
            Block block2 = p_149930_1_.getBlock(p_149930_2_ - 1, p_149930_3_, p_149930_4_);
            Block block3 = p_149930_1_.getBlock(p_149930_2_ + 1, p_149930_3_, p_149930_4_);
            byte b0 = 3;

            if (block.func_149730_j() && !block1.func_149730_j())
            {
                b0 = 3;
            }

            if (block1.func_149730_j() && !block.func_149730_j())
            {
                b0 = 2;
            }

            if (block2.func_149730_j() && !block3.func_149730_j())
            {
                b0 = 5;
            }

            if (block3.func_149730_j() && !block2.func_149730_j())
            {
                b0 = 4;
            }

            p_149930_1_.setBlockMetadataWithNotify(p_149930_2_, p_149930_3_, p_149930_4_, b0, 2);
        }
    }

    /**
     * Gets the block's texture. Args: side, meta
     */
    @SideOnly(Side.CLIENT)
    public IIcon getIcon(int p_149691_1_, int p_149691_2_)
    {
        return p_149691_1_ == 1 ? this.field_149935_N : (p_149691_1_ == 0 ? this.field_149935_N : (p_149691_1_ != p_149691_2_ ? this.blockIcon : this.field_149936_O));
    }

    @SideOnly(Side.CLIENT)
    public void registerBlockIcons(IIconRegister p_149651_1_)
    {
        this.blockIcon = p_149651_1_.registerIcon("grinder_side");
        this.field_149936_O = p_149651_1_.registerIcon(this.field_149932_b ? "grinder_side" : "grinder_side");
        this.field_149935_N = p_149651_1_.registerIcon("grinder_top");
    }

    /**
     * Called upon block activation (right click on the block.)
     */
    @Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float f, float g, float t) {
	TileEntity tile_entity = world.getTileEntity(x, y, z);

	if (tile_entity == null || player.isSneaking()) {

		return false;
	}

	player.openGui(recipesmod.instance, 0, world, x, y, z);


	return true;
}

    /**
     * Update which block the furnace is using depending on whether or not it is burning
     */
    public static void updateFurnaceBlockState(boolean p_149931_0_, World p_149931_1_, int p_149931_2_, int p_149931_3_, int p_149931_4_)
    {
        int l = p_149931_1_.getBlockMetadata(p_149931_2_, p_149931_3_, p_149931_4_);
        TileEntity tileentity = p_149931_1_.getTileEntity(p_149931_2_, p_149931_3_, p_149931_4_);
        field_149934_M = true;

        if (p_149931_0_)
        {
            p_149931_1_.setBlock(p_149931_2_, p_149931_3_, p_149931_4_, Blocks.lit_furnace);
        }
        else
        {
            p_149931_1_.setBlock(p_149931_2_, p_149931_3_, p_149931_4_, Blocks.furnace);
        }

        field_149934_M = false;
        p_149931_1_.setBlockMetadataWithNotify(p_149931_2_, p_149931_3_, p_149931_4_, l, 2);

        if (tileentity != null)
        {
            tileentity.validate();
            p_149931_1_.setTileEntity(p_149931_2_, p_149931_3_, p_149931_4_, tileentity);
        }
    }

    /**
     * Returns a new instance of a block's tile entity class. Called on placing the block.
     */
    public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)
    {
        return new TileEntityGrinder();
    }

    /**
     * Called when the block is placed in the world.
     */
    public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
    {
        int l = MathHelper.floor_double((double)(p_149689_5_.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;

        if (l == 0)
        {
            p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 2, 2);
        }

        if (l == 1)
        {
            p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 5, 2);
        }

        if (l == 2)
        {
            p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 3, 2);
        }

        if (l == 3)
        {
            p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 4, 2);
        }

        if (p_149689_6_.hasDisplayName())
        {
            ((TileEntityGrinder)p_149689_1_.getTileEntity(p_149689_2_, p_149689_3_, p_149689_4_)).func_145951_a(p_149689_6_.getDisplayName());
        }
    }

    public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_, int p_149749_6_)
    {
        if (!field_149934_M)
        {
            TileEntityGrinder tileentityfurnace = (TileEntityGrinder)p_149749_1_.getTileEntity(p_149749_2_, p_149749_3_, p_149749_4_);

            if (tileentityfurnace != null)
            {
                for (int i1 = 0; i1 < tileentityfurnace.getSizeInventory(); ++i1)
                {
                    ItemStack itemstack = tileentityfurnace.getStackInSlot(i1);

                    if (itemstack != null)
                    {
                        float f = this.field_149933_a.nextFloat() * 0.8F + 0.1F;
                        float f1 = this.field_149933_a.nextFloat() * 0.8F + 0.1F;
                        float f2 = this.field_149933_a.nextFloat() * 0.8F + 0.1F;

                        while (itemstack.stackSize > 0)
                        {
                            int j1 = this.field_149933_a.nextInt(21) + 10;

                            if (j1 > itemstack.stackSize)
                            {
                                j1 = itemstack.stackSize;
                            }

                            itemstack.stackSize -= j1;
                            EntityItem entityitem = new EntityItem(p_149749_1_, (double)((float)p_149749_2_ + f), (double)((float)p_149749_3_ + f1), (double)((float)p_149749_4_ + f2), new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));

                            if (itemstack.hasTagCompound())
                            {
                                entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
                            }

                            float f3 = 0.05F;
                            entityitem.motionX = (double)((float)this.field_149933_a.nextGaussian() * f3);
                            entityitem.motionY = (double)((float)this.field_149933_a.nextGaussian() * f3 + 0.2F);
                            entityitem.motionZ = (double)((float)this.field_149933_a.nextGaussian() * f3);
                            p_149749_1_.spawnEntityInWorld(entityitem);
                        }
                    }
                }

                p_149749_1_.func_147453_f(p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_);
            }
        }

        super.breakBlock(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_, p_149749_6_);
    }

    /**
     * A randomly called display update to be able to add particles or other items for display
     */
    @SideOnly(Side.CLIENT)
    public void randomDisplayTick(World p_149734_1_, int p_149734_2_, int p_149734_3_, int p_149734_4_, Random p_149734_5_)
    {
        if (this.field_149932_b)
        {
            int l = p_149734_1_.getBlockMetadata(p_149734_2_, p_149734_3_, p_149734_4_);
            float f = (float)p_149734_2_ + 0.5F;
            float f1 = (float)p_149734_3_ + 0.0F + p_149734_5_.nextFloat() * 6.0F / 16.0F;
            float f2 = (float)p_149734_4_ + 0.5F;
            float f3 = 0.52F;
            float f4 = p_149734_5_.nextFloat() * 0.6F - 0.3F;

            if (l == 4)
            {
                p_149734_1_.spawnParticle("smoke", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);
                p_149734_1_.spawnParticle("flame", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);
            }
            else if (l == 5)
            {
                p_149734_1_.spawnParticle("smoke", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);
                p_149734_1_.spawnParticle("flame", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);
            }
            else if (l == 2)
            {
                p_149734_1_.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D);
                p_149734_1_.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D);
            }
            else if (l == 3)
            {
                p_149734_1_.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D);
                p_149734_1_.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D);
            }
        }
    }

    /**
     * If this returns true, then comparators facing away from this block will use the value from
     * getComparatorInputOverride instead of the actual redstone signal strength.
     */
    public boolean hasComparatorInputOverride()
    {
        return true;
    }

    /**
     * If hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal
     * strength when this block inputs to a comparator.
     */
    public int getComparatorInputOverride(World p_149736_1_, int p_149736_2_, int p_149736_3_, int p_149736_4_, int p_149736_5_)
    {
        return Container.calcRedstoneFromInventory((IInventory)p_149736_1_.getTileEntity(p_149736_2_, p_149736_3_, p_149736_4_));
    }

    /**
     * Gets an item for the block being called on. Args: world, x, y, z
     */
    @SideOnly(Side.CLIENT)
    public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_)
    {
        return Item.getItemFromBlock(Blocks.furnace);
    }
}

 

 

Extract form the CustumFurnaceClass (player.openGui)

 

@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float f, float g, float t) {
	TileEntity tile_entity = world.getTileEntity(x, y, z);

	if (tile_entity == null || player.isSneaking()) {

		return false;
	}

	player.openGui(recipesmod.instance, 0, world, x, y, z);


	return true;
}

 

 

Main Class:

 

package breezertwo.morerecipes.src;

import breezertwo.morerecipes.src.grinder.GuiHandler;
import breezertwo.morerecipes.src.grinder.TileEntityGrinder;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.material.Material;
import net.minecraftforge.common.util.EnumHelper;
import cpw.mods.fml.common.network.NetworkRegistry;


@Mod(modid="MODID", version="VERSION", name="MoreReipesMod")
public class recipesmod {

   public static final String MODID = "recipesmod";
   public static final String VERSION = "2.0";
   
   @Instance("recipesmod")
   public static recipesmod instance;
  
   private GuiHandler guihandler = new GuiHandler();
  
  
  	//---------------------------------------------------------------------

  	WorldGeneratorRecipesMod worldgen = new WorldGeneratorRecipesMod();

	//---------------------------------------------------------------------

	public static ToolMaterial TITAN = EnumHelper.addToolMaterial("TITAN", 3, 5555, 7.0F, 2.0F, 10);	
    
	//---------------------------------------------------------------------

	public static CreativeTabs tabRecipesMod = new customCreativeTabs(CreativeTabs.getNextID(), "recipes");


	//---------------------------------------------------------------------

	//Blocks

	public static Block pinkflower = new BlockFlowerMod(0).setHardness(0.3F).setBlockName("pinkflower").setBlockTextureName("morerecipes:flower").setCreativeTab(tabRecipesMod); //TODO: FIX FLOWER TEXTURE
	public static Block saltOre = new BlockSaltOre(Material.rock).setBlockName("saltOre").setHardness(2.0F).setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:saltore");		
	public static Block blocktitan = new BlockOre(Material.rock).setBlockName("blocktitan").setCreativeTab(tabRecipesMod).setHardness(4.0F).setResistance(5.0F).setBlockTextureName("morerecipes:oretitan");
	public static Block marble = new BlockMarbel(Material.rock).setBlockName("marble").setHardness(1.5F).setResistance(10.0F).setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:marble");	
	public static Block marblebrick = new BlockMarbelBrick(Material.rock).setBlockName("marblebrick").setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:marblebrick");
	public static Block mapleWood = new BlockMapleWood(Material.wood).setBlockName("mapleWood").setHardness(2.0F).setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:mwood");
	public static Block tomatoplant = new TomatoPlant().setBlockName("tomatoplant").setBlockTextureName("morerecipes:tomatos");
	public static Block Grinder = new Grinder(false).setBlockName("grinder").setHardness(3.5F).setResistance(4.0F).setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:grinder");

	/*
	public static Block Grinder = new Grinder(grinderID, false).func_149663_c("grinder").func_149711_c(3.5F).func_149752_b(4.0F).func_149647_a(tabRecipesMod);
	public static Block mapleSapling = new BlockMapleSapling(Material.wood).setBlockName("maplesapling").setCreativeTab(tabRecipesMod);
	public static Block mapleLeaf = new BlockMapleLeaf(Material.wood).setBlockName("mapleleaf").setHardness(0.1F).setCreativeTab(tabRecipesMod);
	public static Block mapleLog = new BlockMapleLog(Material.wood).setBlockName("maplelog").setHardness(1.5F).setCreativeTab(tabRecipesMod);
	 */


	//Items	
	public static Item butter = new ItemButter(64).setUnlocalizedName("Butter").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:butter");
	public static Item millstone = new ItemMillstone(1).setUnlocalizedName("millstone").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:millstone");
	public static Item salt = new ItemSalt(64).setUnlocalizedName("salt").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:salt");
	public static Item pancake = new ItemPancake(64).setUnlocalizedName("pancake").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:pancake");
	public static Item maplejuice = new ItemMapleJuice(64).setUnlocalizedName("maplejuice").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:maple");
	public static Item tomatoseed = new ItemTomatoSeed().setUnlocalizedName("tomatoseed").setTextureName("morerecipes:tomatoseeds"); 
	public static Item tomato = new ItemTomato(3 , 0.5F, false).setUnlocalizedName("tomato").setTextureName("morerecipes:tomato");		
	public static Item flour = new ItemFlour(64).setUnlocalizedName("flour").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:tomato");
	public static Item dough = new ItemDough(64).setUnlocalizedName("dough").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:dough");
	public static Item cake = new ItemCake(6 , 0.7F, false).setUnlocalizedName("cake").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:cake");
	public static Item chocolate = new ItemChocolate(64).setUnlocalizedName("chocolate").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:chocolate");
	public static Item hotchocolate = new ItemHotChocolate(2 , 0.8F, false).setUnlocalizedName("hotchocolate").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:hchocolate");
	public static Item cheese = new ItemCheese(2 , 0.5F, false).setUnlocalizedName("cheese").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:cheese");
	public static Item cheesesandwich = new ItemCheeseSandwich(4 , 0.6F, false).setUnlocalizedName("cheesesandwich").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:kaesebroetchen");
	public static Item toast = new ItemToast(2 , 0.3F, true).setUnlocalizedName("toast").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:toast");
	public static Item toastch = new ItemToastCheeseHam(5 , 0.7F, true).setUnlocalizedName("toastch").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:toastsk");
	public static Item friedegg = new ItemFriedEgg(3 , 0.5F, false).setUnlocalizedName("friedegg").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:ei");
	public static Item hops = new ItemHops(64).setUnlocalizedName("hops").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:hopfen");
	public static Item beer = new ItemBeer(1 , 0.9F, false).setUnlocalizedName("beer").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:beer");
	public static Item titanium = new ItemTitanium(64).setUnlocalizedName("titanium").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:titanium");
	public static Item tpickaxe = new ItemPickaxeTitan(1, TITAN).setUnlocalizedName("tpickaxe").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:pickaxetitanium");
	public static Item tshovel = new ItemShovelTitan(1, TITAN).setUnlocalizedName("tshovel").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:shoveltitanium");
	public static Item taxe = new ItemAxeTitanium(1, TITAN).setUnlocalizedName("taxe").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:axetitanium");
	public static Item marbledust = new ItemMarbleDust(64).setUnlocalizedName("marbledust").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:marbledust");
	public static Item pizza = new ItemPizza(4 , 0.7F, false).setUnlocalizedName("pizza").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:pizza");


	@Mod.EventHandler
	public void preInit(FMLPreInitializationEvent event){

		initBlocks();
		initItems();			

	}


    @Mod.EventHandler
	public void init(FMLInitializationEvent event){

    	GameRegistry.registerWorldGenerator(new WorldGeneratorRecipesMod(), 0);
    	GameRegistry.registerTileEntity(TileEntityGrinder.class, "tileentitygrinder");
    	
		NetworkRegistry.INSTANCE.registerGuiHandler(this, guihandler);

		    	
	}
    
    
    @Mod.EventHandler
    public static void postInit(FMLPostInitializationEvent event) {

	}

   
	private void initBlocks(){

		GameRegistry.registerBlock(saltOre, "SalzErz");
		GameRegistry.registerBlock(mapleWood, "Ahornholz");
		GameRegistry.registerBlock(marble, "Maromor");
		GameRegistry.registerBlock(marblebrick, "Marmorstein");
		GameRegistry.registerBlock(pinkflower, "Blume");
		GameRegistry.registerBlock(tomatoplant, "Tomatenpflanze");
		GameRegistry.registerBlock(blocktitan, "TitanErz");
		GameRegistry.registerBlock(Grinder, "Muehle");


		/*
		GameRegistry.registerBlock(mapleLeaf, "Ahornblaetter");
		GameRegistry.registerBlock(mapleSapling, "Ahornpflanze");
		GameRegistry.registerBlock(mapleLog, "Ahornbaum");
		 */
	}

	private void initItems(){

		GameRegistry.registerItem(butter, "Butter");
		GameRegistry.registerItem(millstone, "Millstone");
		GameRegistry.registerItem(maplejuice, "MapleJuice");
		GameRegistry.registerItem(pancake, "Pfankuchen");
		GameRegistry.registerItem(salt, "Salz");
		GameRegistry.registerItem(tomatoseed, "Tomatensamen");
		GameRegistry.registerItem(tomato,"Tomato");
		GameRegistry.registerItem(pizza, "Pizza");
		GameRegistry.registerItem(flour, "Mehl");
		GameRegistry.registerItem(butter, "Butter");
		GameRegistry.registerItem(dough, "Teig");
		GameRegistry.registerItem(cake, "Geburtstagskuchen");
		GameRegistry.registerItem(chocolate, "Schokolade");
		GameRegistry.registerItem(hotchocolate, "Kakao");
		GameRegistry.registerItem(cheese, "Kaese");
		GameRegistry.registerItem(cheesesandwich, "Kaesebrot");
		GameRegistry.registerItem(toast, "Toast");
		GameRegistry.registerItem(toastch, "Schinken-Kaese Toast");
		GameRegistry.registerItem(friedegg, "Spiegelei");
		GameRegistry.registerItem(hops, "Hopfen");
		GameRegistry.registerItem(beer, "Bier");
		GameRegistry.registerItem(titanium, "Titan");
		GameRegistry.registerItem(tpickaxe, "Titan-Spitzhacke");
		GameRegistry.registerItem(tshovel, "Titan-Schaufel");
		GameRegistry.registerItem(taxe, "Titan-Axt");
		GameRegistry.registerItem(marbledust, "Marmor-Staub");			
	}

}

 

 

Thanks agian for your help... :)

 

 

 

Link to comment
Share on other sites

Ok thanks for your help:

 

Here is the GuiHandler.class

package breezertwo.morerecipes.src.grinder;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;

public class GuiHandler implements IGuiHandler{

@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
	TileEntity tile_entity = world.getTileEntity(x, y, z);

	if(tile_entity instanceof TileEntityGrinder){
		return new ContainerGrinder(player.inventory, (TileEntityGrinder) tile_entity);
	}

	return null;
}

@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world,
		int x, int y, int z) {
	TileEntity tile_entity = world.getTileEntity(x, y, z);

	if(tile_entity instanceof TileEntityGrinder){
		return new GuiGrinder(player.inventory, (TileEntityGrinder) tile_entity);
	}

	return null;
}

}


Link to comment
Share on other sites

what does "no" mean?

 

It means:

"Bad modder.  No cookie."

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

why i am a "bad modder"?

 

Capture.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

before you juge ---> read all, not only the first lines!

 

@Mod(modid="MODID", version="VERSION", name="MoreReipesMod")
public class recipesmod {

   public static final String MODID = "recipesmod";
   public static final String VERSION = "2.0";

 

it exactly the same like the "example mod" of the forge developers! -.-

 

Link to comment
Share on other sites

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

    • I'm trying to play Minecraft 1.20.4 on Forge using mods, but when Minecraft loads, it says there are non-Forge mods, whereas they are Forge mods. This problem is happening in Forge version 1.20.4 - 49.0.46. I am only able to play with all mods in Forge version 1.20.4 - 49.0.43.
    • I had the same issue. The only thing I could do is to remove parchment mappings entirely from config files and replace config files from the MDK: 1. replace build.gradle from MDK 2. restore official mapping in build.properties 3. replace src\main\resources\META-INF\mods.toml from MDK sample.
    • ---- Minecraft Crash Report ---- I sent a error report i just cant understand it, the game as been running fine intill today i loaded it https://pastebin.com/gWVFh4Fe   WARNING: coremods are present:   ForgelinPlugin (Forgelin-1.8.3.jar)   PatchingFixRtmCorePlugin (fixRtm-2.0.28.jar)   IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar)   FixRtmCorePlugin (fixRtm-2.0.28.jar)   JarInJarLoaderCoreMod (fixRtm-2.0.28.jar)   BetterFoliageLoader (BetterFoliage-MC1.12-2.3.2.jar)   SecurityCraftLoadingPlugin ([1.12.2] SecurityCraft v1.9.9.jar)   OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)   MalisisCorePlugin (MalisisCore-1.12.2.jar)   ObfuscatePlugin (obfuscate-0.4.2-1.12.2.jar)   CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)   HookingFixRtmCorePlugin (fixRtm-2.0.28.jar) Contact their authors BEFORE contacting forge // Hey, that tickles! Hehehe! Time: 4/19/24 4:05 PM Description: Updating screen events java.lang.RuntimeException: Failed to check session lock, aborting     at net.minecraft.world.storage.SaveHandler.func_75766_h(SaveHandler.java:76)     at net.minecraft.world.storage.SaveHandler.<init>(SaveHandler.java:54)     at net.minecraft.world.chunk.storage.AnvilSaveHandler.<init>(AnvilSaveHandler.java:18)     at net.minecraft.world.chunk.storage.AnvilSaveConverter.func_75804_a(SourceFile:84)     at net.minecraft.client.Minecraft.func_71371_a(Minecraft.java:2346)     at net.minecraftforge.fml.client.FMLClientHandler.tryLoadExistingWorld(FMLClientHandler.java:734)     at net.minecraft.client.gui.GuiListWorldSelectionEntry.func_186777_e(GuiListWorldSelectionEntry.java:249)     at net.minecraft.client.gui.GuiListWorldSelectionEntry.func_186774_a(GuiListWorldSelectionEntry.java:199)     at net.minecraft.client.gui.GuiListWorldSelectionEntry.func_148278_a(GuiListWorldSelectionEntry.java:163)     at net.minecraft.client.gui.GuiListExtended.func_148179_a(SourceFile:41)     at net.minecraft.client.gui.GuiWorldSelection.func_73864_a(SourceFile:117)     at net.minecraft.client.gui.GuiScreen.func_146274_d(GuiScreen.java:533)     at net.minecraft.client.gui.GuiWorldSelection.func_146274_d(SourceFile:49)     at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:501)     at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1759)     at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1098)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:398)     at net.minecraft.client.main.Main.main(SourceFile:123)     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:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace:     at net.minecraft.world.storage.SaveHandler.func_75766_h(SaveHandler.java:76)     at net.minecraft.world.storage.SaveHandler.<init>(SaveHandler.java:54)     at net.minecraft.world.chunk.storage.AnvilSaveHandler.<init>(AnvilSaveHandler.java:18)     at net.minecraft.world.chunk.storage.AnvilSaveConverter.func_75804_a(SourceFile:84)     at net.minecraft.client.Minecraft.func_71371_a(Minecraft.java:2346)     at net.minecraftforge.fml.client.FMLClientHandler.tryLoadExistingWorld(FMLClientHandler.java:734)     at net.minecraft.client.gui.GuiListWorldSelectionEntry.func_186777_e(GuiListWorldSelectionEntry.java:249)     at net.minecraft.client.gui.GuiListWorldSelectionEntry.func_186774_a(GuiListWorldSelectionEntry.java:199)     at net.minecraft.client.gui.GuiListWorldSelectionEntry.func_148278_a(GuiListWorldSelectionEntry.java:163)     at net.minecraft.client.gui.GuiListExtended.func_148179_a(SourceFile:41)     at net.minecraft.client.gui.GuiWorldSelection.func_73864_a(SourceFile:117)     at net.minecraft.client.gui.GuiScreen.func_146274_d(GuiScreen.java:533)     at net.minecraft.client.gui.GuiWorldSelection.func_146274_d(SourceFile:49)     at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:501) -- Affected screen -- Details:     Screen name: net.minecraft.client.gui.GuiWorldSelection Stacktrace:     at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1759)     at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1098)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:398)     at net.minecraft.client.main.Main.main(SourceFile:123)     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:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 5013709368 bytes (4781 MB) / 11274289152 bytes (10752 MB) up to 12884901888 bytes (12288 MB)     JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx12G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2859 Optifine OptiFine_1.12.2_HD_U_G5 99 mods loaded, 99 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             | forge-1.12.2-14.23.5.2859.jar                     | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCHIJA | forge                       | 14.23.5.2859          | forge-1.12.2-14.23.5.2859.jar                     | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCHIJA | openmodscore                | 0.12.2                | minecraft.jar                                     | None                                     |     | LCHIJA | obfuscate                   | 0.4.2                 | minecraft.jar                                     | None                                     |     | LCHIJA | securitycraft               | v1.9.9                | [1.12.2] SecurityCraft v1.9.9.jar                 | None                                     |     | LCHIJA | mts                         | 22.14.2               | Immersive Vehicles-1.12.2-22.14.2.jar             | None                                     |     | LCHIJA | mtsaircooled                | 1.0.1                 | Air-Cooled Pack [MTS] 1.10.2-14.0.0-1.0.1.jar     | None                                     |     | LCHIJA | codechickenlib              | 3.2.3.358             | CodeChickenLib-1.12.2-3.2.3.358-universal.jar     | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCHIJA | ancientwarfare              | 1.12.2-2.7.0.1038     | ancientwarfare-1.12.2-2.7.0.1038.jar              | None                                     |     | LCHIJA | redstoneflux                | 2.1.1                 | RedstoneFlux-1.12-2.1.1.1-universal.jar           | None                                     |     | LCHIJA | ancientwarfareautomation    | 1.12.2-2.7.0.1038     | ancientwarfare-1.12.2-2.7.0.1038.jar              | None                                     |     | LCHIJA | ancientwarfarenpc           | 1.12.2-2.7.0.1038     | ancientwarfare-1.12.2-2.7.0.1038.jar              | None                                     |     | LCHIJA | ancientwarfarestructure     | 1.12.2-2.7.0.1038     | ancientwarfare-1.12.2-2.7.0.1038.jar              | None                                     |     | LCHIJA | ancientwarfarevehicle       | 1.12.2-2.7.0.1038     | ancientwarfare-1.12.2-2.7.0.1038.jar              | None                                     |     | LCHIJA | craftstudioapi              | 1.0.0                 | CraftStudio-1.0.0.93-mc1.12-alpha.jar             | None                                     |     | LCHIJA | animania                    | 2.0.3.28              | animania-1.12.2-base-2.0.3.28.jar                 | None                                     |     | LCHIJA | architecturecraft           | @VERSION@             | architecturecraft-1.12-3.108.jar                  | None                                     |     | LCHIJA | betteranimationscollection2 | 1.0.2                 | BetterAnimationsCollection2-v1.0.2-1.12.2.jar     | 12d137bcc36051a1c2c8ea7211cfc1da1c6e9dea |     | LCHIJA | forgelin                    | 1.8.3                 | Forgelin-1.8.3.jar                                | None                                     |     | LCHIJA | betterfoliage               | 2.3.1                 | BetterFoliage-MC1.12-2.3.2.jar                    | None                                     |     | LCHIJA | bibliocraft                 | 2.4.6                 | BiblioCraft[v2.4.6][MC1.12.2].jar                 | None                                     |     | LCHIJA | biomestaff                  | 1.0.0                 | BiomeStaff-1.12.2-1.0.0.jar                       | None                                     |     | LCHIJA | blockcraftery               | 1.12.2-1.3.1          | blockcraftery-1.12.2-1.3.1.jar                    | None                                     |     | LCHIJA | bookshelf                   | 2.3.590               | Bookshelf-1.12.2-2.3.590.jar                      | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCHIJA | bookworm                    | 1.12.2-2.5.2.1        | Bookworm-Library-Mod-1.12.2.jar                   | None                                     |     | LCHIJA | brandonscore                | 2.4.20                | BrandonsCore-1.12.2-2.4.20.162-universal.jar      | None                                     |     | LCHIJA | bspkrscore                  | 8.0.0                 | BspkrsCore-1.12.2.jar                             | None                                     |     | LCHIJA | carpentersblocks            | 3.4.0-poc.6           | Carpenters-Blocks-v3.4.0-poc.6-MC-1.12.2.jar      | None                                     |     | LCHIJA | ctm                         | MC1.12.2-1.0.2.31     | CTM-MC1.12.2-1.0.2.31.jar                         | None                                     |     | LCHIJA | jei                         | 4.16.1.1012           | jei_1.12.2-4.16.1.1012.jar                        | None                                     |     | LCHIJA | chisel                      | MC1.12.2-1.0.2.45     | Chisel-Mod-1.12.2.jar                             | None                                     |     | LCHIJA | chiselsandbits              | 14.33                 | chiselsandbits-14.33.jar                          | None                                     |     | LCHIJA | customspawner               | 3.11.4                | CustomMobSpawner-3.11.5.jar                       | None                                     |     | LCHIJA | customsignposts             | 1.0                   | customsignposts-1.12.2-1.0.1.jar                  | None                                     |     | LCHIJA | ptrmodellib                 | 1.0.5                 | PTRLib-1.0.5.jar                                  | None                                     |     | LCHIJA | props                       | 2.6.3.7               | Decocraft-2.6.3.7_1.12.2.jar                      | None                                     |     | LCHIJA | mocreatures                 | 12.0.5                | DrZharks MoCreatures Mod-12.0.5.jar               | None                                     |     | LCHIJA | engineersdecor              | 1.1.5                 | engineersdecor-1.12.2-1.1.5.jar                   | ed58ed655893ced6280650866985abcae2bf7559 |     | LCHIJA | exoticbirds                 | 1.0                   | Exotic Birds 1.12.2-3.2.0.jar                     | None                                     |     | LCHIJA | unuparts                    | 6.5.0                 | UNU Parts Pack [MTS] 1.12.2-22.13.0-6.5.0.jar     | None                                     |     | LCHIJA | unuverse                    | 2.0.0                 | ExpandedUNUversePack[MTS]1.12.2-19.15.5-2.0.0.jar | None                                     |     | LCHIJA | fairylights                 | 2.1.10                | fairylights-2.2.0-1.12.2.jar                      | None                                     |     | LCHIJA | fcl                         | 1.12.82               | FCL-1.12.82c.jar                                  | None                                     |     | LCHIJA | net/fexcraft/lib/frl        | 1.2                   | FCL-1.12.82c.jar                                  | None                                     |     | LCHIJA | net/fexcraft/lib/tmt        | 1.15                  | FCL-1.12.82c.jar                                  | None                                     |     | LCHIJA | famm                        | 3.4.0                 | Fexs-Alphabet-and-More-Mod-Forge-1.12.2.jar       | None                                     |     | LCHIJA | forgemultipartcbe           | 2.6.2.83              | ForgeMultipart-1.12.2-2.6.2.83-universal.jar      | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCHIJA | microblockcbe               | 2.6.2.83              | ForgeMultipart-1.12.2-2.6.2.83-universal.jar      | None                                     |     | LCHIJA | minecraftmultipartcbe       | 2.6.2.83              | ForgeMultipart-1.12.2-2.6.2.83-universal.jar      | None                                     |     | LCHIJA | funkylocomotion             | 1.0                   | funky-locomotion-1.12.2-1.1.2.jar                 | None                                     |     | LCHIJA | furenikusroads              | 1.2.5                 | Furenikus_Roads-1.2.5.jar                         | None                                     |     | LCHIJA | cfm                         | 6.3.0                 | furniture-6.3.2-1.12.2.jar                        | None                                     |     | LCHIJA | waila                       | 1.8.22                | Hwyla-1.8.22-B37_1.12.jar                         | None                                     |     | LCHIJA | trackapi                    | 1.2                   | TrackAPI-1.2.jar                                  | None                                     |     | LCHIJA | universalmodcore            | 1.2.1                 | UniversalModCore-1.12.2-forge-1.2.1.jar           | None                                     |     | LCHIJA | immersiverailroading        | 1.10.0                | ImmersiveRailroading-1.12.2-forge-1.10.0.jar      | None                                     |     | LCHIJA | journeymap                  | 1.12.2-5.7.1p2        | journeymap-1.12.2-5.7.1p2.jar                     | None                                     |     | LCHIJA | zawa                        | 1.12.2-2.1.3          | zawa-1.12.2-2.1.3.jar                             | 3ee471ded1bba54aa82f4f5ca5ca82dd67b8ef42 |     | LCHIJA | lilcritters                 | 1.12.2-1.1.0.0        | Lil-Critters-Mod-Forge-1.12.2.jar                 | None                                     |     | LCHIJA | malisiscore                 | 1.12.2-6.5.1-SNAPSHOT | MalisisCore-1.12.2.jar                            | None                                     |     | LCHIJA | malisisdoors                | 1.12.2-7.3.0          | MalisisDoors-Mod-1.12.2.jar                       | None                                     |     | LCHIJA | mcwbridges                  | 1.0.6                 | mcw-bridges-1.0.6b-mc1.12.2.jar                   | None                                     |     | LCHIJA | mcwfences                   | 1.0.0                 | mcw-fences-1.0.0-mc1.12.2.jar                     | None                                     |     | LCHIJA | mcwroofs                    | 1.0.2                 | mcw-roofs-1.0.2-mc1.12.2.jar                      | None                                     |     | LCHIJA | moon-core                   | 7.0                   | Moons-Core-Forge-1.12.2.jar                       | None                                     |     | LCHIJA | mrtjpcore                   | 2.1.4.43              | MrTJPCore-1.12.2-2.1.4.43-universal.jar           | None                                     |     | LCHIJA | railcraft                   | 12.0.0                | railcraft-12.0.0.jar                              | a0c255ac501b2749537d5824bb0f0588bf0320fa |     | LCHIJA | mtr                         | 3.0.0                 | MTR-1.12.2-alpha-test-0.0.1.jar                   | None                                     |     | LCHIJA | kadwinjpvehicles            | 2.0.0                 | MTS_Kadwin_JP_Vehicles_Pack_4.1.jar               | None                                     |     | LCHIJA | ngtlib                      | 2.4.21                | NGTLib2.4.21-38_forge-1.12.2-14.23.2.2611.jar     | None                                     |     | LCHIJA | projectintelligence         | 1.0.9                 | ProjectIntelligence-1.12.2-1.0.9.28-universal.jar | None                                     |     | LCHIJA | nei                         | 2.4.3                 | NotEnoughItems-1.12.2-2.4.3.245-universal.jar     | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCHIJA | oe                          | 1.0.7                 | OceanicExpanse-1.0.7.jar                          | None                                     |     | LCHIJA | openmods                    | 0.12.2                | OpenModsLib-1.12.2-0.12.2.jar                     | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |     | LCHIJA | openblocks                  | 1.8.1                 | OpenBlocks-1.12.2-1.8.1.jar                       | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |     | LCHIJA | placeableitems              | 3.3                   | placeableitems-3.3.jar                            | None                                     |     | LCHIJA | projectred-core             | 4.9.4.120             | ProjectRed-1.12.2-4.9.4.120-Base.jar              | None                                     |     | LCHIJA | projectred-integration      | 4.9.4.120             | ProjectRed-1.12.2-4.9.4.120-integration.jar       | None                                     |     | LCHIJA | projectred-transmission     | 4.9.4.120             | ProjectRed-1.12.2-4.9.4.120-integration.jar       | None                                     |     | LCHIJA | projectred-illumination     | 4.9.4.120             | ProjectRed-1.12.2-4.9.4.120-lighting.jar          | None                                     |     | LCHIJA | projectred-expansion        | 4.9.4.120             | ProjectRed-1.12.2-4.9.4.120-mechanical.jar        | None                                     |     | LCHIJA | projectred-relocation       | 4.9.4.120             | ProjectRed-1.12.2-4.9.4.120-mechanical.jar        | None                                     |     | LCHIJA | projectred-transportation   | 4.9.4.120             | ProjectRed-1.12.2-4.9.4.120-mechanical.jar        | None                                     |     | LCHIJA | rtm                         | 2.4.24                | RTM2.4.24-43_forge-1.12.2-14.23.2.2611.jar        | None                                     |     | LCHIJA | trafficcontrol              | 1.1.1                 | trafficcontrol-1.1.1.jar                          | None                                     |     | LCHIJA | travelersbackpack           | 1.0.35                | TravelersBackpack-1.12.2-1.0.35.jar               | None                                     |     | LCHIJA | iv_tpp                      | 2.22.0                | Trin Parts Pack-1.12.2-2.23.1.jar                 | None                                     |     | LCHIJA | unucivil                    | 6.3.0                 | UNU Civilian Pack [MTS] 1.12.2-22.13.0-6.3.0.jar  | None                                     |     | LCHIJA | vehicle                     | 0.44.1                | vehicle-mod-0.44.1-1.12.2.jar                     | None                                     |     | LCHIJA | wawla                       | 2.6.275               | Wawla-1.12.2-2.6.275.jar                          | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCHIJA | worldedit                   | 6.1.10                | worldedit-forge-mc1.12.2-6.1.10-dist.jar          | None                                     |     | LCHIJA | worldstatecheckpoints       | 1.12.2.1.2.1          | WorldStateCheckpoints-client-1.12.2.1.2.1.jar     | None                                     |     | LCHIJA | wrcbe                       | 2.3.2                 | WR-CBE-1.12.2-2.3.2.33-universal.jar              | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCHIJA | zoocraftdiscoveries         | 1.0                   | Zoocraft+Discoveries+1.12.2-1.3.0.jar             | None                                     |     | LCHIJA | immersiveengineering        | 0.12-98               | ImmersiveEngineering-0.12-98.jar                  | None                                     |     | LCHIJA | fix-rtm                     | 2.0.28                | fixRtm-2.0.28.jar                                 | None                                     |     | LCHIJA | mysticallib                 | 1.12.2-1.13.0         | mysticallib-1.12.2-1.13.0.jar                     | None                                     |     Loaded coremods (and transformers): ForgelinPlugin (Forgelin-1.8.3.jar)   PatchingFixRtmCorePlugin (fixRtm-2.0.28.jar)   com.anatawa12.fixRtm.asm.patching.PatchApplier IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar)   blusunrize.immersiveengineering.common.asm.IEClassTransformer FixRtmCorePlugin (fixRtm-2.0.28.jar)   JarInJarLoaderCoreMod (fixRtm-2.0.28.jar)   com.anatawa12.fixRtm.jarInJar.JarInJarPatcher BetterFoliageLoader (BetterFoliage-MC1.12-2.3.2.jar)   mods.betterfoliage.loader.BetterFoliageTransformer SecurityCraftLoadingPlugin ([1.12.2] SecurityCraft v1.9.9.jar)   OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)   openmods.core.OpenModsClassTransformer MalisisCorePlugin (MalisisCore-1.12.2.jar)   ObfuscatePlugin (obfuscate-0.4.2-1.12.2.jar)   com.mrcrayfish.obfuscate.asm.ObfuscateTransformer CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)   team.chisel.ctm.client.asm.CTMTransformer HookingFixRtmCorePlugin (fixRtm-2.0.28.jar)   com.anatawa12.fixRtm.asm.hooking.HookingTransformer     GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 551.86' Renderer: 'NVIDIA GeForce RTX 3070/PCIe/SSE2'     OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:FINISHED],[player_render_hook:FINISHED],[horse_null_fix:FINISHED]     RTM Model Status: Initialized 1048 models, Using 0 models     I = Initialized, C = Constructed, SMP = SMP includeds     | model pack                                      | all | I | C   | SMP |     |:----------------------------------------------- |:--- |:- |:--- |:--- |     | mods\ModelPack_Nak_5_Structure_240313.zip       | 458 | 0 | 458 | 0   |     | mods\RTM2.4.24-43_forge-1.12.2-14.23.2.2611.jar | 281 | 0 | 281 | 0   |     | mods\rtm_Saracalias Pack v0.2.01.zip            | 309 | 0 | 309 | 0   |     Launched Version: 1.12.2-forge-14.23.5.2859     LWJGL: 2.9.4     OpenGL: NVIDIA GeForce RTX 3070/PCIe/SSE2 GL version 4.6.0 NVIDIA 551.86, NVIDIA Corporation     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: NickMiner69V2.zip, MPT-4.zip, feldbahnpackv1-3.zip, G_P_Narrow_Gauge_Texel_Pack_V1.0.3.zip     Current Language: English (US)     Profiler Position: N/A (disabled)     CPU: 8x Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz     OptiFine Version: OptiFine_1.12.2_HD_U_G5     OptiFine Build: 20210124-142939     Render Distance Chunks: 12     Mipmaps: 4     Anisotropic Filtering: 1     Antialiasing: 0     Multitexture: false     Shaders: null     OpenGlVersion: 4.6.0 NVIDIA 551.86     OpenGlRenderer: NVIDIA GeForce RTX 3070/PCIe/SSE2     OpenGlVendor: NVIDIA Corporation     CpuCount: 8
    • i notice a change if i add the min and max ram in the line like this for example:    # Xmx and Xms set the maximum and minimum RAM usage, respectively. # They can take any number, followed by an M or a G. # M means Megabyte, G means Gigabyte. # For example, to set the maximum to 3GB: -Xmx3G # To set the minimum to 2.5GB: -Xms2500M # A good default for a modded server is 4GB. # Uncomment the next line to set it. -Xmx10240M -Xms8192M    i need to make more experiments but for now this apparently works.
    • This honestly might just work for you @SubscribeEvent public static void onScreenRender(ScreenEvent.Render.Post event) { final var player = Minecraft.getInstance().player; final var options = Minecraft.getInstance().options; if(!hasMyEffect(player)) return; // TODO: You provide hasMyEffect float f = Mth.lerp(event.getPartialTick(), player.oSpinningEffectIntensity, player.spinningEffectIntensity); float f1 = ((Double)options.screenEffectScale().get()).floatValue(); if(f <= 0F || f1 >= 1F) return; float p_282656_ = f * (1.0F - f1); final var p_282460_ = event.getGuiGraphics(); int i = p_282460_.guiWidth(); int j = p_282460_.guiHeight(); p_282460_.pose().pushPose(); float f5 = Mth.lerp(p_282656_, 2.0F, 1.0F); p_282460_.pose().translate((float)i / 2.0F, (float)j / 2.0F, 0.0F); p_282460_.pose().scale(f5, f5, f5); p_282460_.pose().translate((float)(-i) / 2.0F, (float)(-j) / 2.0F, 0.0F); float f4 = 0.2F * p_282656_; float f2 = 0.4F * p_282656_; float f3 = 0.2F * p_282656_; RenderSystem.disableDepthTest(); RenderSystem.depthMask(false); RenderSystem.enableBlend(); RenderSystem.blendFuncSeparate(GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ONE, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ONE); p_282460_.setColor(f4, f2, f3, 1.0F); p_282460_.blit(new ResourceLocation("textures/misc/nausea.png"), 0, 0, -90, 0.0F, 0.0F, i, j, i, j); p_282460_.setColor(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.defaultBlendFunc(); RenderSystem.disableBlend(); RenderSystem.depthMask(true); RenderSystem.enableDepthTest(); p_282460_.pose().popPose(); }   Note: Most of this is directly copied from GameRenderer as you pointed out you found. The only thing you'll have to likely do is update the `oSpinningEffectIntensity` + `spinningEffectIntensity` variables on the player when your effect is applied. Which values should be there? Not 100% sure, might be a game of guess and check, but `handleNetherPortalClient` in LocalPlayer has some hard coded you might be able to start with.
  • Topics

×
×
  • Create New...

Important Information

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