Skip to content

Instantly share code, notes, and snippets.

@Shadows-of-Fire
Last active February 20, 2019 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shadows-of-Fire/43c3a8ffc1447a7a5440f085cd68b972 to your computer and use it in GitHub Desktop.
Save Shadows-of-Fire/43c3a8ffc1447a7a5440f085cd68b972 to your computer and use it in GitHub Desktop.
Apotheosis Boss CraftTweaker Support

Documentation

Bosses can be tweaked by adding enchantments and by adding/removing valid armor sets for the bosses.


Armor Sets (mods.apotheosis.BossArmor)

Armor Sets are a combination of items for each equipment slot of the entity. Each set has a level. The higher the level, the higher in the sorted order the set will go. By default, the provided armor sets have levels 0 (chain), 1 (gold), 2 (iron), and 3 (diamond). The levels of added armor sets do not need to be in order, as at runtime the armor set list will be sorted so there are no gaps between the levels. Each boss is assigned a level when generating, as determined by the boss level up chance in the config. Some types of monsters, like spiders, will not have their armor visible, but will still be strengthened by it.

Set Removal:

removeArmorSet(int level)
Parameters:

  • int level - The level of the set to remove.
Set Addition:

addArmorSet(int level, IItemStack mainhand, IItemStack offhand, IItemStack feet, IItemStack legs, IItemStack chest, IItemStack head)
Parameters:

  • int level - The level of the set.
  • IItemStack mainhand - The main hand item. Usually a sword.
  • IItemStack offhand - The offhand item. Generally mobs do not use whatever is in this slot.
  • IItemStack feet - Boots.
  • IItemStack legs - Legplates.
  • IItemStack chest - Chestplate.
  • IItemStack head - Helmet.
Set Modification

addPossibleWeapons(int level, WeightedItemStack... stacks)
Parameters:

  • int level - The level of the set.
  • WeightedItemStack... stacks - An array of WeightedItemStacks that will be added to the possible mainhand list of this armor set. The original mainhand has a weight of 3.

Bosses (mods.apotheosis.Boss)

This allows the user to edit the possible enchantments boss gear can recieve. Duplicates are not permitted within these lists.

Addition:

addBowEnchantment(IEnchantmentDefinition enchant)
Parameters:

  • IEnchantmentDefinition enchant - The enchantment to add to the bow enchantment list.

addSwordEnchantment(IEnchantmentDefinition enchant)
Parameters:

  • IEnchantmentDefinition enchant - The enchantment to add to the sword enchantment list.

addToolEnchantment(IEnchantmentDefinition enchant)
Parameters:

  • IEnchantmentDefinition enchant - The enchantment to add to the tool enchantment list.

addArmorEnchantment(IEnchantmentDefinition enchant)
Parameters:

  • IEnchantmentDefinition enchant - The enchantment to add to the armor enchantment list.
Removal:

removeBowEnchantment(IEnchantmentDefinition enchant)
Parameters:

  • IEnchantmentDefinition enchant - The enchantment to remove from the bow enchantment list.

removeSwordEnchantment(IEnchantmentDefinition enchant)
Parameters:

  • IEnchantmentDefinition enchant - The enchantment to remove from the sword enchantment list.

removeToolEnchantment(IEnchantmentDefinition enchant)
Parameters:

  • IEnchantmentDefinition enchant - The enchantment to remove from the tool enchantment list.

removeArmorEnchantment(IEnchantmentDefinition enchant)
Parameters:

  • IEnchantmentDefinition enchant - The enchantment to remove from the armor enchantment list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment