Request: One use items
mainrs opened this issue ยท 4 comments
It would be awesome if it was possible to make the items one use only and remove them afterwards from the inventory. I might implement this later on myself. I don't think this would be too complicated tbh.
Originally this is how it worked although thought it bypassed the whole idea as another player could make the item and give it to someone else, but can definitely add as a config option for other use cases.
The item was consumed when right clicked on a portal so will add a portal block white-list for other dimensions.
@MoreThanHidden Wouldn't the problem be solved by appending a NBT tag to the item holding the players name that crafted it? And when trying to enter the dimension check against the players own name. If it has the same name, let him into the dimension. If not, prevent it. That would solve the 'other player crafts the item' problem I guess.
Yeah just complicates things unnecessarily, will implement as a config option.
"Consume item rather than craft" default will be false and "Consumable Portal Block Whitelist" default will be "minecraft:portal,minecraft:end_portal"
Would recommend changing the blocked message to "Please use a %item% on a Portal to unlock the %dim%" rather than the default "Please craft a %item% to enter the %dim%"