# Move to the right.
# Complete this function:
def onSpawn(event):
# Inside a while-true loop:
while True:
# Use hero.findNearestItem()
item = hero.findNearestItem()
# If there's an item:
if item:
# Use pet.fetch(item) to fetch the item.
pet.fetch(item)
# Use pet.on() to assign onSpawn to the "spawn" event
pet.on("spawn", onSpawn)
hero.moveXY(78, 35)
Long Road
luckyman 917 9th Jan, 2022
To share this paste please copy this url and send to your friends
RAW Paste Data
There are no comments yet.