#DeluxeMenus Requirement type: Has item. Placeholder(instead of amount): Problem

1 messages · Page 1 of 1 (latest)

summer vault
#

Hello there!

I am trying to use placeholder as an check value

placeholder - %servervariables_globalvalue_gres-quest-1-1%

  gres-quest-1-1: #hay_block(-1)
    variable_type: GLOBAL
    value_type: INTEGER
    initial_value: 16

papi parse me check: this placeholder gives 16

code:

click_requirement:
  requirements:
    check_item:
      type: has item
      material: HAY_BLOCK
      placeholder: "%servervariables_globalvalue_gres-quest-1-1%"

code with amount(works fine):

click_requirement:
  requirements:
    check_item:
      type: has item
      material: HAY_BLOCK
      amount: 16

So the problem here is when I have any amount of HAY_BLOCK the click_commands run anyway. for example: [22:03:39 INFO]: Removed 9 item(s) from player redr1ghthand

#

I have also tried other placeholders like %player_health_rounded% which works the same "broken" way

arctic skiff
#

You can try this,

click_requirement:
  requirements:
    check_item:
      type: has item
      material: "%servervariables_globalvalue_gres-quest-1-1%"
      amount: 9
#

You could also use a comparator,

click_requirement:
  requirements:
    check_item:
      type: >=
      input: "%servervariables_globalvalue_gres-quest-1-1%"
      output: 9
summer vault
#

Currently I am using this as alternative:

requirements:
      check_item:
        type: '>='
        input: "%checkitem_amount_mat:{servervariables_globalvalue_gres-quest-1-2-mat}%"
        output: "%servervariables_globalvalue_gres-quest-1-2%"

So I am checking the amount of items in my inventory by placeholder with another placeholder, so my admin can "set up this menu" using only commands or 1 file.

#

But I am still curious - why Deluxe Menus has item: placeholder not working

summer vault
arctic skiff
#

has item doesn't support the placeholder: field like the money one does, it doesn't look like 🤔

ember trout
#

Just use amout instead of placeholder

#

Duluxemenus can handle placeholder everywhere

#

Like this
amout: '%placeholder%'

summer vault
ember trout
#

Try dynamic-amout

summer vault
# ember trout Try `dynamic-amout`

Did you mean dynamic-amount?

And not, its not working.

I am starting to feel like administration here are just ignoring the fact that its a mistake in wiki or this functional is busted

#

I have tried

amount: %placeholder%
placeholder: %placeholder%
amount: "placeholder-%placeholder%"
placeholder: "placeholder-%placeholder%"

nothing works

summer vault
ember trout
#

Try amout: '%placeholder%'