mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +01:00
made the animal effect require the powder to be present
This commit is contained in:
parent
d15a1455b8
commit
2c06c3d2c6
5 changed files with 9 additions and 9 deletions
|
@ -53,7 +53,7 @@ public class AnimalEffect implements IDrainSpotEffect {
|
|||
return -1;
|
||||
if (!this.bb.contains(player.getPositionVector()))
|
||||
return -1;
|
||||
if (NaturesAuraAPI.instance().isEffectPowderActive(player.world, player.getPosition(), NAME))
|
||||
if (!NaturesAuraAPI.instance().isEffectPowderActive(player.world, player.getPosition(), NAME))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public class AnimalEffect implements IDrainSpotEffect {
|
|||
for (EntityItem item : items) {
|
||||
if (item.isDead)
|
||||
continue;
|
||||
if (NaturesAuraAPI.instance().isEffectPowderActive(world, item.getPosition(), NAME))
|
||||
if (!NaturesAuraAPI.instance().isEffectPowderActive(world, item.getPosition(), NAME))
|
||||
continue;
|
||||
|
||||
ItemStack stack = item.getItem();
|
||||
|
@ -111,7 +111,7 @@ public class AnimalEffect implements IDrainSpotEffect {
|
|||
EntityAnimal first = animals.get(world.rand.nextInt(animals.size()));
|
||||
if (first.isChild() || first.isInLove())
|
||||
return;
|
||||
if (NaturesAuraAPI.instance().isEffectPowderActive(world, first.getPosition(), NAME))
|
||||
if (!NaturesAuraAPI.instance().isEffectPowderActive(world, first.getPosition(), NAME))
|
||||
return;
|
||||
|
||||
Optional<EntityAnimal> secondOptional = animals.stream()
|
||||
|
|
|
@ -17,6 +17,6 @@ public final class DrainSpotEffects {
|
|||
|
||||
NaturesAuraAPI.EFFECT_POWDERS.put(PlantBoostEffect.NAME, 0xc2f442);
|
||||
NaturesAuraAPI.EFFECT_POWDERS.put(CacheRechargeEffect.NAME, 0x1fb0d1);
|
||||
NaturesAuraAPI.EFFECT_POWDERS.put(AnimalEffect.NAME, 0xba1010);
|
||||
NaturesAuraAPI.EFFECT_POWDERS.put(AnimalEffect.NAME, 0xc842f4);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ public final class ModRecipes {
|
|||
Ingredient.fromItem(ModItems.AURA_CACHE)).register();
|
||||
new TreeRitualRecipe(new ResourceLocation(NaturesAura.MOD_ID, "animal_powder"),
|
||||
Ingredient.fromStacks(new ItemStack(Blocks.SAPLING, 1, 3)),
|
||||
ItemEffectPowder.setEffect(new ItemStack(ModItems.EFFECT_POWDER, 24), AnimalEffect.NAME), 400,
|
||||
ItemEffectPowder.setEffect(new ItemStack(ModItems.EFFECT_POWDER, 8), AnimalEffect.NAME), 400,
|
||||
Helper.blockIng(ModBlocks.GOLD_POWDER),
|
||||
Helper.blockIng(ModBlocks.GOLD_POWDER),
|
||||
Ingredient.fromItem(ModItems.SKY_INGOT),
|
||||
|
|
|
@ -76,7 +76,7 @@ item.naturesaura.infused_iron_pants.name=Botanist's Leggings
|
|||
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 Chastity
|
||||
item.naturesaura.effect_powder.naturesaura:animal.name=Powder of Fertility
|
||||
item.naturesaura.mover_cart.name=Aura Attraction Cart
|
||||
item.naturesaura.range_visualizer.name=Mystical Magnifier
|
||||
item.naturesaura.clock_hand.name=Hand of Time
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
"pages": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "When the amount of $(aura) in an area increases beyond about two thirds of the $(l:items/eye)Environmental Eye$()'s gauge, it starts to affect the $(item)animals$() in the area: Cows, sheep, pigs and the like will start $(thing)mating$() without any encouragement occasionally, draining some of the $(aura) in the process as if falling in love because of its power."
|
||||
"text": "When the amount of $(aura) in an area increases beyond about two thirds of the $(l:items/eye)Environmental Eye$()'s gauge, and there is some $(l:effects/effect_powder)Powder of Fertility$() nearby, it starts to affect the $(item)animals$() in the area: Cows, sheep, pigs and the like will start $(thing)mating$() without any encouragement occasionally, draining some of the $(aura) in the process as if falling in love because of its power."
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Additionally, $(item)Eggs$() that have been laying around on the ground as an item for a while will have a chance to $(thing)hatch$() into a chicken without needing to be thrown.$(p)Note that both of these effects will cease to occur once there are enough animals present in the area, preventing overpopulation."
|
||||
"text": "Additionally, $(item)Eggs$() that have been laying around on the ground as an item for a while will $(thing)hatch$() into a chicken without needing to be thrown.$(p)Note that both of these effects will cease to occur once there are enough animals present in the area, preventing overpopulation."
|
||||
},
|
||||
{
|
||||
"type": "naturesaura:tree_ritual",
|
||||
"recipe": "naturesaura:animal_powder",
|
||||
"text": "This effect can be inhibited using $(l:effects/effect_powder)Powder of Chastity$()."
|
||||
"text": "Creating the $(l:effects/effect_powder)Powder of Fertility$()."
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue