Posted By

smoover on 09/01/10


Tagged

python minecraft mpminebot tsm


Versions (?)

!g


 / Published in: PHP
 

Usage: !g 5 2 \r\n\r\nGives yourself 5 times 64 blocks of item #2

  1. elif cmd == '!g':
  2. amount = parts[1].lower()
  3. itemid = parts[2].lower()
  4. giveloop = range(0, int(amount))
  5. for item in giveloop:
  6. try:
  7. self.say("Giving 64 of #%s (%s)" % (itemid, item))
  8. self.give(nick, itemid, 64)
  9. except:
  10. print 'Error giving %s %s' % (nick, itemid)
  11. #self.say(errmsg)

Report this snippet  

You need to login to post a comment.