Rename tutorial mod to nugget mod and update related configurations
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package xyz.sillyangel.tutorialmod;
|
||||
package xyz.sillyangel.nuggetmod;
|
||||
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraftforge.common.ForgeConfigSpec;
|
||||
@@ -13,7 +14,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
// 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 Forge's config APIs
|
||||
@Mod.EventBusSubscriber(modid = TutorialMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||
@Mod.EventBusSubscriber(modid = NuggetMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||
public class Config
|
||||
{
|
||||
private static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder();
|
||||
@@ -1,4 +1,4 @@
|
||||
package xyz.sillyangel.tutorialmod;
|
||||
package xyz.sillyangel.nuggetmod;
|
||||
|
||||
import com.mojang.logging.LogUtils;
|
||||
import net.minecraft.world.item.CreativeModeTabs;
|
||||
@@ -15,18 +15,18 @@ import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
import org.slf4j.Logger;
|
||||
import xyz.sillyangel.tutorialmod.item.ModItems;
|
||||
import xyz.sillyangel.nuggetmod.item.ModItems;
|
||||
|
||||
// Very important Comment
|
||||
// The value here should match an entry in the META-INF/mods.toml file
|
||||
@Mod(TutorialMod.MOD_ID)
|
||||
public class TutorialMod {
|
||||
@Mod(xyz.sillyangel.nuggetmod.NuggetMod.MOD_ID)
|
||||
public class NuggetMod {
|
||||
// Define mod id in a common place for everything to reference
|
||||
public static final String MOD_ID = "tutorialmod";
|
||||
public static final String MOD_ID = "nuggetmod";
|
||||
// Directly reference a slf4j logger
|
||||
public static final Logger LOGGER = LogUtils.getLogger();
|
||||
|
||||
public TutorialMod() {
|
||||
public NuggetMod() {
|
||||
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||
modEventBus.addListener(this::commonSetup);
|
||||
// Register ourselves for server and other game events we are interested in
|
||||
@@ -1,6 +1,6 @@
|
||||
package xyz.sillyangel.tutorialmod.item;
|
||||
package xyz.sillyangel.nuggetmod.item;
|
||||
|
||||
import xyz.sillyangel.tutorialmod.TutorialMod;
|
||||
import xyz.sillyangel.nuggetmod.NuggetMod;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
import net.minecraftforge.registries.DeferredRegister;
|
||||
@@ -9,7 +9,7 @@ import net.minecraftforge.registries.RegistryObject;
|
||||
|
||||
public class ModItems {
|
||||
public static final DeferredRegister<Item> ITEMS =
|
||||
DeferredRegister.create(ForgeRegistries.ITEMS, TutorialMod.MOD_ID);
|
||||
DeferredRegister.create(ForgeRegistries.ITEMS, NuggetMod.MOD_ID);
|
||||
|
||||
public static final RegistryObject<Item> NUGGET = ITEMS.register("nugget",
|
||||
() -> new Item(new Item.Properties()));
|
||||
3
src/main/resources/assets/nuggetmod/lang/en_us.json
Normal file
3
src/main/resources/assets/nuggetmod/lang/en_us.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"item.nuggetmod.nugget": "nugget"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "tutorialmod:item/nugget"
|
||||
"layer0": "nuggetmod:item/nugget"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"item.tutorialmod.nugget": "nugget"
|
||||
}
|
||||
Reference in New Issue
Block a user