Difference between revisions of "Mods:Blood Magic Support:Rituals"

From MineTweaker 3
Jump to: navigation, search
Line 44: Line 44:
 
The radius defines the size the meteor will have. If you use 20, the meteor will be a sphere of 20 blocks into each direction.
 
The radius defines the size the meteor will have. If you use 20, the meteor will be a sphere of 20 blocks into each direction.
  
Once you think you have all of your Ore Dictionaries ready for your strings, insert them into the function. The number that comes after them is the percentage they will spawn in the meteor.  
+
Once you think you have all of your Ore Dictionaries ready for your strings, insert them into the function. The number that comes after them is the percentage in relation to the maximal chance designated in the config.  
 
    
 
    
 
Example:  
 
Example:  

Revision as of 14:41, 1 February 2015

Rituals Supported

The following Rituals are supported:

  • Ritual of Binding
  • Mark of the Falling Tower

Ritual of Binding

With the Ritual of Binding you are able to transform specific items into a desired item with the power of a bit of Life Essence... and a few.. lightnings.

Example:

//Ritual of Binding Recipes
//InputStack, OutputStack
mods.bloodmagic.Binding.addRecipe(<minecraft:coal_block>, <minecraft:bedrock>);
//OutputStack
mods.bloodmagic.Binding.removeRecipe(<AWWayofTime:energySword>);

Mark of the Falling Tower

This ritual will summon a meteor down to your location - it requires a specific focus item that defines which type of meteor you call down. Every different meteor type contains different types of blocks and ores.

If you want to create a custom meteor type, you have to define its components. These components are not set by ItemStacks but by strings that consist of an ore dictionary. If an ore dictionary already exists, for example "blockCoal" you can already use it. However, if your desired block(s) do/does not have an ore dictionary yet it is easy enough to implement one via Minetweaker.

Example:

//Ore Dictionary for Demon-Type Blocks
val demonCrystal = <ore:demonCrystal>;
demonCrystal.add(<AWWayofTime:blockCrystal>); 
demonCrystal.add(<AWWayofTime:blockCrystal:1>);  

//Ore Dictionary for Nether-Type Blocks
val netherBlocks = <ore:netherBlocks>;
netherBlocks.add(<minecraft:netherrack>); 
netherBlocks.add(<minecraft:soul_sand>);
netherBlocks.add(<minecraft:glowstone>);  
 
//Ore Dictionary for Stonebrick Types
val stoneBricks = <ore:stoneBricks>;
stoneBricks.add(<minecraft:stonebrick>); 
stoneBricks.add(<minecraft:stonebrick:1>); 
stoneBricks.add(<minecraft:stonebrick:2>); 

The meteor's focus is the item you throw onto the Master Ritual Stone to perform the ritual. A few examples of Blood Magic's foci are Stone, Iron Block or a Nether Star.

The radius defines the size the meteor will have. If you use 20, the meteor will be a sphere of 20 blocks into each direction.

Once you think you have all of your Ore Dictionaries ready for your strings, insert them into the function. The number that comes after them is the percentage in relation to the maximal chance designated in the config.

Example:

//Ritual of Binding Recipes
//FocusItem, MeteorRadius, ComponentArray with ComponentStrings and ChanceNumbers
mods.bloodmagic.FallingTower.addFocus(<AWWayofTime:demonPortalMain>, 20,"demonCrystal, 5, netherBlocks, 25, blockCoal, 10, stoneBricks, 25");

It is just as easy to remove to a focus/meteor type.

Example:

 //FocusItem
mods.bloodmagic.FallingTower.removeFocus(<minecraft:nether_star>);