#How to make a custom weapon (axe)?

35 messages · Page 1 of 1 (latest)

surreal jolt
#

i tried few times making an axe but no matter what i do i just cant get it to behave like an axe

hallow charmBOT
#

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

north isle
#

why are you creating 3 times

#

use the last line and add .displayName() method

surreal jolt
#

well thats how it is in the tutorial

#

aka wiki

north isle
#

because it is wiki

#

You do not need to create same item 3 times. Maybe this is the issue.

north isle
#

delete the first 2 event.create() methods

surreal jolt
#

add everything to the last event.create?

north isle
#

yes

#

as second comment said you can chain methods

surreal jolt
#

ima try dat

#

that just broke everything

#

lol

north isle
#

huh how

surreal jolt
#

59 warnings

#

the item doesnt even exist

north isle
#

warnings are not that important

surreal jolt
#

and it broke the recipe

surreal jolt
north isle
surreal jolt
#

this is 1.16.5

#

btw

north isle
#

ahh

surreal jolt
#

LOL

north isle
#

can you post the startup logs

surreal jolt
#
[16:23:14] [INFO ] Loaded script startup_scripts:script.js in 0.304 s
[16:23:14] [INFO ] Loaded 1/1 KubeJS startup scripts in 0.847 s
[16:23:14] [ERR  ] Error occurred while handling event 'item.registry': Can't find method dev.latvian.kubejs.item.ItemRegistryEventJS.create(string,string). (startup_scripts:script.js#15)
sick coralBOT
#

Please send your startup.txt log file.
You can find it here: minecraft/logs/kubejs/startup.txt

north isle
#

yeah that wiki for 1.18.2

#

probably method names are different for 1.16.5

surreal jolt
#

ima try to revert stuff to how it was