#How do i make this take claimblocks when they click?

1 messages · Page 1 of 1 (latest)

native dock
#

click_commands:

  • '[console] acb -<amount>'
fallow vigil
#

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'```
native dock
#

for check_balance requirement "input", use %griefprevention_remainingclaims%

#

you have the wrong placeholder.

#

@fallow vigil lemme know if it worked

fallow vigil
#

Are you sure it’s remainingclaims and not claim blocks?

native dock
#

check griefpreventions wiki on placeholders

fallow vigil
#

Thats the right placeholder

fallow vigil
#

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'``` ?
fallow vigil
#
  • Fixed