#Has Item: with model data

1 messages · Page 1 of 1 (latest)

golden fjord
#

Hi, any one know if this is correct as it isn't working to what i'm currently has? It's a requirement for player to have an item with model data.

'cow_available': display_name: '&#db1d1d✘ &8Cow' material: oraxen-bryxelpop_secret lore: - ' ' - '&7 You''re carrying this POP!. ' - ' ' - '&f + Left-click to add it to your collection! ' - ' ' priority: 2 slot: 1 view_requirement: minimum_requirements: 1 stop_at_success: true requirements: has_item: type: 'has item' material: PAPER modeldata: 20003 name: 'Pop Cow (Boxed)' amount: 1 left_click_commands: - '[sound] BLOCK_BARREL_CLOSE 0.6 1.4' - '[console] lp user %player_name% permission set pop.cow true' - '[console] minecraft:clear %player_name% paper[custom_model_data=20003] 1' - '[close]' - '[openguimenu] collection_pop

keen rune
#

and do /papi ecloud dowload checkitem

golden fjord
#

oh ok, will try that

keen rune
#

The wiki for checkitem i just sent

#

No longer need this

golden fjord
# keen rune No longer need this

'cow_available': display_name: '&#db1d1d✘ &8Cow' material: oraxen-bryxelpop_secret lore: - ' ' - '&7 You''re carrying this POP!. ' - ' ' - '&f + Left-click to add it to your collection! ' - ' ' priority: 2 slot: 1 click_requirement: requirements: has_specific_items: type: "javascript" input: "%checkitem_namecontains:Pop Cow (Boxed),mat:paper,custommodeldata:20003%" output: "yes" left_click_commands: - '[sound] BLOCK_BARREL_CLOSE 0.6 1.4' - '[console] lp user %player_name% permission set pop.cow true' - "[placeholder] %checkitem_namecontains:Pop Cow (Boxed),mat:paper,custommodeldata:20003%" - '[close]' - '[openguimenu] collection_pop '

is this correct?

#

it says detect invalid configuration when I reload dmenu

keen rune
#

But the placeholder as well as the input is correct

golden fjord
#

idk what's wrong. here's the latest update

golden fjord
# keen rune But the placeholder as well as the input is correct

click_requirement: requirements: has_item: type: javascript expression: '%checkitem_namecontains:Pop Cow (Boxed),mat:paper,custommodeldata:20003%' output: 'yes' left_click_commands: - '[sound] BLOCK_BARREL_CLOSE 0.6 1.4' - '[console] lp user %player_name% permission set pop.cow true' - '[console] minecraft:clear %player_name% paper[custom_model_data=20005] 1' - '[placeholder] %checkitem_namecontains:Pop Cow (Boxed),mat:paper,custommodeldata:20003%' - '[close]' - '[openguimenu] collection_pop'

#

i didnt remove the minecraft:clear as it needs to remove the detected items when clicked

keen rune
#

click_requirement: requirements: has_item: type: javascript expression: '%checkitem_namecontains:Pop Cow (Boxed),mat:paper,custommodeldata:20003%' output: 'yes' left_click_commands: - '[sound] BLOCK_BARREL_CLOSE 0.6 1.4' - '[console] lp user %player_name% permission set pop.cow true' - '[placeholder] %checkitem_remove_namecontains:Pop Cow (Boxed),mat:paper,custommodeldata:20003%' - '[close]' - '[openguimenu] collection_pop'

#

Imma check it in about an hour later, if you can wait..

golden fjord
golden fjord
golden fjord
#

this is the item

keen rune
#

can you paste ur config please

golden fjord
# keen rune <:thonking:379541184697204736>

view_requirement: requirements: has_specific_items: type: "string equals" input: "%checkitem_namecontains:Pop Cow (Boxed),mat:PAPER,custommodeldata:20003%" output: "yes" left_click_commands: - '[sound] BLOCK_BARREL_CLOSE 0.6 1.4' - '[console] lp user %player_name% permission set pop.cow true' - "[placeholder] %checkitem_remove_namecontains:Pop Cow (Boxed),mat:PAPER,custommodeldata:20003%" - '[close]' - '[openguimenu] collection_pop'

#

this is the config for the view requirement

keen rune
#

can you do /papi parse me %checkitem_namecontains:Pop Cow (Boxed),mat:PAPER,custommodeldata:20003%

keen rune
#

then probably the item model data is not correct

golden fjord
# keen rune then probably the item model data is not correct

it is, it's from oraxen btw.

