denji2448
Новичок
- Баллы
- 16
- Имя в Minecraft
- denji2448
Как сделать так чтобы определённый предмет можно было сдавать не стаком а сразу весь инвентарь этого предмета
Плагин DeluxeMenus
Пример то как я делал:
'1':
material: coal
slot: 11
lore:
- '&aЛКМ&f, чтобы продать'
- '&fЦена за &e1 шт: &640.00$'
- ''
- '&aЛКМ &f- продать &e1 шт.'
- '&aПКМ &f- продать &e64 шт.'
- '&aСКМ &f- Продать &e128 шт.'
- ''
- '&a&m '
left_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 1
deny_commands:
- '[message] &a&l| &fУ вас не хватает &6ресурсов &fдля сдачи.'
- '[sound] ENTITY_VILLAGER_NO'
left_click_commands:
- '[givemoney] 40'
- '[message] &a&l| &fВы успешно сдали ресурсов на сумму &e40.00$'
- '[sound] ENTITY_VILLAGER_YES'
- '[console] minecraft:clear %player_name% coal 1'
right_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 64
deny_commands:
- '[message] &a&l| &fУ вас не хватает &6ресурсов &fдля сдачи.'
- '[sound] ENTITY_VILLAGER_NO'
right_click_commands:
- '[givemoney] 2560'
- '[message] &a&l| &fВы успешно сдали ресурсов на сумму &e2560.00$'
- '[sound] ENTITY_VILLAGER_YES'
- '[console] minecraft:clear %player_name% coal 64'
middle_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 128
deny_commands:
- '[message] &a&l| &fУ вас не хватает &6ресурсов &fдля сдачи.'
- '[sound] ENTITY_VILLAGER_NO'
middle_click_commands:
- '[givemoney] 5120'
- '[message] &a&l| &fВы успешно сдали ресурсов на сумму &e5120.00$'
- '[sound] ENTITY_VILLAGER_YES'
- '[console] minecraft:clear %player_name% coal 128'
Плагин DeluxeMenus
Пример то как я делал:
'1':
material: coal
slot: 11
lore:
- '&aЛКМ&f, чтобы продать'
- '&fЦена за &e1 шт: &640.00$'
- ''
- '&aЛКМ &f- продать &e1 шт.'
- '&aПКМ &f- продать &e64 шт.'
- '&aСКМ &f- Продать &e128 шт.'
- ''
- '&a&m '
left_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 1
deny_commands:
- '[message] &a&l| &fУ вас не хватает &6ресурсов &fдля сдачи.'
- '[sound] ENTITY_VILLAGER_NO'
left_click_commands:
- '[givemoney] 40'
- '[message] &a&l| &fВы успешно сдали ресурсов на сумму &e40.00$'
- '[sound] ENTITY_VILLAGER_YES'
- '[console] minecraft:clear %player_name% coal 1'
right_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 64
deny_commands:
- '[message] &a&l| &fУ вас не хватает &6ресурсов &fдля сдачи.'
- '[sound] ENTITY_VILLAGER_NO'
right_click_commands:
- '[givemoney] 2560'
- '[message] &a&l| &fВы успешно сдали ресурсов на сумму &e2560.00$'
- '[sound] ENTITY_VILLAGER_YES'
- '[console] minecraft:clear %player_name% coal 64'
middle_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 128
deny_commands:
- '[message] &a&l| &fУ вас не хватает &6ресурсов &fдля сдачи.'
- '[sound] ENTITY_VILLAGER_NO'
middle_click_commands:
- '[givemoney] 5120'
- '[message] &a&l| &fВы успешно сдали ресурсов на сумму &e5120.00$'
- '[sound] ENTITY_VILLAGER_YES'
- '[console] minecraft:clear %player_name% coal 128'