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 😄
#Lang changing
35 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
is the file in the correct place
[➤](#1257380910567784478 message)
A script to rename items:
ClientEvents.lang("en_us", e => {
e.renameItem('item id', 'new name')
})
Reloadable with F3 + T
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?
I'm not entirely sure but maybe rename gtmthings to modpack
or this
Where would that need to be? I haven't looked to deep into it for now just changed the lang files and haven't changed something at kubejs in general
Normally I could just add the new name for something and it will work or did I have to "add" the items to be possible to change their names?
I would try the method Rad sent
the gnome bot message
config of the modpack/kubejs/client_scripts and make a whatever.js
Mh ok I will try that will close it if that will work!
it says that it's reloadable with F3 + T so that's nice
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
did you put gtmthings: and not block.gtmthings:
Both didn't work and normally I needed to put item.whatever if it's not a placeable block and block.whatever if it's a block like the energy hatch here
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
m
oh.
did you try this
Yeah I tried this but that didn't work
In the chinese translation there is even this code here and it's basically the same
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
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
Nah just the lang files that's why it's in kubejs->assets->modname->lang
?