on_world_item_option
on_world_item_option
Section titled “on_world_item_option”
fun on_world_item_option( item: ItemDefinition, option: String, behaviour: Interaction<WorldItem>.(subject: Entity) -> Unit)Interaction<WorldItem>.(subject: Entity) -> Uniton_world_item_option(Assets.Item.bones, "Bury") { player -> target.remove() player.message("You bury the bones.")}item: ItemDefinitionoption
Section titled “option”option: StringProperties
Section titled “Properties”target
Section titled “target”val target: Ton_world_item_option
Section titled “on_world_item_option”
fun on_world_item_option( option: String, behaviour: Interaction<WorldItem>.(subject: Entity) -> Unit)Interaction<WorldItem>.(subject: Entity) -> Unitoption
Section titled “option”option: StringProperties
Section titled “Properties”target
Section titled “target”val target: T