Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Routine: Change Tameable Owner

1cec0ld edited this page Nov 22, 2012 · 3 revisions

Sets the owner of a Wolf or Ocelot to the specified player, overwriting the previous owner, if applicable.

Syntax

- 'set.{entity}_owner': '{player}'

Examples

InteractEntity: #Come to the Dark Side, we have cookies... 
    - 'if target.type.wolf and player.wielding.COOKIE':
        - 'set.target_owner': 'player' #will overwrite pre-owned wolves as well
        - 'playereffect.takeitem.COOKIE*1'
Clone this wiki locally