Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Inventory item consumption #27

Open
RHSD opened this issue Mar 14, 2021 · 0 comments
Open

[Feature] Inventory item consumption #27

RHSD opened this issue Mar 14, 2021 · 0 comments

Comments

@RHSD
Copy link

RHSD commented Mar 14, 2021

A function to remove a specific amount of item from player inventory. For example under leftclicks.json;
[
{
"playerhelditem": {
"item": "minecraft:cookie",
},
"block": "minecraft:emerald_block",
"consume": {
"item": "minecraft:cookie",
"amount": 5,

},
"random": 0.2,
"give": "minecraft:diamond_sword",
"result": "allow"
}
]
Player left clicks emerald block with 5 cookies. Cookies are consumed and player receives a diamond sword with a 20 percent chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant