Skip to main content

Owned Switch Device

The owned_switch_device is a creative device that combines a switch with an ownership system. It allows an assigned owner to interact with the switch to turn it on or off, triggering corresponding events for each action.

Properties

Switch

Type: switch_device
The switch component that players interact with. When an owner is assigned, the switch displays customized interaction texts; otherwise, it is disabled.

TurnOnActionText

Type: string
The text displayed to the owner when interacting with the switch to turn it on.

TurnOffActionText

Type: string
The text displayed to the owner when interacting with the switch to turn it off.

OwnerTurnedOnTrigger

Type: trigger_device
The trigger that is activated when the owner turns the switch on.

OwnerTurnedOffTrigger

Type: trigger_device
The trigger that is activated when the owner turns the switch off.

OwnershipDevice

Type: ownership_device
An external device that manages ownership and links this switch to the overall ownership system.