// I'm having issues registering 4 new tiers of knifes and it keeps giving the error of Error in
'StartupEvents.registry': TypeError: Cannot find function type in object BasicItemJS$Builder[kubejs:netherite_iron_knife]. event.create("kubejs:netherite_iron_knife")
.displayName("Netherite Iron Knife")
.texture("kubejs:item/netherite_iron_knife")
.tool('sword')
.tier('netherite')
.attackDamageBaseline(6.5)
.attackSpeedBaseline(2.0)
.fireResistant(true)
#How to change activation liquid of the aether portal
33 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
event.create("netherite_iron_knife", "sword")
.displayName("Netherite Iron Knife")
.tier('netherite')
.attackDamageBaseline(6.5)
.attackSpeedBaseline(2.0)
.fireResistant(true)
You don't need to set a texture path because kubejs:item/item_id it is a standard value for an item and you only need to set a mod id at the creation if you don't want kubejs: as mod id
and you also dont need .displayName 
And if you want it to work as a knife as in the tool you can just tag it with the corresponding knife tag
a lot of mods have special ones for their own functionality so you might need to use /kubejs hand while holding the knife from the mod you want to copy the functionality of
most mods have it tag driven
I got this error
Paste version of startup.log from @spark umbra
it should be .speedBaseline(2.0) and not .attackSpeedBaseline(2.0)
Knife registry error
so when I get the tag for it, I replace sword for it right?
Wha
Auseawesome said if I want it to work as a knife I can just use this:'#forge:tools/knives'
Ye you just tag it 
.tag? or in the place of "sword"
.tag
the knife attack speed was set to 5, and the attack damage was set to 11 how can I lower it to 2 attack speed and 6 attack damage
Paste version of startup.log from @spark umbra
you're trying to mimic the farmer's delight knife?
yes
if you want to make a farmers delight knife then you need the KubeJS Delight Addon and the code for the knife should like this:
StartupEvents.registry("item", (event) => {
event.create("netherite_iron_knife", 'farmersdelight:knife')
.displayName("Netherite Iron Knife")
.tier('netherite')
.attackDamageBaseline(1.0)
.speedBaseline(-2.0)
.fireResistant()
});
this makes a knife with 6 Attack Dmg and 2 Attack Speed
I also have another issue
please use code blocks
How?
You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes
```js :arrow_left:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
This example will look like this:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
//(it's in the server script folder)
don't change ticket topic
This seems pretty unrelated - are you sure that it's related to your original issue? For simplicity and everyone else's sake, please create a new ticket. This also helps others that try to help you, as they may know how to fix x, but your ticket is still called y. Don't rename it either, then others looking for y won't be able to find it! -> #1047320998199955458