Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

clowcadia

Members
  • Joined

  • Last visited

Everything posted by clowcadia

  1. Gui Handler package com.clowcadia.mod; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraftforge.fml.common.network.IGuiHandler; public class GuiHandler implements IGuiHandler { public static final int GUI = 0; public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if (ID == GUI) return new Gui(); return null; } }
  2. sorry package com.clowcadia.mod; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraftforge.fml.common.network.IGuiHandler; public class GuiHandler implements IGuiHandler { public static final int GUI = 0; public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if (ID == GUI) return new Gui(); return null; } }
  3. Gui Handler package com.clowcadia.mod; import net.minecraft.client.gui.GuiScreen; public class Gui extends GuiScreen { @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { this.drawDefaultBackground(); super.drawScreen(mouseX, mouseY, partialTicks); } }
  4. Nor does this.world in place of world
  5. I still dont get gui with this package com.clowcadia.mob; import com.clowcadia.mod.ClowcadiaMod; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.EnumHand; import net.minecraft.world.World; public class Blank extends EntityMob{ public Blank(World worldIn) { super(worldIn); // TODO Auto-generated constructor stub } public boolean processInteract(EntityPlayer player, EnumHand hand) { if (!this.world.isRemote) { System.out.println("Player has interacted with the mob"); player.openGui(ClowcadiaMod.modInstance, 0, world, (int) player.posX, (int) player.posY, (int) player.posZ); } return true; } }
  6. Ok what about my post before the crash
  7. Lol made a quick edit where i added World world. and it all crashed package com.clowcadia.mob; import com.clowcadia.mod.ClowcadiaMod; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.EnumHand; import net.minecraft.world.World; public class Blank extends EntityMob{ World world; public Blank(World worldIn) { super(worldIn); // TODO Auto-generated constructor stub } public boolean processInteract(EntityPlayer player, EnumHand hand) { if (!this.world.isRemote) { System.out.println("Player has interacted with the mob"); player.openGui(ClowcadiaMod.modInstance, 0, world, (int) player.posX, (int) player.posY, (int) player.posZ); } return true; } } Crash [00:20:09] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@c8da8d5[id=71ee4b7e-330e-3d50-90a4-3d964a618ea8,name=Player766,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3056) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_121] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_121] at java.lang.Thread.run(Unknown Source) [?:1.8.0_121] [00:20:12] [Server thread/FATAL]: Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_121] at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_121] at net.minecraft.util.Util.runTask(Util.java:27) [Util.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:753) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:698) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:547) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_121] Caused by: java.lang.NullPointerException at com.clowcadia.mob.Blank.processInteract(Blank.java:20) ~[Blank.class:?] at net.minecraft.entity.EntityLiving.processInitialInteract(EntityLiving.java:1337) ~[EntityLiving.class:?] at net.minecraft.entity.player.EntityPlayer.interactOn(EntityPlayer.java:1273) ~[EntityPlayer.class:?] at net.minecraft.network.NetHandlerPlayServer.processUseEntity(NetHandlerPlayServer.java:1067) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.CPacketUseEntity.processPacket(CPacketUseEntity.java:94) ~[CPacketUseEntity.class:?] at net.minecraft.network.play.client.CPacketUseEntity.processPacket(CPacketUseEntity.java:15) ~[CPacketUseEntity.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_121] at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_121] at net.minecraft.util.Util.runTask(Util.java:26) ~[Util.class:?] ... 5 more [00:20:12] [Server thread/INFO]: Stopping server [00:20:12] [Server thread/INFO]: Saving players [00:20:12] [Server thread/INFO]: Saving worlds [00:20:12] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [00:20:12] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [00:20:12] [Server thread/INFO]: Saving chunks for level 'New World'/The End [00:20:12] [Server thread/INFO] [FML]: Unloading dimension 0 [00:20:12] [Server thread/INFO] [FML]: Unloading dimension -1 [00:20:12] [Server thread/INFO] [FML]: Unloading dimension 1 [00:20:12] [Server thread/INFO] [FML]: Applying holder lookups [00:20:12] [Server thread/INFO] [FML]: Holder lookups applied [00:20:13] [Client thread/FATAL]: Unreported exception thrown! java.lang.NullPointerException at com.clowcadia.mob.Blank.processInteract(Blank.java:20) ~[Blank.class:?] at net.minecraft.entity.EntityLiving.processInitialInteract(EntityLiving.java:1337) ~[EntityLiving.class:?] at net.minecraft.entity.player.EntityPlayer.interactOn(EntityPlayer.java:1273) ~[EntityPlayer.class:?] at net.minecraft.client.multiplayer.PlayerControllerMP.interactWithEntity(PlayerControllerMP.java:573) ~[PlayerControllerMP.class:?] at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1594) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2276) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2053) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1841) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1119) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:407) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121] 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_121] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [00:20:13] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ---- // Ooh. Shiny. Time: 2/17/17 12:20 AM Description: Unexpected error java.lang.NullPointerException: Unexpected error at com.clowcadia.mob.Blank.processInteract(Blank.java:20) at net.minecraft.entity.EntityLiving.processInitialInteract(EntityLiving.java:1337) at net.minecraft.entity.player.EntityPlayer.interactOn(EntityPlayer.java:1273) at net.minecraft.client.multiplayer.PlayerControllerMP.interactWithEntity(PlayerControllerMP.java:573) at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1594) at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2276) at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2053) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1841) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1119) at net.minecraft.client.Minecraft.run(Minecraft.java:407) at net.minecraft.client.main.Main.main(Main.java:118) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) 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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at com.clowcadia.mob.Blank.processInteract(Blank.java:20) at net.minecraft.entity.EntityLiving.processInitialInteract(EntityLiving.java:1337) at net.minecraft.entity.player.EntityPlayer.interactOn(EntityPlayer.java:1273) at net.minecraft.client.multiplayer.PlayerControllerMP.interactWithEntity(PlayerControllerMP.java:573) at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1594) at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2276) at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2053) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['Player766'/140, l='MpServer', x=1049.37, y=4.00, z=-418.18]] Chunk stats: MultiplayerChunkCache: 622, 622 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (1064,4,-403), Chunk: (at 8,0,13 in 66,-26; contains blocks 1056,0,-416 to 1071,255,-401), Region: (2,-1; contains chunks 64,-32 to 95,-1, blocks 1024,0,-512 to 1535,255,-1) Level time: 26433 game time, 26433 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: 67 total; [EntityCreeper['Creeper'/128, l='MpServer', x=1107.41, y=4.00, z=-377.79], EntitySlime['Slime'/129, l='MpServer', x=1118.62, y=4.61, z=-419.58], EntityCreeper['Creeper'/130, l='MpServer', x=1125.54, y=4.00, z=-401.21], EntitySlime['Slime'/131, l='MpServer', x=1121.19, y=4.00, z=-400.79], EntitySlime['Slime'/133, l='MpServer', x=1120.83, y=4.14, z=-387.24], EntitySlime['Slime'/391, l='MpServer', x=1062.97, y=4.17, z=-451.75], EntityCow['Cow'/20, l='MpServer', x=971.83, y=4.00, z=-409.78], EntityCreeper['Creeper'/21, l='MpServer', x=971.20, y=4.00, z=-359.28], EntityCreeper['Creeper'/23, l='MpServer', x=971.92, y=4.00, z=-359.18], EntitySlime['Slime'/27, l='MpServer', x=980.48, y=4.68, z=-487.16], EntitySpider['Spider'/29, l='MpServer', x=976.51, y=4.00, z=-402.13], EntityCreeper['Creeper'/31, l='MpServer', x=973.84, y=4.00, z=-403.55], EntityHorse['Horse'/32, l='MpServer', x=979.95, y=4.00, z=-389.86], EntityHorse['Horse'/33, l='MpServer', x=991.60, y=4.00, z=-363.64], EntityHorse['Horse'/34, l='MpServer', x=991.00, y=4.00, z=-367.01], EntitySlime['Slime'/35, l='MpServer', x=991.18, y=4.48, z=-345.09], EntityItem['item.item.arrow'/42, l='MpServer', x=1006.33, y=4.00, z=-455.86], EntitySlime['Slime'/43, l='MpServer', x=1000.59, y=4.00, z=-405.85], EntitySlime['Slime'/44, l='MpServer', x=989.68, y=4.34, z=-385.27], EntitySlime['Slime'/45, l='MpServer', x=992.48, y=4.80, z=-383.47], EntityHorse['Horse'/46, l='MpServer', x=994.18, y=4.00, z=-363.93], EntityEnderman['Enderman'/50, l='MpServer', x=1013.55, y=4.00, z=-418.29], EntitySlime['Slime'/51, l='MpServer', x=1026.23, y=4.08, z=-425.05], EntitySlime['Slime'/52, l='MpServer', x=1020.96, y=4.04, z=-385.42], EntitySlime['Slime'/53, l='MpServer', x=1008.06, y=4.61, z=-340.52], EntitySlime['Slime'/59, l='MpServer', x=1024.07, y=4.70, z=-495.38], EntityCreeper['Creeper'/60, l='MpServer', x=1027.19, y=4.00, z=-450.73], EntityCreeper['Creeper'/61, l='MpServer', x=1032.76, y=4.00, z=-437.83], Blank['entity.blankMob.name'/62, l='MpServer', x=1035.79, y=4.00, z=-427.33], EntityItem['item.item.rottenFlesh'/63, l='MpServer', x=1025.88, y=4.00, z=-382.14], EntityItem['item.item.rottenFlesh'/64, l='MpServer', x=1037.03, y=4.00, z=-380.59], EntitySlime['Slime'/65, l='MpServer', x=1031.97, y=4.00, z=-370.15], EntityHorse['Horse'/66, l='MpServer', x=1037.03, y=4.00, z=-362.87], EntitySlime['Slime'/67, l='MpServer', x=1025.14, y=4.79, z=-369.44], EntitySheep['Sheep'/74, l='MpServer', x=1055.80, y=4.00, z=-493.71], EntityChicken['Chicken'/75, l='MpServer', x=1053.52, y=4.00, z=-489.33], Blank['entity.blankMob.name'/76, l='MpServer', x=1050.30, y=3.00, z=-416.30], Blank['entity.blankMob.name'/77, l='MpServer', x=1050.30, y=3.00, z=-417.04], Blank['entity.blankMob.name'/78, l='MpServer', x=1052.64, y=3.00, z=-418.79], Blank['entity.blankMob.name'/79, l='MpServer', x=1048.71, y=4.00, z=-417.31], Blank['entity.blankMob.name'/80, l='MpServer', x=1040.50, y=4.00, z=-416.50], Blank['entity.blankMob.name'/81, l='MpServer', x=1047.17, y=4.00, z=-411.68], Blank['entity.blankMob.name'/82, l='MpServer', x=1049.50, y=4.00, z=-415.50], EntityItem['item.item.rottenFlesh'/83, l='MpServer', x=1041.67, y=4.00, z=-405.69], EntityCreeper['Creeper'/97, l='MpServer', x=1059.62, y=4.00, z=-466.79], EntitySlime['Slime'/98, l='MpServer', x=1060.63, y=4.86, z=-439.43], EntitySlime['Slime'/99, l='MpServer', x=1061.46, y=4.25, z=-446.21], EntitySlime['Slime'/100, l='MpServer', x=1067.62, y=4.79, z=-446.83], EntitySlime['Slime'/101, l='MpServer', x=1051.84, y=4.13, z=-417.34], EntityHorse['Horse'/102, l='MpServer', x=1069.24, y=4.00, z=-343.12], EntityHorse['Horse'/103, l='MpServer', x=1067.72, y=4.00, z=-341.06], EntityChicken['Chicken'/104, l='MpServer', x=1052.32, y=4.00, z=-340.36], EntityItem['item.item.arrow'/108, l='MpServer', x=1086.26, y=4.00, z=-482.03], EntityItem['item.item.bone'/109, l='MpServer', x=1086.34, y=4.00, z=-480.84], EntitySheep['Sheep'/110, l='MpServer', x=1075.78, y=4.00, z=-486.22], EntitySlime['Slime'/111, l='MpServer', x=1070.88, y=4.00, z=-453.80], EntityCreeper['Creeper'/112, l='MpServer', x=1072.80, y=4.00, z=-441.32], EntityChicken['Chicken'/113, l='MpServer', x=1073.08, y=4.00, z=-361.06], EntitySlime['Slime'/118, l='MpServer', x=1098.98, y=4.00, z=-466.96], EntityPlayerSP['Player766'/140, l='MpServer', x=1049.37, y=4.00, z=-418.18], EntityEnderman['Enderman'/119, l='MpServer', x=1089.38, y=4.00, z=-435.48], EntityItem['item.item.arrow'/121, l='MpServer', x=1104.05, y=4.00, z=-478.12], EntitySlime['Slime'/122, l='MpServer', x=1107.74, y=4.43, z=-448.47], EntitySlime['Slime'/123, l='MpServer', x=1106.40, y=4.34, z=-448.36], EntityCreeper['Creeper'/124, l='MpServer', x=1109.23, y=4.00, z=-435.75], EntityCreeper['Creeper'/126, l='MpServer', x=1110.27, y=4.00, z=-391.14], EntitySlime['Slime'/127, l='MpServer', x=1117.15, y=4.34, z=-394.91]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:451) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2774) at net.minecraft.client.Minecraft.run(Minecraft.java:436) at net.minecraft.client.main.Main.main(Main.java:118) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) 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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.11.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_121, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 491626968 bytes (468 MB) / 1024983040 bytes (977 MB) up to 1879048192 bytes (1792 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.38 Powered by Forge 13.20.0.2228 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 UCHIJAAAA minecraft{1.11.2} [Minecraft] (minecraft.jar) UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.0.2228.jar) UCHIJAAAA forge{13.20.0.2228} [Minecraft Forge] (forgeSrc-1.11.2-13.20.0.2228.jar) UCHIJAAAA clowcadiamod{1.0} [clowcadiamod] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.09' Renderer: 'GeForce 920MX/PCIe/SSE2' Launched Version: 1.11.2 LWJGL: 2.9.4 OpenGL: GeForce 920MX/PCIe/SSE2 GL version 4.5.0 NVIDIA 369.09, 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: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 4x Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz [00:20:13] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Andre\OneDrive\Documents\forge dev\run\.\crash-reports\crash-2017-02-17_00.20.13-client.txt AL lib: (EE) alc_cleanup: 1 device not closed
  8. Alright I did some updating and error checking, but still no go. Main: package com.clowcadia.mod; import com.clowcadia.mob.Blank; import com.clowcadia.mod.CEventHandler; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.Mod.Metadata; import net.minecraftforge.fml.common.ModMetadata; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.common.registry.EntityRegistry; @Mod(modid = ClowcadiaMod.MODID, version = ClowcadiaMod.VERSION) public class ClowcadiaMod { public static final String MODID = "clowcadiamod"; public static final String VERSION = "1.0"; CEventHandler events = new CEventHandler(); @Metadata public static ModMetadata meta; @Instance public static ClowcadiaMod modInstance; @EventHandler public void PreLoad(FMLPreInitializationEvent PreEvent) { mainRegistry(); } @EventHandler public void load(FMLInitializationEvent event) { NetworkRegistry.INSTANCE.registerGuiHandler(modInstance, new GuiHandler()); } @EventHandler public void PostLoad(FMLPostInitializationEvent PostEvent) { } public static void mainRegistry() { EntityRegistry.registerModEntity(new ResourceLocation(ClowcadiaMod.MODID,"blankMob"), Blank.class, "blankMob", 0, ClowcadiaMod.modInstance, 64, 1, true, 0x4286f4, 0x606e84);; } } GuiHandler package com.clowcadia.mod; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraftforge.fml.common.network.IGuiHandler; public class GuiHandler implements IGuiHandler { public static final int GUI = 0; public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if (ID == GUI) return new Gui(); return null; } } Gui package com.clowcadia.mod; import net.minecraft.client.gui.GuiScreen; public class Gui extends GuiScreen { @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { this.drawDefaultBackground(); super.drawScreen(mouseX, mouseY, partialTicks); } } Blank package com.clowcadia.mob; import com.clowcadia.mod.ClowcadiaMod; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.EnumHand; import net.minecraft.world.World; public class Blank extends EntityMob{ public Blank(World worldIn) { super(worldIn); // TODO Auto-generated constructor stub } public boolean processInteract(EntityPlayer player, EnumHand hand) { if (!this.world.isRemote) { System.out.println("Player has interacted with the mob"); player.openGui(ClowcadiaMod.modInstance, 0, this.world, (int) player.posX, (int) player.posY, (int) player.posZ); } return true; } }
  9. Ok, then how come with super i get twice the output, sheep has super as a return. and i still dont know why only one hand is reacting
  10. so super. is the other hand. because with out it it only happens once
  11. ...why then in entitySheep it returns super.ProcessInteract , with that i got 4 results
  12. the second hand would be with super.ProcessInteract correct? i just returned true instead.
  13. public boolean processInteract(EntityPlayer player, EnumHand hand) { System.out.println("Player has interacted with the mob"); return true; } [21:59:02] [Client thread/INFO]: [STDOUT]: Player has interacted with the mob [21:59:02] [Server thread/INFO]: [STDOUT]: Player has interacted with the mob just realized its client and server thread, i am assuming no way just to make client because the game runs on server
  14. Although i still have the current double output problem.
  15. Wow, terrific. I like the windmill and setup mine of the realism mod, very impressive
  16. Ok it works now the problem is its ourputing 2s
  17. ...I have yet to see ur mod list(literally not sarcastically, curious)
  18. Going uber nerd for my age, but ur like the mean mage master, always mean to the apprentice
  19. Should i use that instead?
  20. lol and the asskicking begins. but what processInteract?
  21. Yea that was the issue (tested with jump it works) but now i cant seem get the same messege with interacting with my custom mob. package com.clowcadia.mod; import com.clowcadia.mob.Blank; //import net.minecraft.entity.player.EntityPlayer; //import net.minecraftforge.event.entity.living.LivingEvent.LivingJumpEvent; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class CEventHandler { @SubscribeEvent public void onEvent(PlayerInteractEvent event) { if(event.getEntity() instanceof Blank) { System.out.println("Player has interacted with the mob"); } } }
  22. Ok then whats wrong here? package com.clowcadia.mod; import com.clowcadia.mob.Blank; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.event.entity.living.LivingEvent.LivingJumpEvent; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class ClowcadiaEventHandler { @SubscribeEvent public void onEvent(LivingJumpEvent event) { if(event.getEntityLiving() instanceof EntityPlayer) { System.out.println("Player has interacted with the mob"); } } }
  23. package com.clowcadia.mod; import com.clowcadia.mob.Blank; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class ClowcadiaEventHandler { @SubscribeEvent public void onEvent(PlayerInteractEvent event) { if(event.getEntity() instanceof Blank) { System.out.println("Player has interacted with the mob"); } } } I tryd this as an event handler class still no idea
  24. Hey guys, so i am trying to get a messege from interacting with a mob but i dont know what i am doing i did some research and found 2 methods that i dont understand how to use package com.clowcadia.mob; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class Blank extends EntityMob{ public Blank(World worldIn) { super(worldIn); // TODO Auto-generated constructor stub } @SubscribeEvent public void onEntityRightClicked(EntityInteractEvent event) { } public boolean interact(EntityPlayer player) { System.out.println("Player has interacted with the mob"); } } can anyone put me in the right direction

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.