# IScriptWorld.setBlock [← IScriptWorld](index.md) · [← Master](../../wiki.md) setBlock(IScriptBlockState state, int x, int y, int z) void Set a block at XYZ, use IScriptFactory.createBlockState(String, int) to get the block state.