document the ore spawn effect

This commit is contained in:
Ellpeck 2019-02-22 12:43:32 +01:00
parent c53229cd75
commit e78472570a
4 changed files with 32 additions and 2 deletions

View file

@ -98,6 +98,7 @@ public class OreSpawnEffect implements IDrainSpotEffect {
if (block != requiredBlock)
continue;
outer:
while (true) {
WeightedOre ore = WeightedRandom.getRandomItem(world.rand, ores, totalWeight);
List<ItemStack> stacks = OreDictionary.getOres(ore.name, false);
@ -115,8 +116,7 @@ public class OreSpawnEffect implements IDrainSpotEffect {
int toDrain = (20000 - ore.itemWeight * 2) * 2;
BlockPos highestSpot = IAuraChunk.getHighestSpot(world, orePos, 30, pos);
IAuraChunk.getAuraChunk(world, highestSpot).drainAura(highestSpot, toDrain);
return;
break outer;
}
}
}

View file

@ -9,6 +9,7 @@ import de.ellpeck.naturesaura.api.recipes.ing.NBTIngredient;
import de.ellpeck.naturesaura.blocks.ModBlocks;
import de.ellpeck.naturesaura.chunk.effect.AnimalEffect;
import de.ellpeck.naturesaura.chunk.effect.CacheRechargeEffect;
import de.ellpeck.naturesaura.chunk.effect.OreSpawnEffect;
import de.ellpeck.naturesaura.chunk.effect.PlantBoostEffect;
import de.ellpeck.naturesaura.items.ItemAuraBottle;
import de.ellpeck.naturesaura.items.ItemEffectPowder;
@ -108,6 +109,13 @@ public final class ModRecipes {
Helper.blockIng(ModBlocks.GOLD_POWDER),
Ingredient.fromItem(ModItems.SKY_INGOT),
Ingredient.fromItem(Items.EGG)).register();
new TreeRitualRecipe(new ResourceLocation(NaturesAura.MOD_ID, "ore_spawn_powder"),
Ingredient.fromStacks(new ItemStack(Blocks.SAPLING)),
ItemEffectPowder.setEffect(new ItemStack(ModItems.EFFECT_POWDER, 4), OreSpawnEffect.NAME), 400,
Helper.blockIng(ModBlocks.GOLD_POWDER),
Helper.blockIng(ModBlocks.GOLD_POWDER),
Helper.blockIng(Blocks.DIAMOND_ORE),
Helper.blockIng(Blocks.REDSTONE_ORE)).register();
new TreeRitualRecipe(new ResourceLocation(NaturesAura.MOD_ID, "token_joy"),
Helper.blockIng(Blocks.SAPLING), new ItemStack(ModItems.TOKEN_JOY, 2), 200,
new NBTIngredient(ItemAuraBottle.setType(new ItemStack(ModItems.AURA_BOTTLE), NaturesAuraAPI.TYPE_OVERWORLD)),

View file

@ -79,6 +79,7 @@ item.naturesaura.infused_iron_shoes.name=Botanist's Shoes
item.naturesaura.effect_powder.naturesaura:plant_boost.name=Powder of Steady Growth
item.naturesaura.effect_powder.naturesaura:cache_recharge.name=Powder of no Storage
item.naturesaura.effect_powder.naturesaura:animal.name=Powder of Fertility
item.naturesaura.effect_powder.naturesaura:ore_spawn.name=Powder of the Bountiful Core
item.naturesaura.mover_cart.name=Aura Attraction Cart
item.naturesaura.range_visualizer.name=Mystical Magnifier
item.naturesaura.clock_hand.name=Hand of Time

View file

@ -0,0 +1,21 @@
{
"name": "Mineral Amassing",
"icon": "minecraft:diamond_ore",
"category": "effects",
"advancement": "naturesaura:positive_imbalance",
"pages": [
{
"type": "text",
"text": "Using the $(l:creating/generator_limit_remover)Creational Catalyst$(), $(aura) can be created beyond the point visible to the $(l:items/eye)Environmental Eye$(). This capability allows for a higher tier of imbalance effect to happen: $(item)Mineral Amassing$() will start occuring, provided there is a bit of $(l:effects/effect_powder)Powder of the Bountiful Core$() around."
},
{
"type": "text",
"text": "$(thing)Ores$() of varying rarities will start appearing in $(item)stone$() blocks in the overworld and $(item)netherrack$() blocks in the nether and, expectedly, quite a large amount of the natural $(aura) will be drained while these ores are being conjured.$(p)Of course, creational capabilities like this could be used for some sort of automation, maybe making use of blocks like the $(l:using/field_creator)Aura Field Creator$()."
},
{
"type": "naturesaura:tree_ritual",
"recipe": "naturesaura:ore_spawn_powder",
"text": "Creating the $(l:effects/effect_powder)Powder of the Bountiful Core$()."
}
]
}