- Tham gia
- 03/06/2022
- Bài viết
- 14
Tôi đang làm đổi từ item sang points mà khi rename thì nó lại ko nhận item config
nè
items:
'1':
material: ghast_tear
slot: 11
display_name: '&f[&e$&f] Đồng &b10&f point [&e$&f]'
data: 0
lore:
- "&8• &fNhận 1 &eĐồng 10 point"
- "&8• &b-10 point &fvào tài khoản"
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%playerpoints_points%'
output: '10'
deny_commands:
- '[message] &6Shop &8> &fMày cần &c10 Points &fđể mua, OK?'
left_click_commands:
- '[console] points take %player_name% 10'
- '[console] give %player_name% ghast_tear 1 name:&f[&e$&f]_Đồng_&b10&f_point_[&e$&f] lore:&b●&f_Vật_chất_&eleo_thang|&b●_&fGiá_xăng_&ctăng_giá'
right_click_requirement:
requirements:
haveD10P:
type: javascript
expression: '"%checkitem_mat:ghast_tear_amt:1_nameequals:&f[&e$&f]_Đồng_&b10&f_point_[&e$&f]%".equals("yes");'
deny_commands:
- '[close]'
- '[message] &cKhông đủ item.'
right_click_commands:
- '[console] points give %player_name% 10'
- '[console] clear %player_name% ghast_tear 1 name:&f[&e$&f]_Đồng_&b10&f_point_[&e$&f]'
- '[message] &3Đã bán thành công &f[&e$&f]_Đồng_&b10&f_point_[&e$&f] &ex1.'
nè
items:
'1':
material: ghast_tear
slot: 11
display_name: '&f[&e$&f] Đồng &b10&f point [&e$&f]'
data: 0
lore:
- "&8• &fNhận 1 &eĐồng 10 point"
- "&8• &b-10 point &fvào tài khoản"
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%playerpoints_points%'
output: '10'
deny_commands:
- '[message] &6Shop &8> &fMày cần &c10 Points &fđể mua, OK?'
left_click_commands:
- '[console] points take %player_name% 10'
- '[console] give %player_name% ghast_tear 1 name:&f[&e$&f]_Đồng_&b10&f_point_[&e$&f] lore:&b●&f_Vật_chất_&eleo_thang|&b●_&fGiá_xăng_&ctăng_giá'
right_click_requirement:
requirements:
haveD10P:
type: javascript
expression: '"%checkitem_mat:ghast_tear_amt:1_nameequals:&f[&e$&f]_Đồng_&b10&f_point_[&e$&f]%".equals("yes");'
deny_commands:
- '[close]'
- '[message] &cKhông đủ item.'
right_click_commands:
- '[console] points give %player_name% 10'
- '[console] clear %player_name% ghast_tear 1 name:&f[&e$&f]_Đồng_&b10&f_point_[&e$&f]'
- '[message] &3Đã bán thành công &f[&e$&f]_Đồng_&b10&f_point_[&e$&f] &ex1.'

