Add loottables, advancement and mineable tag to essence stuff

This commit is contained in:
DBotThePony 2023-03-13 18:15:47 +07:00
parent 40da26033d
commit 398bff70b8
Signed by: DBot
GPG Key ID: DCC23B5715498507
3 changed files with 18 additions and 0 deletions

View File

@ -537,4 +537,20 @@ fun addAdvancements(serializer: Consumer<Advancement>, existingFileHelper: Exist
.addCriterion("pill3", criterion(MItems.PILL_HUMANE))
.addCriterion("pill4", criterion(MItems.PILL_OBLIVION))
.save(serializer, modLocation("regular/all_pills"), existingFileHelper)
AdvancementBuilder()
.parent(root)
.display(
itemStack = ItemStack(MItems.ESSENCE_CAPSULE),
title = translation.add("essence_capsule", "Forgot To Forget") {
russian("Я забыл забыть")
},
description = translation.add("essence_capsule.desc", "Recover Essence Capsule. Memories...") {
russian("Верните капсулу эссенции. Воспоминания...")
},
)
.requirements(RequirementsStrategy.OR)
.addCriterion("essence1", criterion(MItems.ESSENCE_CAPSULE))
.addCriterion("essence2", criterion(MItems.ESSENCE_DRIVE))
.save(serializer, modLocation("regular/essence_capsule"), existingFileHelper)
}

View File

@ -136,6 +136,7 @@ fun addLootTables(lootTables: LootTables) {
}
lootTables.tile(MBlocks.COBBLESTONE_GENERATOR)
lootTables.tile(MBlocks.ESSENCE_STORAGE)
lootTables.tile(MBlocks.ENERGY_SERVO)
lootTables.tile(MBlocks.ENERGY_COUNTER)

View File

@ -171,6 +171,7 @@ fun addTags(tagsProvider: TagsProvider) {
MBlocks.ENGINE,
MBlocks.HOLO_SIGN,
MBlocks.COBBLESTONE_GENERATOR,
MBlocks.ESSENCE_STORAGE,
), Tiers.IRON)
tagsProvider.requiresPickaxe(MBlocks.TRITANIUM_ANVIL, Tiers.IRON)