-
Create a decorative block where every side looks like either the Ender Gateway portal or the ender portal surface? (like in this mod: https://www.curseforge.com/minecraft/mc-mods/ender-portal-decoration)
-
Is it possible to create a plant (like a pumpkin seed) that grows cakes instead of pumpkins?
-
Is it possible to change melons and pumpkins so they act like cake (meaning i can right click them to eat a slice)?
#Are these 3 things possible with KubeJS:
8 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
1: maybe with reflection but idk.
2:yes
3:Yes, you could create the sliced melon/pumpkin block and use the rightclick event to change the melon/pumpkin block
Do you know of an example for the second somewhere? Tried searching for "plant", "pumpkin" or "melon" and i cant find anything. And the wiki is in regards to plants not that fleshed out i feel like.
i will try to find but you just need a generic plant block, than a model that changes when the cake grows and to .set() a block of cake to the side. It's probably a good amount of work but possible
[➤](#1170689596942721114 message)
Something like this probably
event.create("enchanted_golden_carrot", "crop")
.age(7, builder => {
builder
.shape(0, 0, 0, 0, 16, 2, 16)
.shape(1, 0, 0, 0, 16, 2, 16)
.shape(2, 0, 0, 0, 16, 4, 16)
.shape(3, 0, 0, 0, 16, 4, 16)
.shape(4, 0, 0, 0, 16, 8, 16)
.shape(5, 0, 0, 0, 16, 8, 16)
.shape(6, 0, 0, 0, 16, 8, 16)
.shape(7, 0, 0, 0, 16, 16, 16)
})
.survive((state, level, pos) => {
const FARMLAND = Java.loadClass('net.minecraft.world.level.block.FarmBlock')
let blockState = level.getBlockState(pos.below())
let mcBlock = blockState.block
if (mcBlock instanceof FARMLAND) {
return true
}
else return false
})
.growTick((tickevent) => 5)
.dropSeed(false)
.crop("kubejs:enchanted_golden_carrot", 1)
.texture(0, "kubejs:block/enchanted_golden_carrot_stage0")
.texture(1, "kubejs:block/enchanted_golden_carrot_stage0")
.texture(2, "kubejs:block/enchanted_golden_carrot_stage1")
.texture(3, "kubejs:block/enchanted_golden_carrot_stage1")
.texture(4, "kubejs:block/enchanted_golden_carrot_stage2")
.texture(5, "kubejs:block/enchanted_golden_carrot_stage2")
.texture(6, "kubejs:block/enchanted_golden_carrot_stage2")
.texture(7, "kubejs:block/enchanted_golden_carrot_stage3")
.tagBlock('minecraft:mineable/pickaxe')
.item((seedItem) => {
seedItem.texture("kubejs:item/enchanted_golden_carrot")
})
Search for "Crop", you will find more information
How would i go about running a custom script/command in the growtick? Seems like i can only set a tick number and the randomTick event seems to be overwritten.