KubeJS

KubeJS

69M Downloads

Unable to set tool-related attributes with corresponding type items

Prunoideae opened this issue ยท 0 comments

commented

Minecraft Version

1.18.2

KubeJS Version

1802.5.0-build.324

Rhino Version

1801.1.9-build.131

Architectury Version

4.1.39

Forge/Fabric Version

Forge 40.0.36

Describe your issue

onEvent('item.registry', event => {
	event.create("sword_test", "sword")
		.attackDamage(10)
		.displayName("stupid");

	event.create("pick_test", "pickaxe")
		.miningSpeed(10)
		.displayName("fast");
})

image

image

But .type() is deprecated.

Crash report/logs

No response