Suggestions & Requests
function servercmdChangeLight(%client,%light)
{
if(!isObject(%client.light)){servercmdLight(%client);}
switch$(%light)
{
case "Red": if(isObject(redLight)){%client.light.setDatablock(RedLight);}
case "Blue": if(isObject(blueLight)){%client.light.setDatablock(BlueLight);}
case "Green": if(isObject(greenLight)){%client.light.setDatablock(GreenLight);}
case "RGB": if(isObject(rgbLight)){%client.light.setDatablock(rgbLight);}
case "White": if(isObject(playerLight)){%client.light.setDatablock(playerLight);}
case "Bright": if(isObject(brightLight)){%client.light.setDatablock(brightLight);}
case "Alarm": if(isObject(alarmLightA)){%client.light.setDatablock(alarmLightA);}
}
}
Type /changelight X, where X is one of the following words:
Red - Red light
Blue - Blue light
Green - Green light
RGB - Blinks red, blue, green
White - Standard
Bright - Bright white
Alarm - Flashing red
You need the basic lights turned on for it to work, and Animated ones for RGB and Alarm. If either of these isn't on then those /changelight cmds won't work. Extract the file below into your Blockland folder.
DownloadEDIT2: Released as an addon.