#Deluxe Menu "Has Item" permission issue

1 messages · Page 1 of 1 (latest)

spare anchor
#

I am having an issue where I am trying to use Deluxe Menu to have a requirement of 2 sunflowers named "&eGolden Coin" and for some reason, it is not matching the case no matter what I do. The plugin I'm using for the item is Mythic Mobs, but it produces an item that just has the name "Golden Coin" with the proper yellow text, which should be used by Deluxe Menu. On some attempts, it takes regular, unnamed sunflowers, and I am not sure why it can't match the name case properly. If there are any tips or easy fixes to this, I would greatly appreciate it, thanks

winged atlas
#

Can you hold the item and type /data get entity @s SelectedItem ?

#

send a picture of the response

#

?imgur

vernal breachBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

spare anchor
#

{id:"minecraft:sunflower", tag:{HideFlags: 3, DIsplay: {Name: '{"italic":false,"color":"yellow","text":"Golden Coin"}', Lore:['{"italic":false,"color":"dark_gray","text":"A shiny coin."}']}, MYTHIC_TYPE: "Coin"}, Count: 8b}

winged atlas
#

Can you also send over your menu

#

?paste

vernal breachBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

spare anchor
#

This is the most recent attempt

vernal breachBOT
#
📋 Paste Converted!
https://paste.helpch.at/atajofedig

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

spare anchor
#

doesn't have the name in it as a condition, but I have tried the name condition "Golden Coin", "&eGolden Coin" etc

winged atlas
#

fyi if you use click_commands and click_requirement it works for all click types

spare anchor
#

Ah okay, that saves some space

winged atlas
spare anchor
#

correct

#

that doesn't work

#

let me try it again

#

Yup, still nothing

winged atlas
#

i doon't think this will change it, but what about "§eGolden Coin"

spare anchor
#

Nope, nothing

winged atlas
#

It's hard to read in the text (which is why picture is nice) but this has a custom nbt value

#

so we could use that instead of name

#

You'd have to use checkitem instead of has item

#

?checkitem

vernal breachBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.

spare anchor
#

Okay, I can try that

winged atlas
#

type /papi parse me %checkitem_mat:sunflower,nbtstrings:MYTHIC_TYPE=Coin,amt:1%

#

should say yes if you have at least 1 coin in your inventory

spare anchor
#

How would that syntax look in the code itself to check for 2 coins in a player's inventory?

winged atlas
#
type: string equals
input: "%checkitem_mat:sunflower,nbtstrings:MYTHIC_TYPE=Coin,amt:2%"
output: 'yes'
spare anchor
#

That worked!

#

Thank you so much

winged atlas
#

fyi you can also remove them with checkitem

#

if you need help with that

spare anchor
#

I have a skript that does that, but would it be easier through dm?

winged atlas
#

also not sure about these commands, they seem custom, but I see

#

ah skript ones

spare anchor
#

Yeah, /purchase removes 1 sunflower for now

#

so it's not a great work around

winged atlas
#

I just want to make sure your player's can't screw yoou over with mm egg get

spare anchor
#

if DM can do it, that would be preferable

winged atlas
#

you can use [placeholder] %checkitem_remove_...% to REMOVE items from a player's inventory

#

- '[placeholder] %checkitem_remove_mat:sunflower,nbtstrings:MYTHIC_TYPE=Coin,amt:2%'

spare anchor
#

That worked as well!

#

Thank you so much!

winged atlas
spare anchor
#

Oh, with permissions you mean?

#

Sothey can't use the /mm egg command

winged atlas
#

ya, seems like anybody can just type that

spare anchor
#

I mean, for now, they can haha

winged atlas
#

ah ok ok

spare anchor
#

I can use /papi to also give them a mythic item, right?

winged atlas
#

errr

spare anchor
#

that would be the way to work around the permission

winged atlas
#

is there no mm give?

spare anchor
#

It's just the mm egg get

#

there are give commands

#

but not for eggs

winged atlas
#

cause i see it's an egg

spare anchor
#

Yeah, this is for a pokemon-style game, where players summon mobs to attack eachother and destroy each other's bases

winged atlas
#

hmm

spare anchor
#

So they are supposed to get the eggs, but if they have the command, that is an issue

winged atlas
#

oh wait nvm

#

i'm dumb

spare anchor
#

I think skript can remove it

winged atlas
#

/mm egg give [player] [mob_name] <amount>

#

says it exists

spare anchor
#

Ah, so I can just run that has a [consol] placeholder

winged atlas
#

ye

spare anchor
#

so the player doesn't get the permissions

#

alright

#

sweet

#

thank you again!