#Can someone help me to make multiblocks with kubeJS
3 messages · Page 1 of 1 (latest)
first of all, please use the correct post tags. you're using 1.19.2, so use 1.19 and not 1.18 as a tag
and you're asking how to make multiblocks, yet like a few days ago you were asking how to remove a recipe...??
anyways, you first need to find out what blocks you need for it. then, you need to set the structure up in world as a reference.
load up VSC and make a new script. using the BlockEvents.rightClicked event, check for a player right clicking the main block of the multiblock, and store its position.
once you have the position, you can check if the other blocks are around by using block.x/block.y/block.z, and checking if they are the correct blocks.
that's one strategy, but if you want it to always function even after a server restart i don't know how to help