#ITEMADDER inside menus gui

1 messages · Page 1 of 1 (latest)

feral lance
#

Hello, how can I add custom items from itemadder plugins into menus? So players can buy and sell them as well as see them inside gui. I want to make it so tags are purchasable but players can also see them in shop

tardy torrent
#

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

gilded fableBOT
#
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

tardy torrent
#

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.

tardy torrent
# gilded fable

Also, if you need more assistance with this aspect just ask here 🙂

feral lance
#

Hey so the link you sent, what is the purpose of it? Looks very confusing

#

What does nbt stand for

tardy torrent
#

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

tardy torrent
#

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.)

feral lance
#

So you suggest to use /ia give instead of check item

#

Which is the command for itemadder. 🙂 I believe

tardy torrent
#

but if you need to remove it, I don't think itemsadder has that

#

that's where checkitem comes in

feral lance
#

What would be the code for the buy and sell?

#

I don't need to remove the item

#

From shop

tardy torrent
#

sell items = removing items

feral lance
#

Oh I see

tardy torrent
#
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

feral lance
#

Wait tbh

tardy torrent
#

You can just switch the diamond part for money

feral lance
#

I probably won't make cosmetics sellable

#

So i think we should be good

tardy torrent
#

ye makes sense

#

so buying should be easy, no need for checkitem

#

just need to check the player's balance and give the item

feral lance
#

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

tardy torrent
#
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

feral lance
#

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

feral lance
#

Is it like the ID of the item or

tardy torrent
#

however it's defined in itemsadder

#

it has a namespace

#

and a name

feral lance
#

oh dang i cant send pics here

gilded fableBOT
feral lance
#

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

tardy torrent
#

?paste

gilded fableBOT
#
FAQ Answer:

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

tardy torrent
#

you shouldn't have a ` in your config

feral lance
#

oh ok

tardy torrent
#

(after vote)

feral lance
#

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

tardy torrent
#

send the menu

#

send your ia config

tardy torrent
feral lance
#

oops

#

like this?

tardy torrent
#

oh uh

#

send whatever file from ia contains the custom item

#

idk how ia works

feral lance
#

oh ok

tardy torrent
#

the config does not

feral lance
#

yeah just that

#

other place is png files

#

for the items

tardy torrent
#

the namespace is _iainternal

#

i see it at the top

#

no idea which item you wannt

#

but the name would be vote_key

feral lance
#

ohh vote key for exmaple

tardy torrent
#

itemsadder__iainternal:vote_key maybe? (not sure if the extra _ is part of it or not)

feral lance
#

hm didnt work i even took off the underscore

tardy torrent
#

oh wait

#

sorry

#

itemsadder-_iainternal:vote_key

feral lance
#

doesnt work

#

i took off underscore as well

#

wait

#

you editied it

#

give me se

#

c

#

Damn didnt work

tardy torrent
#

what dm version

feral lance
#

how can i check

#

in game

tardy torrent
#

/dm

feral lance
#

1.13.6

tardy torrent
#

what about itemsadder-_iainternal:vote @feral lance

#

maybe it's display_name

feral lance
#

nothing still

#

its not itemadder: right

tardy torrent
#

idk

#

no ItemsAdder material (itemsadder-namespace:name)

#

maybe give your server a restart see if it helps

#

lol

feral lance
#

i reset my server

tardy torrent
#

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

feral lance
#

it pops up

#

custommodeldata is 100017

#

10017*

tardy torrent
#

okay set the material to the item used, in this case paper

#

then add model_data: 10017

feral lance
#

can you write it to where i can copy and paste? i dont wanna mess anything up

#

sorry lol

tardy torrent
#
material: paper
model_data: 10017
feral lance
#

yenno what

#

I think i didnt copy and paste in right area maybe

#

give me one sec

#

!!

#

itemsadder-_iainternal:vote_key

#

works

#

im sorry

tardy torrent
#

nice