subude
Новичок
- Баллы
- 6
- Имя в Minecraft
- subude
Хотел сделать скупщика по типо фантаймовского. Чтобы при нажатии на пкм сменялись режимы продажи а на лкм продавались вещи по тому режиму который стоит сейчас. Я пытался сделать через пермишены (через Lucky perms) но у меня не получилось. Может кто-то сможет подсказать или объяснить принцип. Буду очень признателен.
Вот как я пытался сделать:
items:
'test 1 - 1s':
material: IRON_INGOT
slot: 10
priority: 0
amount: 1
update: true
hide_attributes: true
display_name: '&bЖелезный слиток'
lore:
- '&a» Продать 1 шт (за 50$)'
- '&7» Продать 32 шт (за 1600$)'
- '&7» Продать всё железо'
- ' '
- '&aЛКМ - продать | ПКМ - сменить режим'
- ' '
- '&8» &fВаш баланс: &6$%vault_eco_balance_fixed%'
view_requirement:
requirements:
perm_check:
type: has permission
permission: jel1
left_click_requirement:
requirements:
item_check:
type: has item
material: IRON_INGOT
amount: 1
deny_commands:
- '[message]&c (&7$&c) У вас недостаточно ресурсов!'
left_click_commands:
- '[console] minecraft:clear %player_name% minecraft:iron_ingot 1'
- '[givemoney] 50'
- '[refresh]'
- '[message]&a&l Скупщик &8» &f Успешно!'
right_click_commands:
- '[console] lp user %player_name% parent remove jel1'
- '[console] lp user %player_name% parent add jel2'
- '[refresh]'
'test 1 - 32s':
material: IRON_INGOT
slot: 10
priority: 1
amount: 1
update: true
hide_attributes: true
display_name: '&bЖелезный слиток'
lore:
- '&7» Продать 1 шт (за 50$)'
- '&a» Продать 32 шт (за 1600$)'
- '&7» Продать всё железо'
- ' '
- '&aЛКМ - продать | ПКМ - сменить режим'
- ' '
- '&8» &fВаш баланс: &6$%vault_eco_balance_fixed%'
view_requirement:
requirements:
perm_check:
type: has permission
permission: jel2
left_click_requirement:
requirements:
item_check:
type: has item
material: IRON_INGOT
amount: 32
deny_commands:
- '[message]&c (&7$&c) У вас недостаточно ресурсов!'
left_click_commands:
- '[console] minecraft:clear %player_name% minecraft:iron_ingot 32'
- '[givemoney] 1600'
- '[refresh]'
- '[message]&a&l Скупщик &8» &f Успешно!'
right_click_commands:
- '[console] lp user %player_name% parent add jel3'
- '[console] lp user %player_name% parent remove jel2'
- '[refresh]'
'test 1 - vs':
material: IRON_INGOT
slot: 10
priority: 2
amount: 1
update: true
hide_attributes: true
display_name: '&bЖелезный слиток'
lore:
- '&7» Продать 1 шт (за 50$)'
- '&7» Продать 32 шт (за 1600$)'
- '&a» Продать всё железо'
- ' '
- '&aЛКМ - продать | ПКМ - сменить режим'
- ' '
- '&8» &fВаш баланс: &6$%vault_eco_balance_fixed%'
view_requirement:
requirements:
perm_check:
type: has permission
permission: jel3
left_click_requirement:
requirements:
item_check3:
type: String equals
input: '%checkitem_mat:IRON_INGOT%'
output: 'true'
deny_commands:
- '[message]&c (&7$&c) У вас недостаточно ресурсов!'
left_click_commands:
- '[givemoney] %math_2_50*{checkitem_amount_mat:IRON_INGOT}%'
- '[placeholder] %checkitem_remove_mat:IRON_INGOT,amt:{checkitem_amount_mat:IRON_INGOT}%'
- '[message]&a&l Скупщик &8» &f Успешно!'
- '[refresh]'
right_click_commands:
- '[console] lp user %player_name% parent remove jel3'
- '[console] lp user %player_name% parent add jel1'
- '[refresh]'
Вот как я пытался сделать:
items:
'test 1 - 1s':
material: IRON_INGOT
slot: 10
priority: 0
amount: 1
update: true
hide_attributes: true
display_name: '&bЖелезный слиток'
lore:
- '&a» Продать 1 шт (за 50$)'
- '&7» Продать 32 шт (за 1600$)'
- '&7» Продать всё железо'
- ' '
- '&aЛКМ - продать | ПКМ - сменить режим'
- ' '
- '&8» &fВаш баланс: &6$%vault_eco_balance_fixed%'
view_requirement:
requirements:
perm_check:
type: has permission
permission: jel1
left_click_requirement:
requirements:
item_check:
type: has item
material: IRON_INGOT
amount: 1
deny_commands:
- '[message]&c (&7$&c) У вас недостаточно ресурсов!'
left_click_commands:
- '[console] minecraft:clear %player_name% minecraft:iron_ingot 1'
- '[givemoney] 50'
- '[refresh]'
- '[message]&a&l Скупщик &8» &f Успешно!'
right_click_commands:
- '[console] lp user %player_name% parent remove jel1'
- '[console] lp user %player_name% parent add jel2'
- '[refresh]'
'test 1 - 32s':
material: IRON_INGOT
slot: 10
priority: 1
amount: 1
update: true
hide_attributes: true
display_name: '&bЖелезный слиток'
lore:
- '&7» Продать 1 шт (за 50$)'
- '&a» Продать 32 шт (за 1600$)'
- '&7» Продать всё железо'
- ' '
- '&aЛКМ - продать | ПКМ - сменить режим'
- ' '
- '&8» &fВаш баланс: &6$%vault_eco_balance_fixed%'
view_requirement:
requirements:
perm_check:
type: has permission
permission: jel2
left_click_requirement:
requirements:
item_check:
type: has item
material: IRON_INGOT
amount: 32
deny_commands:
- '[message]&c (&7$&c) У вас недостаточно ресурсов!'
left_click_commands:
- '[console] minecraft:clear %player_name% minecraft:iron_ingot 32'
- '[givemoney] 1600'
- '[refresh]'
- '[message]&a&l Скупщик &8» &f Успешно!'
right_click_commands:
- '[console] lp user %player_name% parent add jel3'
- '[console] lp user %player_name% parent remove jel2'
- '[refresh]'
'test 1 - vs':
material: IRON_INGOT
slot: 10
priority: 2
amount: 1
update: true
hide_attributes: true
display_name: '&bЖелезный слиток'
lore:
- '&7» Продать 1 шт (за 50$)'
- '&7» Продать 32 шт (за 1600$)'
- '&a» Продать всё железо'
- ' '
- '&aЛКМ - продать | ПКМ - сменить режим'
- ' '
- '&8» &fВаш баланс: &6$%vault_eco_balance_fixed%'
view_requirement:
requirements:
perm_check:
type: has permission
permission: jel3
left_click_requirement:
requirements:
item_check3:
type: String equals
input: '%checkitem_mat:IRON_INGOT%'
output: 'true'
deny_commands:
- '[message]&c (&7$&c) У вас недостаточно ресурсов!'
left_click_commands:
- '[givemoney] %math_2_50*{checkitem_amount_mat:IRON_INGOT}%'
- '[placeholder] %checkitem_remove_mat:IRON_INGOT,amt:{checkitem_amount_mat:IRON_INGOT}%'
- '[message]&a&l Скупщик &8» &f Успешно!'
- '[refresh]'
right_click_commands:
- '[console] lp user %player_name% parent remove jel3'
- '[console] lp user %player_name% parent add jel1'
- '[refresh]'
Последнее редактирование: