#Help requirements with customs item Itemsadder
1 messages Β· Page 1 of 1 (latest)
view_requirement:
requirements:
has_item:
- type: itemsadder-bronub:banana
+ type: has item
+ material: "TEXT"
+ ...
source -> https://wiki.helpch.at/helpchat-plugins/deluxemenus/options-and-configurations/requirements#has-item
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
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
it's okay, we all have to start somewhere
and your case isn't really documented so you couldn't have known
did i explain them in very extra ordinary way?
i colored the lines so they understand they need to remove the red one and put the green one π₯²
wtf
Discord as usual, my bad
no worries
:/
i dont use itemsadder or any modded items so im guessing banana is the material name π¬
%checkitem_nameequals:banana%
or you can try both im not sure which one will work correctly %checkitem_nameequals:itemsadder-bronub:banana%
nameequals checks the name of the item, so that, won't work
wouldnt it show "banana" when they hold the item?
mat: is the material, though ItemsAdder can't add new materials, it uses vanilla ones, so you can't check that either
if it has a custom name specific to that item, then we could use nameequals, yeah
though I know there's another method with nbt tags, but I forgot the syntax
meaning the item id will be same (as vanilla) but it would show a different item right?
nbtstrings:<key>=<value>;<key>=<value>
yeah
I think it's %checkitem_nbtstrings:PublicBukkitValues..itemsadder-bronub:banana% not sure
not work bro
not work too
/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
it' work, but for all custom item make with IA π¦
change the itemsadder-id:banana to itemsadder-id:<other IA item id>
i do it, but any time i have any custom items, it showing, and i can buy without banana in inv
?checkitem-nbt
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
nbtstrings:<key>=<value>;<key>=<value>
missing a =
o
view_requirement:
requirements:
has_item:
type: string equals
input: "%checkitem_nbtstrings:PublicBukkitValues..itemsadder-id=banana%"
output: "yes"
it not work π¦
it not check with only banana, when have any custom items, it work @@
i think itemsadder changes the nbt of the items in the latest versions
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 
i was still trying to find a proper solution
yeah but that's because 1.20.6 removed the nbt system
checkitem got updated
oh it did?
and supports 1.20.6+
yeah i commissioned a dev and did a pr
it works perfectly fine w executableitems and executableblocks
then idk
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
this instead should have been itemsadder:id=banana

still work with any custom items π
oke fuck this, its wrong π
the previous one didnt return an amount, this one returns the amount frm all the items in your inventory
i give up 
bro, let him play sonic mania π
π¦
i try with custom model data, but not work
whats the material of banana? paper?
yeah the custommodeldata tag didnt get updated to the newest versions if u use 1.20.5+
baked_potato
but u could possibly still check it via the nbtstrings
im running with ItemsAdder_3.6.4-release-2
i went back to this again, and idk why i tried to use publicbukkitvalues
%checkitem_amount_nbtstrings:itemsadder..id=<id>% without the <> @dreamy tangle the solution if u still need it
@sharp yoke 
I feel like this won't work
it does
really?
alright then
Is that paper's dump item command? @gusty wind
ye on 1.21
Cool
