Войти или зарегистрироваться

Помогите Как сдать инвентарь одного предмета скупщику

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'
 
requirements:
item_check:
type: has item
material: coal
amount: 1
deny_commands:
- '[message] &a&l| &fУ вас не хватает &6ресурсов &fдля сдачи.'
- '[sound] ENTITY_VILLAGER_NO'
click_commands:
- '[givemoney] %math_40*{checkitem_amount_coal}%'
- '[message] &a&l| &fВы успешно сдали ресурсов на сумму &e%math_40*{checkitem_amount_coal}%$'
- '[sound] ENTITY_VILLAGER_YES'
- '[console] minecraft:clear %player_name% coal'

для этого также потребуется /papi ecloud download math checkitem
 
requirements:
item_check:
type: has item
material: coal
amount: 1
deny_commands:
- '[message] &a&l| &fУ вас не хватает &6ресурсов &fдля сдачи.'
- '[sound] ENTITY_VILLAGER_NO'
click_commands:
- '[givemoney] %math_40*{checkitem_amount_coal}%'
- '[message] &a&l| &fВы успешно сдали ресурсов на сумму &e%math_40*{checkitem_amount_coal}%$'
- '[sound] ENTITY_VILLAGER_YES'
- '[console] minecraft:clear %player_name% coal'

для этого также потребуется /papi ecloud download math checkitem

Оно не работает, оно забирает всё но деньги не даёт
 
Не сменилось деньги всё равно не даются хотя иногда 10к, но если посчитать то я сдаю 384 предмета(6 стаков) должен получить 15360 а получаю 10к и то иногда.
 
Назад
Верх