#Item requirement

1 messages · Page 1 of 1 (latest)

candid anchor
#

Hello,I use DeluxeMenus and I want to make an interface with an item that allows to repair a specific item (screen of the item below). For this, there must be a requirement with the name and lore of the item but I can not make it work. And is it possible to detect only the item held?

left_click_requirement:
requirements:
has_item:
type: has item
material: 'IRON_SWORD'
name: 'Mystical Sword'
lore: 'A strange sword'
name_contains: boolean
lore_contains: boolean
amount: 1
deny_commands:
- '[message] &cYou don''t have the good item'
left_click_commands:
- '[player] repair'
- '[message] Your item has been repaired'

crimson fiber
#

I dont see necessary to put the lore there, I think with the name shall be enough, because it is contains colours, and I'm assuming players can't use colours codes when renaming items

#

But the name in the requirements must contain the colour codes, I believe...

glass lantern
#

you can use checkitem for more in-depth item checking

old flaxBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.
And click here for the CheckItem wiki with DeluxeMenus example menus.

glass lantern
#

If it happens to have nbt data, you can check that too

old flaxBOT
#
FAQ Answer:

CheckItem NBT Tutorial
Check out [this tutorial](#1071634786310967296 message) for information on how to check and remove items
with specific nbt data from a player via the CheckItem Expansion

glass lantern
#

Checking the name equals with colors is... something I haven't been able to figure out, might be impossible with the way checkitem does it (string value) 🤷‍♂️

#

especially gradient like that

glass lantern
#

No

barren plaza
glass lantern
#

I don’t understand but I go to bed now