Frinn38 / MekaJS

A Minecraft addon mod for both Mekanism and KubeJS
0 stars 0 forks source link

File lang not recognized #2

Closed andronikuspailan closed 3 years ago

andronikuspailan commented 3 years ago

Following how to add lang,but it still gives me gas.kubejs.(your gas name) :

my startup_scripts: onEvent('infuser_type.registry', event => { event.create("quartz_infuser").color(9737364) })

onEvent('gas.registry', event => { event.create("quartz_infuser").color(9737364) })

my lang files (use name en_us.lang): gas.kubejs.quartz_infuser=Quartz Gas

my lang files (use name en_us.json): "gas.kubejs.quartz_infuser"="Quartz Gas"

note: if en_us.lang can't do it,then i change to en_us.json. but it still same for me. sorry bad english :(

Frinn38 commented 3 years ago

in 1.16 lang files are now json so it's en_us.json be sure that the file is placed in /kubejs/assets/kubejs/lang/en_us.json the file content should be a json object so :

{
    "gas.kubejs.quartz_infuser":"Quartz Gas"
}
andronikuspailan commented 3 years ago

how i added specified item for my new gasses? i want to add quartz to new infuse type...

Frinn38 commented 3 years ago

If you want to add a recipe for your gas or use your gas in a recipe simply use "kubejs:gas_id" so "kubejs:quartz_infuser" in the recipe json.