migrate advancements to also use new mana values
This commit is contained in:
parent
d909e50d7c
commit
bc4606fed5
2 changed files with 6 additions and 5 deletions
|
@ -4,6 +4,7 @@ import at.petrak.hexcasting.HexMod;
|
|||
import at.petrak.hexcasting.api.advancements.FailToCastGreatSpellTrigger;
|
||||
import at.petrak.hexcasting.api.advancements.OvercastTrigger;
|
||||
import at.petrak.hexcasting.api.advancements.SpendManaTrigger;
|
||||
import at.petrak.hexcasting.api.misc.ManaConstants;
|
||||
import at.petrak.hexcasting.common.items.HexItems;
|
||||
import net.minecraft.advancements.Advancement;
|
||||
import net.minecraft.advancements.DisplayInfo;
|
||||
|
@ -53,13 +54,13 @@ public class HexAdvancements extends AdvancementProvider {
|
|||
.parent(root)
|
||||
.addCriterion("waste_amt", new SpendManaTrigger.Instance(EntityPredicate.Composite.ANY,
|
||||
MinMaxBounds.Ints.ANY,
|
||||
MinMaxBounds.Ints.atLeast(89_000)))
|
||||
MinMaxBounds.Ints.atLeast(89 * ManaConstants.DUST_UNIT)))
|
||||
.save(consumer, prefix("aaa_wasteful_cast"));
|
||||
Advancement.Builder.advancement()
|
||||
.display(simple(HexItems.CHARGED_AMETHYST.get(), "big_cast", FrameType.TASK))
|
||||
.parent(root)
|
||||
.addCriterion("cast_amt", new SpendManaTrigger.Instance(EntityPredicate.Composite.ANY,
|
||||
MinMaxBounds.Ints.atLeast(6_400_000),
|
||||
MinMaxBounds.Ints.atLeast(64 * ManaConstants.CRYSTAL_UNIT),
|
||||
MinMaxBounds.Ints.ANY))
|
||||
.save(consumer, prefix("aab_big_cast"));
|
||||
|
||||
|
|
|
@ -126,15 +126,15 @@
|
|||
"advancement.hexcasting:root": "Hexcasting Research",
|
||||
"advancement.hexcasting:root.desc": "Enter an amethyst geode deep underground, a concentrated source of media.",
|
||||
"advancement.hexcasting:enlightenment": "Achieve Enlightenment",
|
||||
"advancement.hexcasting:enlightenment.desc": "Go nearly insane from casting a hexcasting from almost all of your health.",
|
||||
"advancement.hexcasting:enlightenment.desc": "Go nearly insane from casting a hex from almost all of your health.",
|
||||
"advancement.hexcasting:wasteful_cast": "Waste Not...",
|
||||
"advancement.hexcasting:wasteful_cast.desc": "Waste a large amount of Media when casting a hexcasting.",
|
||||
"advancement.hexcasting:wasteful_cast.desc": "Waste a large amount of Media when casting a hex.",
|
||||
"advancement.hexcasting:big_cast": "... Want Not",
|
||||
"advancement.hexcasting:big_cast.desc": "Cast a spell requiring a truly huge amount of Media.",
|
||||
"advancement.hexcasting:y_u_no_cast_angy": "Blind Diversion",
|
||||
"advancement.hexcasting:y_u_no_cast_angy.desc": "Try to cast a spell from a scroll, but fail.",
|
||||
"advancement.hexcasting:opened_eyes": "Opened Eyes",
|
||||
"advancement.hexcasting:opened_eyes.desc": "Have nature take just a little of your mind as payment for a hexcasting.",
|
||||
"advancement.hexcasting:opened_eyes.desc": "Have nature take just a little of your mind as payment for a hex.",
|
||||
|
||||
"stat.hexcasting.mana_used": "Media consumed (in dust)",
|
||||
"stat.hexcasting.mana_overcasted": "Media overcast (in dust)",
|
||||
|
|
Loading…
Reference in a new issue