#How do i make this take claimblocks when they click?
1 messages · Page 1 of 1 (latest)
Yeah but i want it to check if they have the required amount
and when i set the command to do the console it takes me negative.
Is it because im an OP
Oh nvm, i deopped and it still doenst work
This is what i have total
material: GOLD_NUGGET
model_data: 11013
slot: 11
priority: 1
update: true
item_flags:
- HIDE_ATTRIBUTES
display_name: '&e&l1,000 CLAIMBLOCKS VOUCHER'
lore:
- '&7A voucher for &e1,000 Claimblocks'
- ''
- '&fYou can use this voucher for yourself'
- '&for sell it to other players.'
- ''
- '&8Cost: &e1,000 Claimblocks'
click_requirement:
requirements:
check_balance:
type: '>='
input: '%claimblocks%'
output: '1000'
deny_commands:
- '[message] &8» &7You dont have enough Claimblocks!'
- '[sound] BLOCK_NOTE_BLOCK_BASS'
click_commands:
- '[sound] BLOCK_NOTE_BLOCK_PLING'
- '[console] mmoitems give CONSUMABLE CLAIMBLOCKS_VOUCHER %player_name% 1'
- '[console] acb %player_name% -1000'```
for check_balance requirement "input", use %griefprevention_remainingclaims%
you have the wrong placeholder.
@fallow vigil lemme know if it worked
Are you sure it’s remainingclaims and not claim blocks?
It did not work
check griefpreventions wiki on placeholders
Thats the right placeholder
but doesnt work when i click the icon
It just says dont have enough claimblocks, even though i have 1005.
material: GOLD_NUGGET
model_data: 11013
slot: 11
priority: 1
update: true
item_flags:
- HIDE_ATTRIBUTES
display_name: '&e&l1,000 CLAIMBLOCKS VOUCHER'
lore:
- '&7A voucher for &e1,000 Claimblocks'
- ''
- '&fYou can use this voucher for yourself'
- '&for sell it to other players.'
- ''
- '&8Cost: &e1,000 Claimblocks'
click_requirement:
requirements:
check_balance:
type: '>='
input: '%griefprevention_remainingclaims'
output: '1000'
deny_commands:
- '[message] &8» &7You dont have enough Claimblocks!'
- '[sound] BLOCK_NOTE_BLOCK_BASS'
click_commands:
- '[sound] BLOCK_NOTE_BLOCK_PLING'
- '[console] mmoitems give CONSUMABLE CLAIMBLOCKS_VOUCHER %player_name% 1'
- '[console] acb %player_name% -1000'```
thats what ive got now for it
Think its because of
requirements:
check_balance:
type: '>='
input: '%griefprevention_remainingclaims'
output: '1000'```
how it has
```output: '1000'``` ?
idk - im lost on how it should work 
- Fixed