-
Posts
1160 -
Joined
-
Days Won
7
Everything posted by poopoodice
-
[1.16.2] How do I teleport a player to their spawnpoint
poopoodice replied to naelsun's topic in Modder Support
The code Vemerion gave you is not complete. You now got the position of the spawnpoint, but you've never moved the player. -
That's what I think.
-
use .Post, which is called after all buttons are cleared.
-
Use post otherwise the button you added will get removed afterwards.
-
PlayerInteractEvent.RightClickItem event
-
Minecraft.getInstance().displayGuiScreen()
-
Use RegisterCommandsEvent.
-
PlayerEntity properties only valid on client side?
poopoodice replied to TheJays's topic in Modder Support
What is getActive()? And the casting and null checking is pointless and won’t work. -
Can't Get Block Texture to Render in Game For 1.16.1
poopoodice replied to tvm_monster's topic in Modder Support
-
1.15.2 Player cannot connect to server with mod installed
poopoodice replied to poopoodice's topic in Modder Support
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. -
player.getRidingEntity() or player.isPassenger() which isPassenger checks if the player has an riding entity
-
[1.15.2]How Do you add a potion effect in enchatment code
poopoodice replied to Ducky Coder's topic in Modder Support
As diesieben said, use LivingUpdateEvent, check if the entity provided is wearing your armour (PlayerInventory.getStackInSlot()) with the enchantment, apply the potion effect. -
[1.15.2] Storing identification of the player that placed the block
poopoodice replied to Chris5011's topic in Modder Support
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. -
It uses RegisterCommandsEvent now.
-
createTileEntity.....
-
Override addInformation, you can check how SwordItem adds extra info.
-
double x = event.getPlayer().getPosX(); double y = event.getPlayer().getPosX <--------??? (); double z = event.getPlayer().getPosX <--------??? ();
-
maybe is because its container is bowl? if (stack_container == Items.BOWL) { ReturnUseAction = UseAction.DRINK;}
-
What are you trying to do?
-
Block Damage From Specific DamageSource
poopoodice replied to Achilleus117's topic in Modder Support
The event provides an entity, and you can't store data like that. -
So are your items food?...
-
Block Damage From Specific DamageSource
poopoodice replied to Achilleus117's topic in Modder Support
That's not how events work, there's introduction of setting events in the link. -
Block Damage From Specific DamageSource
poopoodice replied to Achilleus117's topic in Modder Support
LivingHurtEvent and check if the damage source is lightning, cancel the event. -
[1.15.2] Prevent closing ContainerScreen on Inventory Button
poopoodice replied to Scourrge's topic in Modder Support
Check keyPressed in CreativeScreen -
[1.16.1] Sweet Berry Bush Block not being transparent
poopoodice replied to Pickle_Face5's topic in Modder Support
check RenderTypeLookup.java