#Help requirements with customs item Itemsadder

1 messages Β· Page 1 of 1 (latest)

dreamy tangle
#

I make a GUi buy and sell, but type in requirements not correctly with custom items make with itemsadder. Pls help

eager hamlet
sharp yoke
#

what

#

idk what you smoked nob but that's not how it works, you can't have 2 times the same key (type)

#

and DeluxeMenus' requirements don't support ItemsAdder, so you'll need to use the CheckItem placeholder in a string equals requirement type instead

dreamy tangle
#

yeah

#

but it work for all item in GUI

sharp yoke
#

it's not the right syntax for ItemsAdder items

#

I forgot how it is and can't find it

#

I'm at work rn so I can't check, but I'll try to see tonight when I'm home

dreamy tangle
#

thx you

#

i tried find 3 day,. and can did it work

#

cause im noob πŸ˜„

sharp yoke
#

it's okay, we all have to start somewhere

#

and your case isn't really documented so you couldn't have known

dreamy tangle
#

this is my banana config

#

pls help me

eager hamlet
#

i colored the lines so they understand they need to remove the red one and put the green one πŸ₯²

sharp yoke
#

oh

#

I don't see the colors on mobile

eager hamlet
#

wtf

sharp yoke
eager hamlet
#

its like this

sharp yoke
#

Discord as usual, my bad

eager hamlet
#

no worries

sharp yoke
#

but still, can't use ItemsAdder in the material

#

sadge

eager hamlet
#

:/

eager hamlet
#

or you can try both im not sure which one will work correctly %checkitem_nameequals:itemsadder-bronub:banana%

sharp yoke
#

nameequals checks the name of the item, so that, won't work

eager hamlet
#

wouldnt it show "banana" when they hold the item?

sharp yoke
#

mat: is the material, though ItemsAdder can't add new materials, it uses vanilla ones, so you can't check that either

sharp yoke
#

though I know there's another method with nbt tags, but I forgot the syntax

eager hamlet
sharp yoke
#

yeah

#

usually, IA's items are just retextured paper

eager hamlet
sharp yoke
#

yeah

#

I think it's %checkitem_nbtstrings:PublicBukkitValues..itemsadder-bronub:banana% not sure

eager hamlet
#

did you install the placeholder expansion btw

#

sometimes, i act dumb.

sharp yoke
#

/papi ecloud download CheckItem
/papi reload

view_requirement:
  requirements:
    has_item:
      type: string equals
      input: "%checkitem_nbtstrings:PublicBukkitValues..itemsadder-id:banana%"
      output: "yes"
#

should work @dreamy tangle

dreamy tangle
#

it' work, but for all custom item make with IA 😦

sharp yoke
#

change the itemsadder-id:banana to itemsadder-id:<other IA item id>

dreamy tangle
#

i do it, but any time i have any custom items, it showing, and i can buy without banana in inv

jaunty shale
#

?checkitem-nbt

proud pewterBOT
#
FAQ Answer:

CheckItem NBT Tutorial
Check out [this tutorial](#1071634786310967296 message) for information on how to check and remove items
with specific nbt data from a player via the CheckItem Expansion

jaunty shale
#

nbtstrings:<key>=<value>;<key>=<value>
missing a =

sharp yoke
#

o

#
view_requirement:
  requirements:
    has_item:
      type: string equals
      input: "%checkitem_nbtstrings:PublicBukkitValues..itemsadder-id=banana%"
      output: "yes"
dreamy tangle
#

it not work 😦

#

it not check with only banana, when have any custom items, it work @@

gusty wind
#

cause i was trying that too

#

i didnt manage to make it work either

#
minecraft:white_dye[custom_model_data=4000,custom_data={itemsadder: {id: "white_dye", namespace: "corrupted_items"}},custom_name='{"color":"white","italic":false,"text":"White Dye"}']
#

and the %checkitem_amount_nbtstrings:PublicBukkitValues..itemsadder-id=white_dye% returns 0

#

i even dig into my server folders and found itemssadder:ia that used to be working

#

and now the :ia isnt even in the tag anymore

#

eitherway i dont personally check for ia myself, so w/e OKK

#

i was still trying to find a proper solution

sharp yoke
#

yeah but that's because 1.20.6 removed the nbt system

gusty wind
#

checkitem got updated

sharp yoke
#

oh it did?

gusty wind
#

and supports 1.20.6+

#

yeah i commissioned a dev and did a pr

#

it works perfectly fine w executableitems and executableblocks

sharp yoke
#

then idk

gusty wind
#

so idk whats wrong w itemsadder

#

dont think its an issue w the checkitem

#

cause it works normally as it used to

#

lmao

#

it works with nbtints

#

πŸ’€

#

@dreamy tangle try

view_requirement:
  requirements:
    has_item:
      type: '>='
      input: "%checkitem_amount_nbtints:PublicBukkitValues..itemsadder:id=banana%"
      output: 1

to require the user to have 1 banana

#

oke nvm turns out it supports nbtstrings too

gusty wind
sharp yoke
#

that's what you have 2 msgs above

#

wait

#

wut

#

nvm then

gusty wind
dreamy tangle
#

still work with any custom items πŸ˜„

gusty wind
#

the previous one didnt return an amount, this one returns the amount frm all the items in your inventory

#

i give up sadcatok

eager hamlet
dreamy tangle
#

😦

gusty wind
#

at this point i d go check for the custom model data

#

or name even

dreamy tangle
#

i try with custom model data, but not work

gusty wind
#

whats the material of banana? paper?

#

yeah the custommodeldata tag didnt get updated to the newest versions if u use 1.20.5+

dreamy tangle
#

baked_potato

gusty wind
#

but u could possibly still check it via the nbtstrings

dreamy tangle
#

im running with ItemsAdder_3.6.4-release-2

gusty wind
#

oh

#

your server isnt in the latest version then

dreamy tangle
#

paper 1.20.1

#

3.6.4-release-2 Γ­s lastest release

gusty wind
#

%checkitem_amount_nbtstrings:itemsadder..id=<id>% without the <> @dreamy tangle the solution if u still need it

#

@sharp yoke sideeye

sharp yoke
#

I feel like this won't work

gusty wind
#

it does

sharp yoke
#

really?

gusty wind
sharp yoke
#

alright then

gusty wind
tough jay
#

Is that paper's dump item command? @gusty wind

tough jay
#

Cool

jaunty shale