How do you make your custom meshes stay active in the world?
Since the game resets things, the code blocks are also reset every time you leave and rejoin (if you are the only one in the world like I am).
Furthermore, I need it to be code block code and not world code.
So how do I make my meshes stay active in the world?
If you need, here is some example code of a table leg mesh:
let [x, y, z] = thisPos
const blockId = api.attemptCreateMeshEntity("BloxdBlock", {
blockName: "Barkless Aspen Log",
size: [0.2, 1, 0.2]
})
if (blockId) {
api.setPosition(blockId, [x+0.5, y+0.99, z+0.5])
}
const blockId2 = api.attemptCreateMeshEntity("BloxdBlock", {
blockName: "Pine Wood Planks",
size: 1
})
if (blockId2) {
api.setPosition(blockId2, [x+0.5, y+0.01, z+0.5])
}
(You can give some feedback on the current code if you'd like to.)