Skip to content

Commit

Permalink
correct plains_small graveyard structure
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Oct 29, 2024
1 parent 1e69b2a commit 139fb2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/galena/doom_and_gloom/DoomAndGloom.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import net.minecraft.world.level.ItemLike;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.levelgen.Heightmap;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.common.loot.IGlobalLootModifier;
import net.minecraftforge.common.util.MutableHashedLinkedMap;
Expand Down Expand Up @@ -81,13 +82,15 @@ public static ResourceLocation modLoc(String location) {

public DoomAndGloom() {
final IEventBus modBus = Bus.MOD.bus().get();
final IEventBus forgeBus = MinecraftForge.EVENT_BUS;

DGConfig.register();

modBus.addListener(this::gatherData);
modBus.addListener(this::buildCreativeModeTabContents);
modBus.addListener(this::registerAttributes);
modBus.addListener(this::registerSpawnPlacements);
forgeBus.addListener(this::onServerStart);

LOOT_MODIFIERS.register("add_item", () -> AddItemLootModifier.CODEC);

Expand Down Expand Up @@ -154,12 +157,10 @@ public void gatherData(GatherDataEvent event) {
}


@SubscribeEvent
public void onServerStart(ServerAboutToStartEvent event) {
VillageStructureModifier.setup(event.getServer().registryAccess());
}

@SubscribeEvent
public void buildCreativeModeTabContents(BuildCreativeModeTabContentsEvent event) {
ResourceKey<CreativeModeTab> tab = event.getTabKey();
MutableHashedLinkedMap<ItemStack, CreativeModeTab.TabVisibility> entries = event.getEntries();
Expand Down
Binary file not shown.

0 comments on commit 139fb2c

Please sign in to comment.