-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
114 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/generated/resources/data/minecraft/tags/painting_variant/placeable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"values": [ | ||
"sullysmod:unnerving_night", | ||
"sullysmod:amber" | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
src/generated/resources/data/sullysmod/loot_tables/archaeology/petrified_sapling_tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"type": "minecraft:archaeology", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "sullysmod:amber" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "sullysmod:archaeology/petrified_sapling_tree" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/com/uraneptus/sullysmod/core/data/server/loot/SMArchaeologyLoot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.uraneptus.sullysmod.core.data.server.loot; | ||
|
||
import com.uraneptus.sullysmod.SullysMod; | ||
import com.uraneptus.sullysmod.core.registry.SMBlocks; | ||
import net.minecraft.data.loot.LootTableSubProvider; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.Items; | ||
import net.minecraft.world.level.storage.loot.LootPool; | ||
import net.minecraft.world.level.storage.loot.LootTable; | ||
import net.minecraft.world.level.storage.loot.entries.LootItem; | ||
import net.minecraft.world.level.storage.loot.providers.number.ConstantValue; | ||
|
||
import java.util.function.BiConsumer; | ||
|
||
public class SMArchaeologyLoot implements LootTableSubProvider { | ||
|
||
@Override | ||
public void generate(BiConsumer<ResourceLocation, LootTable.Builder> pOutput) { | ||
//TODO wait for sully to decide on loot | ||
pOutput.accept(SullysMod.modPrefix("archaeology/petrified_sapling_tree"), LootTable.lootTable().withPool(LootPool.lootPool().setRolls(ConstantValue.exactly(1.0F)).add(LootItem.lootTableItem(SMBlocks.AMBER.get())))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ain/java/com/uraneptus/sullysmod/core/data/server/tags/SMPaintingVariantTagsProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.uraneptus.sullysmod.core.data.server.tags; | ||
|
||
import com.uraneptus.sullysmod.SullysMod; | ||
import com.uraneptus.sullysmod.core.registry.SMPaintingVariants; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.tags.PaintingVariantTagsProvider; | ||
import net.minecraft.tags.PaintingVariantTags; | ||
import net.minecraftforge.common.data.ExistingFileHelper; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class SMPaintingVariantTagsProvider extends PaintingVariantTagsProvider { | ||
|
||
public SMPaintingVariantTagsProvider(PackOutput pOutput, CompletableFuture<HolderLookup.Provider> pProvider, @Nullable ExistingFileHelper existingFileHelper) { | ||
super(pOutput, pProvider, SullysMod.MOD_ID, existingFileHelper); | ||
} | ||
|
||
protected void addTags(HolderLookup.Provider pProvider) { | ||
SMPaintingVariants.PAINTINGS.getEntries().forEach(painting -> tag(PaintingVariantTags.PLACEABLE).add(painting.getKey())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/com/uraneptus/sullysmod/core/registry/SMTreeDecoratorTypes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.uraneptus.sullysmod.core.registry; | ||
|
||
import com.uraneptus.sullysmod.SullysMod; | ||
import com.uraneptus.sullysmod.common.levelgen.PetrifiedTreeGravelDecorator; | ||
import net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecoratorType; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
import net.minecraftforge.registries.RegistryObject; | ||
|
||
public class SMTreeDecoratorTypes { | ||
public static final DeferredRegister<TreeDecoratorType<?>> TREE_DECORATORS = DeferredRegister.create(ForgeRegistries.TREE_DECORATOR_TYPES, SullysMod.MOD_ID); | ||
|
||
public static final RegistryObject<TreeDecoratorType<PetrifiedTreeGravelDecorator>> GRAVEL_DECORATOR = TREE_DECORATORS.register("petrified_gravel_decorator", () -> new TreeDecoratorType<>(PetrifiedTreeGravelDecorator.CODEC)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions
6
src/main/resources/data/minecraft/tags/painting_variant/placeable.json
This file was deleted.
Oops, something went wrong.