#How to change activation liquid of the aether portal

33 messages · Page 1 of 1 (latest)

spark umbra
#
// 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)
gaunt minnowBOT
#

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

bright prism
#
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

fresh cairn
#

and you also dont need .displayName 3CTitaa

final kestrel
#

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

spark umbra
meager ventureBOT
#

Paste version of startup.log from @spark umbra

bright prism
#

it should be .speedBaseline(2.0) and not .attackSpeedBaseline(2.0)

fresh cairn
#

Knife registry error

spark umbra
fresh cairn
#

Wha

spark umbra
#

Auseawesome said if I want it to work as a knife I can just use this:'#forge:tools/knives'

fresh cairn
#

Ye you just tag it thinking_lex

spark umbra
#

.tag? or in the place of "sword"

fresh cairn
#

.tag

spark umbra
#

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

meager ventureBOT
#

Paste version of startup.log from @spark umbra

spark umbra
#

yes

bright prism
#

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

spark umbra
#

I also have another issue

fresh cairn
#

please use code blocks

spark umbra
#

How?

meager ventureBOT
#

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)
})
spark umbra
#

//(it's in the server script folder)
spark umbra
#

How to change activation liquid of the aether portal

#

...

final kestrel
#

don't change ticket topic

meager ventureBOT
#

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