Everything posted by AskHow1248
-
How to do something when the player Scrolls or presses a key
BUMP
-
How do I make a Gui open when an item is right clicked? - SOLVED
I your gui handeler, your added code needs to be a case statement inside your switch statement. This video might help: Here is my gui handeler: Making inventories for Items is a little complicated, here is mine: Item: Container: Inventory: Hope it helps. There is a lot of extra stuff. I dont't think you need to creat a seprate inventory, but it's a good idea.
-
How to do something when the player Scrolls or presses a key
Hi everybody, I need to be able to do something (on the server side) when my item is equiped and the player presses a key, or scrolls with the mouse wheel. Events would work, but I would preffer not to use a tick handeler. Thanks in advance!
-
Can't type in gui text field!
BUMP! Help please! I need to be able to click on the tet bar in the gui to make it "focused" so I can type in it.
-
How to get the server-side world when recieveing a Packet?
Thank you, it works!
-
How to get the server-side world when recieveing a Packet?
Do you mean the Playeer prameter in onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player player), because the Player interface is just an empty interface.
-
How to get the server-side world when recieveing a Packet?
I have a packet handeler set up with some functions, but when I send a packet to the server, and the use Minecraft.getMinecraft().theWorld as my world, the world is client side!!! I need a way to get tile entity data from client side to server side, but if I can get the server-side world, I can do it. For refrence, I have a text field in my tile entity, and I need to set it through my gui. Also, if anyone know how to fix this, I can't select the text bar to type in it (in my gui).
-
Can't type in gui text field!
I have a gui with a text field, but I can't sellect it to type in it. I can make it sellected when you open the gui, but I can't sellect it in the gui. Gui:
-
[SOLVED-ish][1.7.x]Why is last attacker for EntityCow always null?
Use this for living drops event: event.source.getEntity(). (source is the damage source)
-
Packets being sent but not recieved!
THANK YOUhttp://minecraftforge.net/forum/Smileys/default/cheesy.gif (that was supposed to be a smiley☺)! It works!
-
Packets being sent but not recieved!
Try this link. You told me not to do that on the other thread. Do updates get sent automaticly (with getDiscriptionPacket() and onDataPacket())? http://www.minecraftforge.net/forum/index.php/topic,20782.msg105004.html#msg105004
-
Packets being sent but not recieved!
I need to update tile entity data, since they are only saven on the server. Read this: http://www.minecraftforge.net/forum/index.php/topic,20962.msg106301.html#msg106301
-
Packets being sent but not recieved!
Thanks, it works, but now Minecraft.getMinecraft().theWorld is null! I nee access to the world, so I can update my tile entities' data. Is there a way to get the world other than Minecraft.getMinecraft().theWorld?
-
Packets being sent but not recieved!
I'm useing Ars Magica 2's api, so I can't.
-
Packets being sent but not recieved!
I have a IPlayerTracker that is supposed to send a packet to the server when a player logs in. It sends the packets, but they are never recieved! Here is my code: Player Tracker: Packet Handeler: Main mod class: Tile Entity:
-
Packets not getting recieved problem
Still need help!
-
Packets not getting recieved problem
BUMP! Please help!
-
Packets not getting recieved problem
It still won't work though!!! Update: I added print statements, and I'm sending the packets, but I'm never recieveing them. Does anyone know why? Main mod class:
-
Packets not getting recieved problem
Heres my code: Packet handeler: TileEntity readFromNBT(): getNBTPacket() and readNBTPacket():
-
Packets not getting recieved problem
Sorry, I'm in 1.6.4. And I looked at the tutorials on the old wiki. When Intried to start a dedicated server to test it, I got this crash: Crash: For 1.6.4, I want to send a packet with the right key code from the server to the client, so would I use NetworkHandeler.sendPacketToPlayer(Minecraft.getMinecraft().thePlayer) or NetworkHandeler.sendPacketToAllAround() or NetworkHandeler.sendPacketToAllPlayers() ?
-
Packets not getting recieved problem
I got it to work by writing the correct destination list to a staticc variable on the server side, and then useing it on the client side.
-
Packets not getting recieved problem
It would also work if I could get info to the GUI handeler from where I open the gui.
-
Packets not getting recieved problem
Yes, but I tried useing some of those to send the key code, but it wouldn't work. Also, those are all client to server not server to client. Is there a build in TileEntity method for this? (I was thinking maby receiveClientEvent() or getDescriptionPacket() or onDataPacket())
-
Packets not getting recieved problem
I tried that, but I couldn't figure out how to send a packet from the server to the client. Do you know of a good tutorial?
-
Packets not getting recieved problem
I put print statements in write and read to/from NBT, and for some reason, minecraft is calling writeToNbt twice for the server, and never calling it for the client.
IPS spam blocked by CleanTalk.