#Using EI items in DeluxeMenus
1 messages · Page 1 of 1 (latest)
I need to be able to buy items in the DeluxeMenus menu for an item from EI
'leather':
material: hdb-51743
slot: 11
priority: 1
update: true
hide_attributes: false
display_name: '&6Кожаный рюкзак'
lore:
- '&aРесурсы для крафта:'
- '&a- Шёлк: 1'
- '&f'
- '&b[ЛКМ] Чтобы скрафтить'
left_click_requirement:
requirements:
item_check:
type: has item
material: "An item from EI"
amount: 1
deny_commands:
- '[message] &c&lУ вас не достаточно предметов для крафта'
left_click_commands:
- '[console] fancybags give %player_name% 1'
- '[message] &a&lВы успешно создали "&eКожаный рюкзак"'
- '[console] ei take %player_name% cloth 1'```
The problem is only in this place. DeluxeMenus does not accept just the item id in EI.
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
material: hdb-51743
slot: 11
priority: 1
update: true
hide_attributes: false
display_name: '&6Кожаный рюкзак'
lore:
- '&aРесурсы для крафта:'
- '&a- Шёлк: 1'
- '&f'
- '&b[ЛКМ] Чтобы скрафтить'
left_click_requirement:
requirements:
haskey:
type: string equals
input: '%checkitem_nbtstrings:executableitems:ei-id=cloth,amt:1%'
output: 'yes'
deny_commands:
- '[message] &c&lУ вас не достаточно предметов для крафта'
left_click_commands:
- '[console] fancybags give %player_name% 1'
- '[message] &a&lВы успешно создали "&eКожаный рюкзак"'
- '[console] ei take %player_name% cloth 1'```
I did as it says in the FAQ. But even when I have an item, the plugin outputs deny_commands
can you send a picture of what this responds with?
To view the information of an item, hold it in your main hand and type
/data get entity @s SelectedItem
did you want that?
material: hdb-51743
slot: 11
priority: 1
update: true
hide_attributes: false
display_name: '&6Кожаный рюкзак'
lore:
- '&aРесурсы для крафта:'
- '&a- Шёлк: 1'
- '&f'
- '&b[ЛКМ] Чтобы скрафтить'
left_click_requirement:
requirements:
haskey:
type: string equals
input: '%checkitem_nbtstrings:PublicBukkitValues..executableitems:ei-id=cloth%'
output: 'yes'
deny_commands:
- '[message] &c&lУ вас не достаточно предметов для крафта'
left_click_commands:
- '[console] fancybags give %player_name% 1'
- '[message] &a&lВы успешно создали "&eКожаный рюкзак"'
- '[console] ei take %player_name% cloth 1'```
It doesn't work anyway.
hmm
/papi parse me %checkitem_nbtstrings:PublicBukkitValues..executableitems:ei-id=cloth%
what does that return
@unborn dust
This outputs to the chat:
you need to install the checkitem expansion
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.
@unborn dust
Thanks a lot, everything is working now.