Started by
Aksumite
on
Topic category: Help with Minecraft modding (Java Edition)
I have a powerful item, and was wondering if you can prevent the player from picking up/holding more than one of the item at once.
Thanks!
Topic category: Help with Minecraft modding (Java Edition)
I have a powerful item, and was wondering if you can prevent the player from picking up/holding more than one of the item at once.
Thanks!
Simply set the max stack size to 1 for the item.
This wouldn't solve the problem, because the player can still pick it up in a different slot. What I meant was only being able to hold one of the item in the entire inventory.
To not allow pickup, make a procedure element and on event trigger select from the pulldown "when entity picks up item".
Use the code block "has provided entity (item) in inventory". IF blocks to check if true then don't allow pickup.
Alright, thanks!