Skip to content

Routine: Launch Projectile

1cec0ld edited this page Feb 2, 2013 · 4 revisions

TODO: Finish documenting this

Possible projectile types:

  • Arrow
  • Egg
  • EnderPearl
  • Fireball
  • Fireball_small
  • Wither_Skull
  • Fish
  • Snowball
  • ThrownExpBottle (may not work)
  • ThrownPotion (may not work)

Example:

Interact:
    - 'if interact_right and item.matches.stick':
        - 'player.launch.snowball':
            #- 'message.player': '%{yaw} %{pitch} %{speed}'
            #- 'set.yaw': '(yaw - 20)'
            #- 'set.pitch': '(pitch + 10)'
            - 'set.speed': '4'
            #Explosive only
            #- 'set.yield': '0'
            #- 'set.incendiary': '1'
Clone this wiki locally