2024/11/10Less than 1 minute
ItemEvents.modification((event) => {
const ItemBuilder = Java.loadClass(
"dev.latvian.mods.kubejs.item.custom.BasicItemJS$Builder"
);
event.modify("...", (item) => {
const builder = new ItemBuilder("...").glow(true);
item.setItemBuilder(builder);
});
});
Original2024/11/10Less than 1 minute
Startup Script
StartupEvents.registry("item", (event) => {
event
.create("random_concrete_pickaxe", "pickaxe")
.texture(":item/iron_pickaxe")
.maxDamage(250);
});
Original2024/11/10Less than 1 minute
Startup Script
StartupEvents.registry("item", (event) => {
event.create("random_shear", "shears").texture(":item/shears").maxDamage(238);
});
Original2024/11/10Less than 1 minute