#making a custom item

59 messages · Page 1 of 1 (latest)

sly linden
#

`StartupEvents.registry('item', event => {
event.create(questcoin).displayName('&e&lQuest Coin')

})`
I watched a video on how to make one and i get no errors but the item still doesn't create

autumn kestrelBOT
#

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

midnight bolt
#

have you restarted the game since writing the script?

sly linden
#

i am rn

#

it was `StartupEvents.registry('item', event => {
event.create('questcoin').displayName('&e&lQuest Coin')

})
`

midnight bolt
#

i see nothing wrong with that

sly linden
dawn mantleBOT
#

You can find your KubeJS startup log in /minecraft/logs/kubejs/startup.log.
If you are on 1.18 or below it will be called startup.txt.
Please send it if asked, as it contains helpful information.

midnight bolt
#

oh wait

#

you didnt put the ID in quotes

#

bruh

#
StartupEvents.registry('item', event => {
    event.create('questcoin').displayName('&e&lQuest Coin')
})
#

but then how tf did the game load

sly linden
#

ikr

#

it was with quotes before

#

but still had nothing

#

im restarting rn

midnight bolt
#

send me the logs so i can see if theres anything wrong

sly linden
#

[12:09:45] [INIT] KubeJS 2001.6.4-build.138; MC 2001 forge
[12:09:45] [INIT] Loaded plugins:
[12:09:45] [INIT] - dev.latvian.mods.kubejs.forge.BuiltinKubeJSForgePlugin
[12:09:45] [INIT] - dev.latvian.mods.kubejs.forge.BuiltinKubeJSForgeClientPlugin
[12:09:45] [INIT] - com.probejs.ProbeJSPlugin
[12:09:45] [INIT] - com.tom.createores.kubejs.KubeJSExcavation
[12:09:45] [INIT] - dev.latvian.mods.kubejs.create.KubeJSCreatePlugin
[12:09:47] [INFO] Loaded script startup_scripts:coin.js in 0.143 s
[12:09:47] [INFO] example.js#5: Hello, World! (Loaded startup scripts)
[12:09:47] [INFO] Loaded script startup_scripts:example.js in 0.002 s
[12:09:47] [INFO] Loaded 2/2 KubeJS startup scripts in 1.246 s with 0 errors and 0 warnings

#

thats from before tho

#

still nothing, ill send the new longs

#

[12:14:47] [INIT] KubeJS 2001.6.4-build.138; MC 2001 forge
[12:14:47] [INIT] Loaded plugins:
[12:14:47] [INIT] - dev.latvian.mods.kubejs.forge.BuiltinKubeJSForgePlugin
[12:14:47] [INIT] - dev.latvian.mods.kubejs.forge.BuiltinKubeJSForgeClientPlugin
[12:14:47] [INIT] - com.probejs.ProbeJSPlugin
[12:14:47] [INIT] - com.tom.createores.kubejs.KubeJSExcavation
[12:14:47] [INIT] - dev.latvian.mods.kubejs.create.KubeJSCreatePlugin
[12:14:48] [INFO] Loaded script startup_scripts:coin.js in 0.15 s
[12:14:48] [INFO] example.js#5: Hello, World! (Loaded startup scripts)
[12:14:48] [INFO] Loaded script startup_scripts:example.js in 0.008 s
[12:14:48] [INFO] Loaded 2/2 KubeJS startup scripts in 1.071 s with 0 errors and 0 warnings

midnight bolt
#

do this and send me the log again
(just send the file, not the contents)

StartupEvents.registry('item', event => {
    event.create('questcoin').displayName('&e&lQuest Coin')
    console.log('registry')
})
sly linden
#

ah ok

#

sorry

midnight bolt
#

dont be lol

sly linden
#

uh btw

#

you could add like custom modeled blocks from blockbench with this right?

midnight bolt
#

yeah, thats a vanilla feature

sly linden
dawn mantleBOT
#

Paste version of startup.log from @sly linden

midnight bolt
#

well then

#

your log doesnt reflect the console.log('registry') which means youre either editing the wrong files, or not saving

sly linden
#

how would i not be saving lmao

midnight bolt
#

im just telling you what im seeing

sly linden
#

uh

#

how would i save my thing

#

with vs

midnight bolt
#

same way you save in any other program ctrl S lol

sly linden
#

ohhh

#

i dident know that

#

thought it autosaved ;3

midnight bolt
sly linden
#

im new to all this

#

im sorry

midnight bolt
#

its just a text editor, i dont know of any software that autosaves ._.

sly linden
#

well i dident see a save button ._.

midnight bolt
#

MS Word autosaves i guess

sly linden
#

it works now

#

tysm

autumn kestrelBOT
#

Ticket closed!

midnight bolt
#

its not on by default

#

therefor, it doesnt autosave

cerulean linden
#

so thocc

#

I don't know of any software that autosaves

midnight bolt
#

you seem to be confused