Advertisement
MateuszGrabarczyk

Untitled

Dec 2nd, 2022
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def ekwipunek():
  2.  
  3. # lista przedmiotów, które ma dostać gracz
  4. przedmioty = [NETHERITE_SWORD, 1, NETHERITE_AXE, 1, BOW, 1, ARROW, 64, FIREBALL, 10
  5. , LAVA_BUCKET, 5, NETHERITE_HELMET, 1, NETHERITE_CHESTPLATE, 1, NETHERITE_LEGGINGS, 1, NETHERITE_BOOTS, 1
  6. , SPRUCE_DOOR, 20, TORCH, 20, LADDER, 64, ENCHANTED_APPLE, 2, COOKED_PORKCHOP, 4]
  7. # Pętla przypisująca przedmioty graczowi
  8. for i in range(0, len(przedmioty), 2):
  9. mobs.give(mobs.target(NEAREST_PLAYER), przedmioty[i], przedmioty[i+1])
  10.  
  11.  
  12. player.on_chat("ekwipunek", ekwipunek)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement