Jump to content

poopoodice

Members
  • Posts

    1160
  • Joined

  • Days Won

    7

Everything posted by poopoodice

  1. The code Vemerion gave you is not complete. You now got the position of the spawnpoint, but you've never moved the player.
  2. That's what I think.
  3. use .Post, which is called after all buttons are cleared.
  4. Use post otherwise the button you added will get removed afterwards.
  5. PlayerInteractEvent.RightClickItem event
  6. Minecraft.getInstance().displayGuiScreen()
  7. Use RegisterCommandsEvent.
  8. What is getActive()? And the casting and null checking is pointless and won’t work.
  9. Update: It is still not working after I disabled nearly all features in the mod, but we got more testing results coming out: If A create the world and open to lan: B can't connect. If B creates the world and opens to lan: A can connect. If A host the local server: B can't connect If B host the local server: A can connect, but B cannot. It is really confusing because it sounds like a hardware problem but it happens on some other players as well, the client log always shows: [Netty Client IO #0/DEBUG] [ne.mi.fm.ne.FMLHandshakeHandler/FMLHANDSHAKE]: Registry load complete, continuing handshake. [Netty Client IO #0/DEBUG] [ne.mi.fm.ne.FMLLoginWrapper/FMLHANDSHAKE]: Dispatching wrapped packet reply for channel fml:handshake with index 18 [Netty Client IO #0/DEBUG] [ne.mi.fm.ne.FMLLoginWrapper/FMLHANDSHAKE]: Recieved login wrapper packet event for channel fml:handshake with index 19 [Netty Client IO #0/DEBUG] [ne.mi.fm.ne.FMLHandshakeHandler/FMLHANDSHAKE]: Received config sync from server [Netty Client IO #0/DEBUG] [ne.mi.fm.ne.FMLLoginWrapper/FMLHANDSHAKE]: Dispatching wrapped packet reply for channel fml:handshake with index 19 and just stuck and the server always shows [Netty Server IO #3/DEBUG] [ne.mi.fm.ne.FMLLoginWrapper/FMLHANDSHAKE]: Recieved login wrapper packet event for channel fml:handshake with index 17 [Netty Server IO #3/DEBUG] [ne.mi.fm.ne.FMLHandshakeHandler/FMLHANDSHAKE]: Received client indexed reply 17 of type net.minecraftforge.fml.network.FMLHandshakeMessages$C2SAcknowledge [Netty Server IO #3/DEBUG] [ne.mi.fm.ne.FMLHandshakeHandler/FMLHANDSHAKE]: Received acknowledgement from client [Server thread/DEBUG] [ne.mi.fm.ne.FMLHandshakeHandler/FMLHANDSHAKE]: Sending ticking packet info 'Registry minecraft:entity_type' to 'fml:handshake' sequence 18 [Server thread/DEBUG] [ne.mi.fm.ne.FMLHandshakeHandler/FMLHANDSHAKE]: Sending ticking packet info 'Config planttech2-server.toml' to 'fml:handshake' sequence 19 [Server thread/DEBUG] [ne.mi.fm.ne.FMLHandshakeHandler/FMLHANDSHAKE]: Sending ticking packet info 'Config forge-server.toml' to 'fml:handshake' sequence 20 [Server thread/INFO] [minecraft/ServerLoginNetHandler]: Disconnecting com.mojang.authlib.GameProfile@42dc9d62[id=380df991-f603-344c-a090-369bad2a924a,name=Dev,properties={},legacy=false] (/10.0.0.204:56686): Took too long to log in and then the player got kicked. Also I'm certain it is not the mod config's problem because the problem persists even if it is disabled.
  10. player.getRidingEntity() or player.isPassenger() which isPassenger checks if the player has an riding entity
  11. As diesieben said, use LivingUpdateEvent, check if the entity provided is wearing your armour (PlayerInventory.getStackInSlot()) with the enchantment, apply the potion effect.
  12. What did you do and why do you think it is not working? Also you might find SkullTileEntity helpful since it stores player's data in it as well.
  13. It uses RegisterCommandsEvent now.
  14. createTileEntity.....
  15. Override addInformation, you can check how SwordItem adds extra info.
  16. double x = event.getPlayer().getPosX(); double y = event.getPlayer().getPosX <--------??? (); double z = event.getPlayer().getPosX <--------??? ();
  17. maybe is because its container is bowl? if (stack_container == Items.BOWL) { ReturnUseAction = UseAction.DRINK;}
  18. What are you trying to do?
  19. The event provides an entity, and you can't store data like that.
  20. So are your items food?...
  21. That's not how events work, there's introduction of setting events in the link.
  22. LivingHurtEvent and check if the damage source is lightning, cancel the event.
  23. Check keyPressed in CreativeScreen
  24. check RenderTypeLookup.java
×
×
  • Create New...

Important Information

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