User Tools

Site Tools


script:world_event:setblocklightex

setBlockLightEx

  • Parameters and types:
    • x,y,z: numberposition
    • lv: numberlight intensity (0~16)
  • Return value and type:
    • code: numberSuccess (ErrorCode.OK) ErrorCode
  • The main function of this method: Set the light intensity
  • The specific use cases are as follows:
local code = World:setBlockLightEx(x, y, z, lv)
if code == ErrorCode.OK then
print('Execution successful', code )
else
print('Execution failed')
end
script/world_event/setblocklightex.txt · Last modified: 2024/06/10 14:27 by don