#Colored items in Stonecutter with ${color}

88 messages · Page 1 of 1 (latest)

frail tartan
#

I tried but failed :c

low terraceBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

frail tartan
noble rapidsBOT
#

Paste version of message.txt from @frail tartan

frail tartan
#
ServerEvents.recipes(event => {
    event.remove({ mod : 'enviromats' })    

   Color.DYE.forEach(color => {
event.stonecutting('enviromats:${color}_alabaster_wall', 'enviromats:${color}_alabaster')
#

damn

stone slate
#

??backtick

noble rapidsBOT
frail tartan
#

i fked up

stone slate
#

you're using the wrong backtick

stone slate
#

that's your whole script?

frail tartan
noble rapidsBOT
#

Paste version of message.txt from @frail tartan

stone slate
#

in the event.shapeless

#

it's the wrong way around

#

it's enviromats:{$color}_alabaster

#

where it should be enviromats:${color}_alabaster

frail tartan
#

i cant understnad

stone slate
#

in a string template

#

you reference a variable using ${variableName}

frail tartan
#

ohhh

stone slate
#

and that that you wanted to do

frail tartan
#

yeee

#

i see

stone slate
frail tartan
#

reloading

#

still same error

noble rapidsBOT
#

Paste version of message.txt from @frail tartan

stone slate
#

you're wrapping it in ' when you should be in `

frail tartan
#

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

stone slate
#

that is super weird

frail tartan
#

maybe if i add ${color}

#

lemme test

#

damn

#

iam a G

#

ty for u help

stone slate
#

what

frail tartan
#
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 😄

stone slate
#

you and making a recipe that turns 8 colored alabaster with a dye of that color -> 8 colored alabaster of that same color

frail tartan
#

hmm

#

can i do 8x #enviromats:alabaster ?

stone slate
#

you should be able to

frail tartan
#

kk

stone slate
#

otherwise use Item.of('#enviromats:alabaster', 8)

frail tartan
#

seems to be fine

#

ill start minecraft later and take a look ingame

#

ty ^^ 😄

stone slate
#

:D

frail tartan
#

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',
   ])
 })
})
frail tartan
#

there are no errors
but this items are still inside my JEI

noble rapidsBOT
#

[Quote ➤](#1130924710654378004 message) you're wrapping it in ' when you should be in `

stone slate
#

all of them actually

frail tartan
#

kk

#

what do i have to press to get that?

#

'

#

not that one right?

stone slate
#

so

#

under the esc key

#

there should be a key with ~ on it

frail tartan
#

`

#

this one?

stone slate
#

yes

frail tartan
#

damn

#

nice ty

stone slate
#

:D

frail tartan
#

lemme try

frail tartan
#

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

frail tartan
#

maybe because of the last ","

frail tartan
#

ty ^^