FutureProg functions

setlit

Itemscomputer function, computer program, standard futureprog

setlit overload 1

Boolean setlit(Item item, Boolean state)
Available in
  • computer function
  • computer program
  • standard futureprog
Sets the lit state of a lightable item. Returns false if the item is null or does not have a lightable component.
ParameterTypeDescription
item Item The lightable item to update.
state Boolean Whether the item should be lit after the call.