SpaceCat97 / SpaceCats-Wikis

Other
2 stars 0 forks source link

CVT: Allow for weighted options with random enchantments #28

Open Zettexe opened 3 months ago

Zettexe commented 3 months ago

In this example feather falling would be twice as likely to appear as depth strider.

"semiRandomEnchantments": [
  {
    "enchantmentKey": "minecraft:depth_strider",
    "enchantmentLevel": 1,
    "maxEnchantmentLevel": 2,
    "weight": 1
  },
  {
    "enchantmentKey": "minecraft:feather_falling",
    "enchantmentLevel": 1,
    "maxEnchantmentLevel": 2,
    "weight": 2
  }
]
SpaceCat97 commented 3 months ago

I have decided not to add weights for now, as it will require some reworking across the whole mod. I will however leave the ticket here for when I decide to re-visit this feature.