Hi, I need to use this requirement for an item, but the item I'm using has the name edited as I do so that the requirement recognizes the item by the name and not by the material, since since I have it, it recognizes me as material.
#How do I put an item requirement by name and not by material?
1 messages · Page 1 of 1 (latest)
would it be okay to check name and material?
type: has item
material: tripwire_hook
name: '&6llave del tiempo'
you can try checkitem with string contains
has_item:
type: string equals
input: '%checkitem_mat:STICK,namecontains:[name]%
output: 'yes'
None of the ones you have provided have worked do not recognize the item that has the name edited
Bruh
not like that
😭
do this
/papi ecloud download checkitem
has_item:
type: string equals
input: '%checkitem_mat:STICK,namecontains:[name]%
output: 'yes'```
'level-2-desbloqueado':
material: hdb-17937
slot: 20
priority: 2
view_requirement:
requirements:
Horas_Jugadas:
type: javascript
expression: "%statistic_hours_played% >= 4"
llave:
type: string equals
input: '%checkitem_mat:TRIPWIRE_HOOK,namecontains:&6Llave del tiempo%
output: 'yes'
Bloques_Minados:
type: javascript
expression: "%statistic_mine_block% >= 100"```
@meager elm
also, make sure Checkitem is there on your server
AM doesn't work anymore download the expansion. I put it in and it cancels that .yml
Wait
Place a ' after the placeholder for checkitem
AM doesn't recognize the item by name
what is AM?
type /papi parse me %checkitem_mat:TRIPWIRE_HOOK,nameequals:&6llave del tiempo% and tell me what it says when you have the item in your inventory
@meager elm
NO
type /papi parse me %checkitem_getinfo:mainhand_nameequals:%
what does it say
while holding the item*
You sent it with a lowercase letter, that's why I throw myself no, but I've already changed it and it already throws me that yes
well your picture had lowercase
but if it's saying yes now and it works, then it should work fine in your menu
type: string equals
input: '%checkitem_mat:TRIPWIRE_HOOK,nameequals:&6llave del tiempo%'
output: 'yes'
If I'm sorry I'll change it later ...
i wonder if has item would work with the correct capitalization though
type: has item
material: tripwire_hook
name: '&6Llave del tiempo'
am, but he doesn't recognize me that he already has it in his hand and doesn't make the change of information
type /papi parse me %checkitem_nameequals&6Llave del tiempo%
(I suggest using nameequals instead of namecontains by the way, but either should work fine
I made a mistake
type /papi parse me %checkitem_nameequals:&6Llave del tiempo%
ohhhh
you are trying to check the amount, but that placeholder does not return a number
try this
%changeoutput_equals_input:{checkitem_namecontains:&6Llave del tiempo}_matcher:yes_ifmatch:&3&mTıenes &2&m1 &3&mllαve del tıempo&7_else:&3Consıgue &21 &3llαve del tıempo &c&lx%
if you have 1 key, it should say &3&mTıenes &2&m1 &3&mllαve del tıempo&7
if not, it should say &3Consıgue &21 &3llαve del tıempo &c&lx
With that confirmation, it doesn't show anything, it stays the same without changing the information
yes
hmmm
it returns this exactly? %changeoutput_equals_input:{checkitem_namecontains:&6Llave del tiempo}_matcher:yes_ifmatch:&3&mTıenes &2&m1 &3&mllαve del tıempo&7_else:&3Consıgue &21 &3llαve del tıempo &c&lx%
is that what you're saying
Just show this &3Consıgue &21 &3llαve del tıempo &c&lx
oh
what does /papi parse me %checkitem_namecontains:&6Llave del tiempo% return?
when you have the item
It confirms to me that I do have the key when I have it in the inventory and also confirms when I don't have it
do you have any other items in your inventory that contain &6Llave del tiempo in the name? @meager elm
what if you add the material? Is it okay if we do that?
/papi parse me %checkitem_mat:TRIPWIRE_HOOK,nameequals:&6Llave del tiempo%
no
@meager elm
.
If you add the material, you only recognize the material but not the name of the material