Guest User

Untitled

a guest
Oct 6th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #Loka shard/diamond convertor
  2.  
  3. diamond = 12
  4. shard = 1/12
  5. stack = 64
  6. core = 64
  7. cluster = 8
  8. block = 9
  9.  
  10. convert = input("Do you want to convert your shards or diamonds?")
  11.  
  12. if convert == "shards":
  13. how_many = int(input("How many shards do you want converted?"))
  14. diamonds = int(shard * how_many)
  15. print(diamonds)
  16. db = int(diamonds/block)
  17. diamonds -= (db*block)
  18. print("Diamond blocks:",db, "diamonds:",diamonds)
  19.  
  20.  
  21. if convert == "diamonds":
  22. how_many_two = int(input("How many diamonds do you want converted?"))
  23. shards = diamond * how_many_two
  24. print(shards)
  25.  
  26. cores = int(shards / core)
  27. shards -= cores * core
  28. clusters = int(shards / cluster)
  29. shards -= cores * clusters
  30.  
  31. print("Cores:", cores, ", Clusters:", clusters, ", Shards:", shards)
Advertisement
Add Comment
Please, Sign In to add comment