#ITEMADDER inside menus gui
1 messages · Page 1 of 1 (latest)
adding them to the gui pretty simple
material: 'itemsadder-namespace:name`
replacing namespace and name with the ones for your item
Selling/buying them will be a little harder, but since they use NBT data you should be able to do so with checkitem
Checkout this example of giving/removing items with nbt
?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
However, I do suggest using itemsadder commands to GIVE the item at the very least
If itemsadder also has a /remove command for their items, that could be used as well, but I don't believe they do.
Also, if you need more assistance with this aspect just ask here 🙂
Hey so the link you sent, what is the purpose of it? Looks very confusing
What does nbt stand for
NBT = Named Binary Tag
Essentially, all itemsadder items have a specific nbt
that will be something like itemsadder:custom-items and the value could be BigMoney
you could probably also use Material + CustomModelData, but I don't have a specific write up for that
It should teach you how to check for itemsadder items in the player's inventory and remove them upon clicking with certain conditions
You can also use it to give items (as seen with the diamond in the deluxemenus example on that post)
but i recommend giving custom itemsadder items via the /ia give command (or whatever the command is)
mainly because there is a lot of data to replicate if you were to build it from the ground up with checkitem (name, lore, cmd, nbt, etc.)
So you suggest to use /ia give instead of check item
Which is the command for itemadder. 🙂 I believe
Yes
but if you need to remove it, I don't think itemsadder has that
that's where checkitem comes in
What would be the code for the buy and sell?
I don't need to remove the item
From shop
sell items = removing items
Oh I see
click_requirement:
requirements:
haskey:
type: string equals
input: '%checkitem_nbtstrings:executableitems:ei-id=ArmoryKey,amt:1%' #Checks if the player has 1 Armory Key
output: 'yes'
deny_commands:
- '[message] Get 1 Armory Key, fool'
click_commands:
- '[placeholder] %checkitem_remove_nbtstrings:executableitems:ei-id=ArmoryKey,amt:1%' #Removes 1 Armory Key from the player
- '[message] You used 1 Armory Key'
- '[placeholder] %checkitem_give_mat:diamond,amt:1%' #Gives the player 1 diamond
- '[message] You received 1 diamond'
let's take this
so this would be to "sell" a custom item
in return for a diamond
Wait tbh
You can just switch the diamond part for money
ye makes sense
so buying should be easy, no need for checkitem
just need to check the player's balance and give the item
So when they click the item it'll run the /give command . But I will need to make it so it makes sure they got the right amount of money to purchase . And that it takes it from them
click_requirement:
requirements:
hasmoney:
type: 'has money'
input: '%vault_eco_balance%'
amount: 500
deny_commands:
- '[message] Get $500, fool'
click_commands:
- '[console] eco take %player_name% 500' #Gives the player 1 diamond
- '[console] ia give %player_name%' #fill in the rest
- '[message] You received 1 diamond'
- '[message] You paid $500'
something like that
Lol "get 500, fool"
Ill definitely try this out when I'm on my pc and let you know if I have any questions thanks man
hey what name would I use?
Is it like the ID of the item or
oh dang i cant send pics here
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
This is what I did and it wont let me reload?
i did /iainfo and it says the namespaces is 5 for the item i have on my hand
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
you shouldn't have a ` in your config
oh ok
(after vote)
Sorry wdtym
'lighting_tag_blocked':
material: itemsadder-5:vote
this is what I have so far
item pops up as a stone so im assuming I did it wrong
in pastes
oh ok
the config does not
https://paste.helpch.at/usovuwomuy.yaml theres this and
yeah just that
other place is png files
for the items
the namespace is _iainternal
i see it at the top
no idea which item you wannt
but the name would be vote_key
ohh vote key for exmaple
itemsadder__iainternal:vote_key maybe? (not sure if the extra _ is part of it or not)
hm didnt work i even took off the underscore
doesnt work
i took off underscore as well
wait
you editied it
give me se
c
Damn didnt work
what dm version
/dm
1.13.6
idk
no ItemsAdder material (itemsadder-namespace:name)
maybe give your server a restart see if it helps
lol
i reset my server
if it's not working you could always try putting the custommodeldata in manually
model_data: #
You can find it by holding the item and typing /data get entity @s SelectedItem
okay set the material to the item used, in this case paper
then add model_data: 10017
can you write it to where i can copy and paste? i dont wanna mess anything up
sorry lol
material: paper
model_data: 10017
yenno what
I think i didnt copy and paste in right area maybe
give me one sec
!!
itemsadder-_iainternal:vote_key
works
im sorry
nice