Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #atak mobów
- def atakMobow(iloscMobow):
- gameplay.set_game_mode(SURVIVAL, mobs.target(NEAREST_PLAYER))
- gameplay.time_set(DayTime.NIGHT)
- #tworzymy tablicę mobów
- tabMoby = [ZOMBIE,CREEPER,SKELETON]
- for i in range(len(tabMoby)):
- for j in range(iloscMobow):
- mobs.spawn(tabMoby[i],randpos(pos(25, 1, 25), pos(30, 1, 30)))
- loops.pause(1000)
- player.on_chat("atak", atakMobow)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement