Advertisement
adaxx11

Untitled

Jul 3rd, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #atak mobów
  2.  
  3. def atakMobow(iloscMobow):
  4. gameplay.set_game_mode(SURVIVAL, mobs.target(NEAREST_PLAYER))
  5. gameplay.time_set(DayTime.NIGHT)
  6. #tworzymy tablicę mobów
  7. tabMoby = [ZOMBIE,CREEPER,SKELETON]
  8.  
  9. for i in range(len(tabMoby)):
  10. for j in range(iloscMobow):
  11. mobs.spawn(tabMoby[i],randpos(pos(25, 1, 25), pos(30, 1, 30)))
  12. loops.pause(1000)
  13. player.on_chat("atak", atakMobow)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement