#Nbt_ints for view item

1 messages · Page 1 of 1 (latest)

solid violet
#

Hello, this is what I am trying to do.

        view_requirement:
          requirements:
            has_item:
              type: has item
              material: PIXELMON_UNO_ORB
              nbt_ints:
               - 'Damage:375'
              amount: 1

I know this does not work this way, but am sure how it should be, apparently I can use checkitem expansion, but still not quite sure the proper syntax. Any help would be much appreciated!

sand sierra
#

%checkitem_mat:PIXELMON_UNO_ORB,nbtints:Damage=375% should work

#

test with /papi parse me %checkitem_mat:PIXELMON_UNO_ORB,nbtints:Damage=375%

#

after downloading checkitem ofc

#

?checkitem

sharp wrenBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.
And click here for the CheckItem wiki with DeluxeMenus example menus.

solid violet
# sand sierra `%checkitem_mat:PIXELMON_UNO_ORB,nbtints:Damage=375%` should work

Tysm, so this is the full snippet, this is correct right? Not sure if I need the nbt_string tooltip bit.

      'not_enough_stuff_1':
        material: PIXELMON_UNO_ORB
        nbt_string: 'tooltip:'
        slot: 10
        priority: 2
        display_name: '&cYou do not have the required items and or money'
        lore:
        - ''
        - '&7Filled Frozen Orb'
        - '&7$200k'
        - ''
        view_requirement:
          requirements:
            has_item:
              type: has item
              material: %checkitem_mat:PIXELMON_UNO_ORB,nbtints:Damage=375%
              amount: 1
            has_money:
              type: has money
              amount: 200000
sand sierra
#

Not sure if I need the nbt_string tooltip bit.
I have no idea if it's required for your item

requirement type should be string equals

#

output of placeholder will be yes or no

#

did it work when you parsed it?

solid violet
#

Yep, that bit works 🙂

sand sierra
#

ok

#
            has_item:
              type: string equals
              input: '%checkitem_mat:PIXELMON_UNO_ORB,nbtints:Damage=375%'
              output: 'yes'
solid violet
#

Do I need the amount there as well?

#
            has_item:
              type: string equals
              material: '%checkitem_mat:PIXELMON_UNO_ORB,nbtints:Damage=375%'
              amount: 1
              output: 'yes'
sand sierra
#

default amount would be 1

#

either the user has it or they don't

#

and no

#

that's not how you would do it

#

if you needed an amount you need to add it to the checkitem placeholder

#

amt:#

solid violet
#

Ahh! perfect, tysm for the help

sand sierra
#

👍

#

?checkitem

sharp wrenBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.
And click here for the CheckItem wiki with DeluxeMenus example menus.

sand sierra
#

more info on the wiki this

solid violet
#

This is the only error I have currently

Requirement at path: items.not_enough_stuff_1.view_requirement.requirements.has_item does not contain the input: and/or the output: entries```
sand sierra
#

oh, you did not follow my example

solid violet
#

Ahh I see now

#

Yeah

#

Yep good now, works!

#

Have a great evening.

sand sierra
#

thanks, you as well

solid violet
# sand sierra thanks, you as well

Sorry to bug you again, I deop'd myself to test as a normal player, and the gui wont open and the only error is when actually trying to open it.

[05:16:10] [Craft Scheduler Thread - 1364/WARN] [DeluxeMenus/]: Plugin DeluxeMenus v1.13.6-Release generated an exception while executing task 8830418
java.lang.ArrayIndexOutOfBoundsException: null```
#

No errors on dm reload

sand sierra
#

is there more to the error?

#

?paste

sharp wrenBOT
#
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

solid violet
#

Nope, that is literally it

sand sierra
#

does restarting fix it by chance

solid violet
#

I can try

#

Here is the full thing just incase

sand sierra
#

possibly the empty open command array

#

if you don't want an open command, just remove the entry

#

how do users open the menu?

solid violet
#

It will be on a block they click

#

Didnt work

#

it works if I am op

#

and I see the barrier item

#

deop myself, and it doesnt work

#

lol

sand sierra
#

hmm

#

can you send the entire log with the error in it

solid violet
#

Sure, sec.

sharp wrenBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

solid violet
#

Very bottom

sand sierra
#

ah so

#

you're trying to have the user execute an admin command

#

/dm open custom_shrines

sand sierra
solid violet
#

same error

#

just the java null

sand sierra
#

is it being run by the user?

#

or console

solid violet
#

I have done both

#

Just did it via console

#

same error both ways

sand sierra
#

hmm i'm not too sure

solid violet
#

np, I will tinker with it

solid violet
sand sierra
#

maybe minecraft:clear not just clear