#setPermutation Error

1 messages · Page 1 of 1 (latest)

karmic eagle
#

I have blocks that replicate the behavior of slabs, stairs, walls, ect. The scripts I have for them work with current minecraft, but in preview with scripting 2.0, the scripts no longer work. I'm currently trying to fix the slabs and I'm stumped on what to fix. All I want is the slab to turn into full block when interacted with

Here's the slab script, I'm pretty sure it's the directionToVector3 function, but I'm not sure.

silver pewter
#

2 things to know

#

Custom components are registered in system.beforeEvents.startup and worldinitialize is removed

#

And they added this called early execution thing, basically doing something before the world is loaded

#

That's why the does not have required privileges error appears probably

#

Just wrap the problematic code in world.afterEvents.worldLoad