#I need help in deluxemenus
1 messages · Page 1 of 1 (latest)
Should be doable with player expansion
Or at least that was the one that could check for item in hand if I'm not mistaken
What should I do for it?
%player_item_in_hand% is the placeholder ull need for the open requirement
make sure the player expansion is downloaded
Thank you
For player expansion, I need "/papi ecloud download player" right?
yes and papi reload
Can you please tell me what the requirement should look like.
The type and expression
do you want it to be any pickaxe or just 1 type like diamond? If you just one type then
type: 'string equals ignorecase'
input: '%player_item_in_hand%'
otuput: 'DIAMOND_PICKAXE'
If you want it to work for any pickaxe then:
type: 'string contains ignorecase'
input: '%player_item_in_hand%'
output: 'PICKAXE'
Thank you so much 💓
It isn't working 😕
I put this ```
open_requirement:
requirements:
has_pickaxe:
type: string contains ignorecase
input: '%player_item_in_hand%
output: 'PICKAXE'
deny_commands:
- '[message] &c&l[!] &fYou should hold your pickaxe to open this menu'
It's not working
Sorry for interrupting, a question hoped in my mind. What to do for a custom item?
Like?
You're missing a ' on the 5th line.
Not sure what that means? Can you be a bit more specific.
It's not missing. I forgot to type it here. In the file everything is put properly, still it isn't working
I hold my Shovel or nothing, and it still opens
what does /papi parse me %player_item_in_hand% return
Any chance you are OP or you have the bypass permission?
That's probably why then
I suggest you set the bypass permission to false
for yourself if you want to stay OP
deluxemenus.openrequirement.bypass.* set this to false
/lp user YOURNAME permission set deluxemenus.openrequirement.bypass.* false
I mean like we created an item in executable item, or a custom head with that specific nbt tag.
Well you'll probably want to either use the has item type which allows you to specify quite a few attributes or you can use the more complex but with much more features CheckItem expansion.
Hmm, I'll check it our later! thanks.
no problem