
File lang not recognized
andronikuspailan opened this issue ยท 3 comments
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 :(
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"
}
how i added specified item for my new gasses? i want to add quartz to new infuse type...