KodingKid

MyCraft - Version 1

Sep 11th, 2021 (edited)
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.28 KB | None | 0 0
  1. import random
  2. import time
  3. top_height = random.randint(50,500)
  4. bottom_height = random.randint(0,50)
  5. middle_height = top_height - bottom_height
  6. world_size = random.randint(1500,7500)
  7. forest = random.randint(10,50)
  8. desert = random.randint(5,25)
  9. jungle = random.randint(3,15)
  10. mountain = random.randint(2,5)
  11. volcano = random.randint(1,5)
  12. biome_overall = forest + desert + jungle + mountain + volcano
  13. biome_remaining = 100 - biome_overall
  14. if biome_remaining == 100:
  15. time.sleep(3)
  16. print("World Loaded!")
  17. time.sleep(2)
  18. print("Biome Percentages:")
  19. print(forest"%")
  20. print(desert"%")
  21. print(jungle"%")
  22. print(mountain"%")
  23. print(volcano"%")
  24. if else:
  25. forest + biome_remaining
  26. time.sleep(1)
  27. print("Loading...")
  28. time.sleep(5)
  29. print("World Loaded!")
  30. time.sleep(10)
  31. print("Biome Percentages:")
  32. print(forest"%")
  33. print(desert"%")
  34. print(jungle"%")
  35. print(mountain"%")
  36. print(volcano"%")
  37. if desert > forest or jungle > forest:
  38. print("Rare seed lol")
  39. if else:
  40. print("Normal seed ok")
  41. co_ordinates_y = random.randint(0,100)
  42. co_ordinates_x = random.randint(0,200)
  43. character_speed = random.randint(5,25)
  44. characted_move = input()
  45. if characted_move == "Right" or "right":
  46. co_ordinates_x + character_speed
  47. if characted_move == "Left" or "left":
  48. co_ordinates_x - character_speed
  49. if characted_move == "Up" or "up":
  50. co_ordinates_y + character_speed
  51. if characted_move == "Down" or "down":
  52. co_ordinates_y - character_speed
  53. else:
  54. print("Try again lol")
  55. sword = "none"
  56. axe = "none"
  57. pickaxe = "none"
  58. shovel = "none"
  59. hoe = "none"
  60. all_tools = "none"
  61. wood_mine = 0
  62. while all_tools == "none":
  63. mine_time = time.sleep(5)
  64. wood_mine + 1
  65. if wood_mine > 1:
  66. shovel = "wood"
  67. if wood_mine > 2:
  68. sword = "wood"
  69. hoe = "wood"
  70. if wood_mine > 3:
  71. axe = "wood"
  72. pickaxe = "wood"
  73. all_tools = "wood"
  74. while all_tools == "wood":
  75. stone_mine = 0
  76. mine_time = time.sleep(8)
  77. stone_mine + 1
  78. if stone_mine > 1:
  79. shovel = "stone"
  80. if stone_mine > 2:
  81. sword = "stone"
  82. hoe = "stone"
  83. if stone_mine > 3:
  84. axe = "stone"
  85. pickaxe = "stone"
  86. all_tools = "stone"
  87. while all_tools == "stone":
  88. iron_mine = 0
  89. mine_time = time.sleep(12)
  90. smelt_time = time.sleep(16)
  91. iron_mine + 1
  92. if iron_mine > 1:
  93. shovel = "iron"
  94. if iron_mine > 2:
  95. sword = "iron"
  96. hoe = "iron"
  97. if iron_mine > 3:
  98. axe = "iron"
  99. pickaxe = "iron"
  100. all_tools = "iron"
Add Comment
Please, Sign In to add comment