`bryxelpop_cow:
itemname: Pop Cow (Boxed)
material: PAPER
Mechanics:
furniture:
type: DISPLAY_ENTITY
hitbox:
width: 1.0
height: 1.0
display_entity_properties:
display_transform: FIXED
barrier: true
limited_placing:
roof: false
floor: true
wall: false
drop:
silktouch: false
loots:
- oraxen_item: bryxelpop_cow
probability: 1.0
lore:

  • <#0EFF00>A mint condition Pop Cow
  • null
  • <#FDE153>B<#F1CA43>r<#E5B433>y<#DA9D23>x<#CE8713>e<#C27003>l <#2582B4>P<#145D8E>o#033768p
    <#7C7C7C>Collection
    Pack:
    generate_model: false
    model: default/bryxelpop/bryxelpop_cow
    custom_model_data: 20003`
#

or is there a way for the check item to be referencing oraxen?

#

like for the material being

material: oraxen-bryxelpop_secret

keen rune
#

in the first slot

golden fjord
#

or the bryxelpop_cow?

keen rune
#

the cow

golden fjord
keen rune
golden fjord
keen rune
golden fjord
keen rune
#

then that's the issue

golden fjord
#

here's the info from oraxen

bryxelpop_cow: itemname: Pop Cow (Boxed) material: PAPER

golden fjord
keen rune
#

./papi parse me %checkitem_mat:PAPER,custommodeldata:20003%

golden fjord
#

omg she said YES

keen rune
#

so your item doesnt have the name with it

golden fjord
keen rune
keen rune
golden fjord
keen rune
#

for the click commands, please change to %checkitem_remove_mat:PAPER,custommodeldata:20003%

golden fjord
#

DUDE

#

that fixes it!

#

you're a saint. thank you so much.

#

appreciate the help.

keen rune
#

btw, use %checkitem_mat:PAPER,amt:1,custommodeldata:20003% and %checkitem_remove_mat:PAPER,amt:1,custommodeldata:20003% if you want to clear 1 item, else it will remove any item with the same modeldata

#

like you got 3 items, without amt:1, it will clear 3 items. adding amt:1 only clear 1

golden fjord
#

just a quick question

#

what if it's a vanilla item?

#

like a snowball with a custom name color of #05963Suspicious Snowball

#

but just a plain snowball.

keen rune
#

it just the same, %checkitem_mat:SNOWBALL,nameequals:&#05963Suspicious Snowball,amt:1%

#

here's the wiki for it

golden fjord
keen rune
#

nameequals means the exact name with color
namecontains means the name with the text only

golden fjord
keen rune
golden fjord
#

theres a problem.

#

it takes the item automatically when I open the GUI.

#

instead of when I click the gui icon

keen rune
keen rune
#

I think ur getting my idea wrong here,

view requirements should be %checkitem_mat:PAPER,custommodeldata:20003%

click command should be %checkitem_remove_mat:PAPER,custommodeldata:20003%

golden fjord
#

gaddang bro you're awesome.

#

it's working perfectly now. thank you so much!

keen rune
golden fjord
#

&#3F7EB3Block of Ice

#

this is the item's name. but the material is just BLUE_ICE

keen rune
#

how can player renamed an item has color with an anvil?

golden fjord
#

no, just /itemrename

keen rune
#

then it's your server issue

golden fjord
#

i'll just rename the item to basic ones then.

keen rune
#

ahh i think i got ur problem wrong

golden fjord
keen rune
#

So again, you use /itemrename &#3F7EB3Block of Ice, with the ID of BLUE_ICE, but the view_req is not detecting the item, right?

keen rune
#

paste ur config

golden fjord
#

has_block_of_ice: type: "string equals" input: "%checkitem_mat:BLUE_ICE,nameequals:&#3F7EB3Block of Ice,amt10%" output: "yes"

#

tried it with this and it works

has_blueprint: type: "string equals" input: "%checkitem_mat:ARMS_UP_POTTERY_SHERD,nameequals:&9Armour Blueprint,amt2%" output: "yes"

#

this one is a different requirement^

#

my guess is because it has only basic rename

keen rune
#

amt10% -> amt:10%

golden fjord
#

let me try this

golden fjord
#

removed the block of ice and only this remains and it works

has_netherite: type: "string equals" input: "%checkitem_mat:NETHERITE_INGOT,amt:1%" output: "yes" has_blueprint: type: "string equals" input: "%checkitem_mat:ARMS_UP_POTTERY_SHERD,nameequals:&9Armour Blueprint,amt:2%" output: "yes"

#

so I think it really is the issue with color

dawn pollen
#

hi