#itemsadder material in requirements

1 messages · Page 1 of 1 (latest)

modest hawk
#

Hi, I want to check if the player has a custom item from itemsadder to interact in a menu,
I was checking like that

    right_click_requirement:
      requirements:
        anything_here:
          type: has item
          material: APPLE
          modeldata: 10027

The issue is that this doesn't check if it's the player as the actual item (it only check the model data)
I tried something like that

    left_click_requirement:
      requirements:
        anything_here:
          type: has item
          material: itemsadder-customcrops:tomato

but it seems that you can only use itemsadder as material for items and not requirement..
[DeluxeMenus] has item requirement at path: items.required2.left_click_requirement.requirements.anything_here does not specify a valid Material name!
How can I go around this limitation ?

Feel free to ping me if you got any question or answer 😄

worldly spear
#

@modest hawk the itemsadder- material is supported only for the item, but not for requirements

modest hawk
modest hawk
#

Here is the nbt data of one item, how can I check if the player has an item like that {Count:1b,id:"minecraft:apple",tag:{CustomModelData:10027,display:{Name:'{"italic":false,"color":"white","text":"Tomate"}'},itemsadder:{id:"tomato",namespace:"customcrops"}}}

wanton solar
#

You'd have to check material, custm model data

#

and name

modest hawk
# wanton solar and name

That's what I ended up doing, but the integration of itemsadder- material would be so much easier

wanton solar
#

Yeah. My hope is that in the future it will be added. The problem is that the code right now is not very reusable and I don't really want to write the same code twice and clean it up in the future. We're slowly trying to clean up parts of DeluxeMenus.

Also, I apologise for the ping. At the time of writing the answer I didn't see the post was 2 months old.

thorny acorn