#Colored items in Stonecutter with ${color}
88 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of message.txt from @frail tartan
ServerEvents.recipes(event => {
event.remove({ mod : 'enviromats' })
Color.DYE.forEach(color => {
event.stonecutting('enviromats:${color}_alabaster_wall', 'enviromats:${color}_alabaster')
damn
??backtick
Here is your backtick for syntax highlighting!
`
Or have three!
```
i fked up
you're using the wrong backtick
the log is erroring about something else
that's your whole script?
there u are 😄
Paste version of message.txt from @frail tartan
in the event.shapeless
it's the wrong way around
it's enviromats:{$color}_alabaster
where it should be enviromats:${color}_alabaster
i cant understnad
ohhh
and that that you wanted to do
however you have {$variableName} instead
Paste version of message.txt from @frail tartan
you're wrapping it in ' when you should be in `
ty
now this one appeared
[18:18:44] [WARN ] Error creating recipe kubejs:kjs_8nl1yqj91cixwnb09bouqgs1c[kubejs:shapeless]: {"type":"kubejs:shapeless","ingredients":[[],[],[],[],[],[],[],[],{"item":"minecraft:magenta_dye"}],"result":{"item":"enviromats:magenta_alabaster","count":8}}: com.google.gson.JsonSyntaxException: Item array cannot be empty, at least one item must be defined
what
event.shapeless(
Item.of(`enviromats:${color}_alabaster`, 8),
[
`8x enviromats:${color}_alabaster`,
`minecraft:${color}_dye`
]
)
i replaced 8x enviromats:alabaster
with ....${color}...
and it worked 😄
are you sure that's what you want to happen?
you and making a recipe that turns 8 colored alabaster with a dye of that color -> 8 colored alabaster of that same color
you should be able to
kk
otherwise use Item.of('#enviromats:alabaster', 8)
:D
it worked
ty ^^
could u help me with something else pls
JEIEvents.hideItems(event => {
Color.DYE.forEach(color => {
event.hide([
'botanypots:${color}_concrete_botany_pot',
'botanypots:${color}_terracotta_botany_pot',
'botanypots:${color}_glazed_terracotta_botany_pot',
'botanypotstiers:elite_${color}_concrete_hopper_botany_pot',
'botanypotstiers:elite_${color}_concrete_botany_pot',
'botanypotstiers:elite_${color}_terracotta_hopper_botany_pot',
'botanypotstiers:elite_${color}_terracotta_botany_pot',
'botanypotstiers:elite_${color}_glazed_terracotta_hopper_botany_pot',
'botanypotstiers:elite_${color}_glazed_terracotta_botany_pot',
'botanypotstiers:ultra_${color}_concrete_hopper_botany_pot',
'botanypotstiers:ultra_${color}_concrete_botany_pot',
'botanypotstiers:ultra_${color}_terracotta_hopper_botany_pot',
'botanypotstiers:ultra_${color}_terracotta_botany_pot',
'botanypotstiers:ultra_${color}_glazed_terracotta_botany_pot',
'botanypotstiers:ultra_${color}_glazed_terracotta_hopper_botany_pot',
])
})
})
there are no errors
but this items are still inside my JEI
[Quote ➤](#1130924710654378004 message) you're wrapping it in ' when you should be in `
all of them actually
yes
:D
lemme try
it wont start with ´
if i use that by startup scripts then the server and the client gives the same error
"unknown something"
i changed it allready dont have the error
any other ideas why they still inside JEI?
maybe because of the last ","
Ticket closed!
ty ^^
