#Lang changing

35 messages · Page 1 of 1 (latest)

terse raft
#

Hey not sure where I should ask so I thought I will try it here lol
I get into modding a lil bit at least and wanna change the name of an item with kubejs
I normally get the idea but sometimes it doesn't work like in this example although the name should be correct I guess? Maybe someone got an idea and could help 😄

polar citrusBOT
#

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

minor jackal
#

is the file in the correct place

jagged anchorBOT
#

[➤](#1257380910567784478 message)
A script to rename items:

ClientEvents.lang("en_us", e => {
e.renameItem('item id', 'new name')
})

Reloadable with F3 + T

terse raft
#

Uhm I'm not the modpack dev in general but yeah it's in
kubejs->assets->gtmthings->lang->en_us.json
So should be fine I guess?

minor jackal
minor jackal
terse raft
minor jackal
#

the gnome bot message

#

config of the modpack/kubejs/client_scripts and make a whatever.js

terse raft
#

Mh ok I will try that will close it if that will work!

minor jackal
#

it says that it's reloadable with F3 + T so that's nice

terse raft
#

Yeah it is like that now too

#

And with /kubejs reload lang but some things didn't work and I don't know why tbh

minor jackal
terse raft
#

Oh and what the bot says won't be the right thing cause I didn't wanna change it in general and only in the lang files cause I try to translate a chinese modpack rn

terse raft
#

Yeah I tried this but that didn't work

minor jackal
#

hm

#

you might need to make a resource pack.

#

maybe?

terse raft
#

In the chinese translation there is even this code here and it's basically the same

terse raft
# minor jackal you might need to make a resource pack.

Nah renaming will work without a resource pack I guess? I haven't made one and could change things in general for now but tbh I don't know a lot just trying to start translating stuff to get to know things better at least

minor jackal
#

so you're just trying to add a english lang file to the rest of the lang files or do you want it to directly translate it always so it's english

terse raft
#

Nah just the lang files that's why it's in kubejs->assets->modname->lang

minor jackal
#

this is so odd

#

why wouldn't the other methods work

#

gonna test some stuff

terse raft
#

Wait

#

I found the problem

minor jackal
#

?