Advertisement
Guest User

Horse Generation Python Code

a guest
Apr 19th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.71 KB | None | 0 0
  1. entityHorse = TAG_Compound()
  2. entityHorse["Temper"] = TAG_Int(60)
  3. dropChances = TAG_List()
  4. dropChances.append(TAG_Float(0.0850000008941))
  5. dropChances.append(TAG_Float(0.0850000008941))
  6. dropChances.append(TAG_Float(0.0850000008941))
  7. dropChances.append(TAG_Float(0.0850000008941))
  8. dropChances.append(TAG_Float(0.0850000008941))
  9. entityHorse["DropChances"] = dropChances
  10. entityHorse["Age"] = TAG_Int(0)
  11. entityHorse["UUIDLeast"] = TAG_Long(-8516552491722049223)
  12. attributes = TAG_List()
  13. attribute = TAG_Compound()
  14. attribute["Name"] = TAG_String(u'Max Health')
  15. attribute["Base"] = TAG_Double(26.0)
  16. attributes.append(attribute)
  17. attribute2 = TAG_Compound()
  18. attribute2["Name"] = TAG_String(u'Knockback Resistance')
  19. attribute2["Base"] = TAG_Double(0.0)
  20. attributes.append(attribute2)
  21. attribute3 = TAG_Compound()
  22. attribute3["Name"] = TAG_String(u'Follow Range')
  23. attribute3["Base"] = TAG_Double(16.0)
  24. modifiers = TAG_List()
  25. modifier = TAG_Compound()
  26. modifier["Name"] = TAG_String(u'Random spawn bonus')
  27. modifier["UUIDLeast"] = TAG_Long(-8430026264303990420)
  28. modifier["Operation"] = TAG_Int(1)
  29. modifier["Amount"] = TAG_Double(0.00281902766982)
  30. modifier["UUIDMost"] = TAG_Long(5732884808806515603)
  31. modifiers.append(modifier)
  32. attribute3["Modifiers"] = modifiers
  33. attributes.append(attribute3)
  34. attribute4 = TAG_Compound()
  35. attribute4["Name"] = TAG_String(u'Jump Strength')
  36. attribute4["Base"] = TAG_Double(0.923745962947)
  37. attributes.append(attribute4)
  38. attribute5 = TAG_Compound()
  39. attribute5["Name"] = TAG_String(u'Speed')
  40. attribute5["Base"] = TAG_Double(0.916587660394)
  41. attributes.append(attribute5)
  42. entityHorse["Attributes"] = attributes
  43. entityHorse["HasReproduced"] = TAG_Byte(0)
  44. motion = TAG_List()
  45. motion.append(TAG_Double(0.0))
  46. motion.append(TAG_Double(-0.0784000015259))
  47. motion.append(TAG_Double(0.0))
  48. entityHorse["Motion"] = motion
  49. entityHorse["CustomName"] = TAG_String(u'')
  50. entityHorse["Type"] = TAG_Int(0)
  51. entityHorse["Health"] = TAG_Short(26)
  52. entityHorse["Bred"] = TAG_Byte(0)
  53. entityHorse["HealF"] = TAG_Float(26.0)
  54. entityHorse["CustomNameVisible"] = TAG_Byte(0)
  55. entityHorse["id"] = TAG_String(u'EntityHorse')
  56. entityHorse["AttackTime"] = TAG_Short(0)
  57. leash = TAG_Compound()
  58. leash["Y"] = TAG_Int(65)
  59. leash["X"] = TAG_Int(-236)
  60. leash["Z"] = TAG_Int(232)
  61. entityHorse["Leash"] = leash
  62. entityHorse["Fire"] = TAG_Short(-1)
  63. entityHorse["ChestedHorse"] = TAG_Byte(0)
  64. entityHorse["Invulnerable"] = TAG_Byte(0)
  65. entityHorse["DeathTime"] = TAG_Short(0)
  66. entityHorse["Tame"] = TAG_Byte(1)
  67. equipment = TAG_List()
  68. equipment2 = TAG_Compound()
  69. equipment.append(equipment2)
  70. equipment3 = TAG_Compound()
  71. equipment.append(equipment3)
  72. equipment4 = TAG_Compound()
  73. equipment.append(equipment4)
  74. equipment5 = TAG_Compound()
  75. equipment.append(equipment5)
  76. equipment6 = TAG_Compound()
  77. equipment.append(equipment6)
  78. entityHorse["Equipment"] = equipment
  79. entityHorse["InLove"] = TAG_Int(0)
  80. entityHorse["OnGround"] = TAG_Byte(1)
  81. entityHorse["HurtTime"] = TAG_Short(0)
  82. entityHorse["UUIDMost"] = TAG_Long(6910934661275600549)
  83. entityHorse["ArmorType"] = TAG_Int(3)
  84. entityHorse["Dimension"] = TAG_Int(0)
  85. entityHorse["Air"] = TAG_Short(300)
  86. pos = TAG_List()
  87. pos.append(TAG_Double(-234.249051997))
  88. pos.append(TAG_Double(63.0))
  89. pos.append(TAG_Double(231.300000012))
  90. entityHorse["Pos"] = pos
  91. entityHorse["CanPickUpLoot"] = TAG_Byte(0)
  92. entityHorse["PortalCooldown"] = TAG_Int(0)
  93. entityHorse["Saddle"] = TAG_Byte(1)
  94. entityHorse["PersistenceRequired"] = TAG_Byte(0)
  95. entityHorse["Leashed"] = TAG_Byte(1)
  96. entityHorse["FallDistance"] = TAG_Float(0.0)
  97. entityHorse["Variant"] = TAG_Int(772)
  98. rotation = TAG_List()
  99. rotation.append(TAG_Float(-301.136657715))
  100. rotation.append(TAG_Float(0.0))
  101. entityHorse["Rotation"] = rotation
  102. entityHorse["EatingHaystack"] = TAG_Byte(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement