Skip to content

Commit

Permalink
i really hope he commited the right shit
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Dec 10, 2024
1 parent 3d5611d commit 60486e6
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 144 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ loader_version_range=[4,)

# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
# Must match the String constant located in the main mod class annotated with @Mod.
mod_id=examplemod
mod_id=doomstation
# The human-readable display name for the mod.
mod_name=Example Mod
mod_name=DoomStation
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=All Rights Reserved
mod_license=GPL-3.0
# The mod version. See https://semver.org/
mod_version=1.0.0
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
mod_group_id=com.example.examplemod
mod_group_id=com.portingdeadmods.doomstation
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
mod_authors=YourNameHere, OtherNameHere
mod_authors=PortingDeadMods
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
mod_description=Example mod description.\nNewline characters can be used and will be replaced properly.
mod_description=Run Doom in Minecraft
136 changes: 0 additions & 136 deletions src/main/java/com/example/examplemod/ExampleMod.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.examplemod;
package com.portingdeadmods.doomstation;

import java.util.List;
import java.util.Set;
Expand All @@ -14,7 +14,7 @@

// An example config class. This is not required, but it's a good idea to have one to keep your config organized.
// Demonstrates how to use Neo's config APIs
@EventBusSubscriber(modid = ExampleMod.MODID, bus = EventBusSubscriber.Bus.MOD)
@EventBusSubscriber(modid = DSMain.MODID, bus = EventBusSubscriber.Bus.MOD)
public class Config
{
private static final ModConfigSpec.Builder BUILDER = new ModConfigSpec.Builder();
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/portingdeadmods/doomstation/DSMain.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.portingdeadmods.doomstation;

import com.portingdeadmods.doomstation.registry.RegisterStuff;
import org.slf4j.Logger;

import com.mojang.logging.LogUtils;

import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.common.Mod;

@Mod(DSMain.MODID)
public class DSMain
{
public static final String MODID = "doomstation";
private static final Logger LOGGER = LogUtils.getLogger();

public DSMain(IEventBus modEventBus, ModContainer modContainer) {
RegisterStuff.CREATIVE_MODE_TABS.register(modEventBus);
RegisterStuff.ITEMS.register(modEventBus);
//modContainer.registerConfig(ModConfig.Type.COMMON, Config.SPEC);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.portingdeadmods.doomstation.content.item;

import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;

public class DoomStationItem extends Item {
public DoomStationItem(Properties properties) {
super(properties);
}

@Override
public int getMaxStackSize(ItemStack stack) {
return 1;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.portingdeadmods.doomstation.registry;
import com.portingdeadmods.doomstation.content.item.DoomStationItem;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredItem;
import net.neoforged.neoforge.registries.DeferredRegister;

import static com.portingdeadmods.doomstation.DSMain.MODID;

public class RegisterStuff {

public static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MODID);

public static final DeferredItem<DoomStationItem> DOOM_STATION = ITEMS.register("doom_station", () -> new DoomStationItem(new Item.Properties()));

public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, MODID);

public static final DeferredHolder<CreativeModeTab, CreativeModeTab> DOOM_TAB = CREATIVE_MODE_TABS.register("doomstation", () -> CreativeModeTab.builder()
.title(Component.literal("DoomStation"))
.icon(() -> DOOM_STATION.get().getDefaultInstance())
.displayItems((parameters, output) -> {
output.accept(DOOM_STATION.get());
}).build());

}

2 comments on commit 60486e6

@ReclipseTheOne
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can hope xd

@Leclowndu93150
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l bozo kys

Please sign in to comment.