I am making a class selection and is there a command I can use to make players not take items from chest but click them. I dont want a plugin but if no other solution then a plugin is ok. I can make it so the players inventory closes after they click an item and they drop the item and then I can delete the item on the ground. The only thing I can't do is close their inventory with a command. Thanks for any help in advance.
That would work. When a player clicks an item in the chest it will delete that item he clicks, use a command to put it in the chest again, and tp him. The part I am having trouble with is deleting the item. If I used a command to close his inventory, it would drop the item on the ground and I could delete it off the ground, which would work. What is happening now is he clicks the item and when he tp's he is still holding the item in his inventory.
because the item isn't in the players inventory, it is in the state where it follows your cursor after you click it. So if you shift clicked it would work
I am making a class selection and is there a command I can use to make players not take items from chest but click them. I dont want a plugin but if no other solution then a plugin is ok. I can make it so the players inventory closes after they click an item and they drop the item and then I can delete the item on the ground. The only thing I can't do is close their inventory with a command. Thanks for any help in advance.
That would work. When a player clicks an item in the chest it will delete that item he clicks, use a command to put it in the chest again, and tp him. The part I am having trouble with is deleting the item. If I used a command to close his inventory, it would drop the item on the ground and I could delete it off the ground, which would work. What is happening now is he clicks the item and when he tp's he is still holding the item in his inventory.
because the item isn't in the players inventory, it is in the state where it follows your cursor after you click it. So if you shift clicked it would work
Once the item is taken from the chest (as soon as it's clicked)
purple command block tests if item (wooden sword) is in the chest, in a specific spot. If it isn't torch goes on and tps player etc
actually I might use clickable text in a book to select weapons.
The item isnt in there inventory. It is following the cursor. Try it clear doesnt work
So like the buycraft menu?