• Posts

    • Yes there is.   Calls Item#onBlockDestroyed so by calling it from Item#onBlockDestroyed it loops recursively.    I am at least 95% sure because this is the same guy whom you and I helped a few days ago. Where you told him to use Item#onBlockDestroyed and I stepped him through ray tracing to get the side of the block the player was looking at.
    • You need a packet to sync the data you can read up about packets on the forge documentation.
    • Hi, I have a GUI that extends Screen. It is similar to how a writable_book works. There is not a container and no tileentity. The Gui pulls data from NBT from the Item and uses a network handler to send the data to the server.   The Gui comes up from an Item by using onItemRightClick. I currently call it from that function like this: Minecraft.getInstance().displayGuiScreen(new MyGuiScreen(playerIn, itemstack, handIn)); That has been working fine until I put my mod on a Dedicated Server and got this error at startup: "Attempted to load class net/minecraft/client/gui/screen/Screen for invalid dist DEDICATED_SERVER". How do I call my Gui properly in 1.14.4 so it doesn't crash the server? I saw some posts that suggested other things like NetworkHooks but those all seemed to require tile entities or containers.   Thank you for your help.
    • [00:49:43 INFO]: Starting minecraft server version 1.12.2 [00:49:43 INFO]: Loading properties [00:49:43 ERROR]: Exception handling console input java.io.IOException: The handle is invalid     at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_211]     at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_211]     at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_211]     at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_211]     at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_211]     at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_211]     at nz$2.run(SourceFile:100) [forgeserver.jar:?] [00:49:43 INFO]: Default game type: SURVIVAL [00:49:43 INFO]: Generating keypair [00:49:43 INFO]: Starting Minecraft server on localhost:25565 [00:49:43 INFO]: Using default channel type [00:49:43 INFO]: Preparing level "world" [00:49:44 INFO]: Loaded 488 advancements [00:49:44 INFO]: Preparing start region for level 0 [00:49:45 INFO]: Preparing spawn area: 71% [00:49:45 INFO]: Done (1.809s)! For help, type "help" or "?" [00:49:43 INFO]: Starting minecraft server version 1.12.2 [00:49:43 INFO]: Loading properties [00:49:43 ERROR]: Exception handling console input java.io.IOException: The handle is invalid     at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_211]     at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_211]     at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_211]     at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_211]     at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_211]     at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_211]     at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_211]     at nz$2.run(SourceFile:100) [forgeserver.jar:?] [00:49:43 INFO]: Default game type: SURVIVAL [00:49:43 INFO]: Generating keypair [00:49:43 INFO]: Starting Minecraft server on localhost:25565 [00:49:43 INFO]: Using default channel type [00:49:43 INFO]: Preparing level "world" [00:49:44 INFO]: Loaded 488 advancements [00:49:44 INFO]: Preparing start region for level 0 [00:49:45 INFO]: Preparing spawn area: 71% [00:49:45 INFO]: Done (1.809s)! For help, type "help" or "?"
  • Topics

  • Who's Online (See full list)