-
Click item in inventory
Okay, I have NO CODE to open an inventory since i open the inventory with a command ON THE SERVER. The server has a command /rewards WHICH OPENS AN INVENTORY GUI. I use mc.thePlayer.sendChatMessage("/rewards") TO OPEN THE INVENTORY. The server IS NOT A FORGE SERVER it is a BUKKIT SERVER and all I'm trying to do is CLICK A SLOT IN THAT INVENTORY. understand now? * Important parts in caps *
-
Click item in inventory
Then you're not making sense. If I open the inventory with an ingame command, why would I open an inventory with code?
-
Click item in inventory
Opening the inventory is server sided with a command (/rewards)
-
Click item in inventory
I'm creating a mod where it will run a command (that open's an inventory) and then click a slot in that inventory. I'm using mc.playerController.windowClick(mc.thePlayer.openContainer.windowId, 13, 0, 0, mc.thePlayer); The problem with this is (I think due to the inventory being server sided), it clicks the item but the action that follows doesn't happen. I could click the inventory normal and I receive x amount of credits but when this runs, it just moves the item to my cursor, then puts it back in the inventory slot. Any help is appreciated.
-
Move item from one slot to another
Im using the players inventory crafting. ContainerWorkbench to be exact
-
Move item from one slot to another
bump
-
Move item from one slot to another
Okay, so since going around crafting one way didn't work I'm trying another. I've already tried addingthe itme stack to the slot but it just becomes a ghost item. How would I get an Item from a lot and move it to another. This must not be with adding/removing items as I'll need it for multiplayer
-
Make a player craft an item
The reason for this is I want it to work on servers. So i can't just remove and add different items etc.
-
Make a player craft an item
Thats the part I don't understand. I'm perfectly capable of checking the inventory. I'm doing it on a command so they type /craft snowblock or something and it would craft it from the snow in their inventory
-
Make a player craft an item
* I'M NOT TRYING TO MAKE THE PLAYER CRAFT A CUSTOM ITEM * I want to create a mod where it crafts an item for the player (if they have the block obviously). How would I force the player to make an item (by id/name - i have the block stored). So for example how would I force this to make a snow block from snowballs.
-
On Attacked, On attack
Is there an event that is called when the player attacks another entity and when an entity attacks a player. I know there is AttackEntityEvent but I want it so it is called if the entity takes damage and not just if you click it. For the second, I have no idea how to do it. Any help is much appreciated.
IPS spam blocked by CleanTalk.