making mod mine
This commit is contained in:
parent
8e0362abe1
commit
8ec171da3d
@ -1,4 +1,7 @@
|
|||||||
# TODO:
|
# TODO:
|
||||||
|
- [ ] Modrith > CurseForge dependencies import
|
||||||
|
- [ ] Test JDBC drivers funcitonality
|
||||||
|
|
||||||
|
|
||||||
## Sources
|
## Sources
|
||||||
- https://youtube.com/playlist?list=PLKGarocXCE1GspJBXQEGuhazihZCSSLmK&si=dQ1K8-c62IYXfUfl
|
- https://youtube.com/playlist?list=PLKGarocXCE1GspJBXQEGuhazihZCSSLmK&si=dQ1K8-c62IYXfUfl
|
||||||
|
|||||||
@ -42,9 +42,9 @@ mapping_version=2024.11.17-1.21.1
|
|||||||
|
|
||||||
# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
|
# 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.
|
# Must match the String constant located in the main mod class annotated with @Mod.
|
||||||
mod_id=examplemod
|
mod_id=minesync
|
||||||
# The human-readable display name for the mod.
|
# The human-readable display name for the mod.
|
||||||
mod_name=Example Mod
|
mod_name=MineSync
|
||||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
# 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=All Rights Reserved
|
||||||
# The mod version. See https://semver.org/
|
# The mod version. See https://semver.org/
|
||||||
@ -52,9 +52,8 @@ mod_version=1.0.0
|
|||||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
# 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.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
mod_group_id=com.example.examplemod
|
mod_group_id=net.ggodot.minesync
|
||||||
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
|
# 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=ggodot
|
||||||
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
|
# 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=To sync player data to database, for minecraft networks.
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://aka.ms/MinecraftEULA).
|
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://aka.ms/MinecraftEULA).
|
||||||
#Sun Sep 28 00:30:46 CEST 2025
|
#Sun Sep 28 00:30:46 CEST 2025
|
||||||
eula=false
|
eula=true
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
package com.example.examplemod;
|
package net.ggodot.minesync;
|
||||||
|
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.world.item.Item;
|
import net.minecraft.world.item.Item;
|
||||||
@ -15,7 +15,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.
|
// 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
|
// Demonstrates how to use Forge's config APIs
|
||||||
@Mod.EventBusSubscriber(modid = ExampleMod.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
@Mod.EventBusSubscriber(modid = MineSync.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||||
public class Config
|
public class Config
|
||||||
{
|
{
|
||||||
private static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder();
|
private static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder();
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.example.examplemod;
|
package net.ggodot.minesync;
|
||||||
|
|
||||||
import com.mojang.logging.LogUtils;
|
import com.mojang.logging.LogUtils;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
@ -29,11 +29,11 @@ import net.minecraftforge.registries.RegistryObject;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
// The value here should match an entry in the META-INF/mods.toml file
|
// The value here should match an entry in the META-INF/mods.toml file
|
||||||
@Mod(ExampleMod.MODID)
|
@Mod(MineSync.MODID)
|
||||||
public class ExampleMod
|
public class MineSync
|
||||||
{
|
{
|
||||||
// Define mod id in a common place for everything to reference
|
// Define mod id in a common place for everything to reference
|
||||||
public static final String MODID = "examplemod";
|
public static final String MODID = "minesync";
|
||||||
// Directly reference a slf4j logger
|
// Directly reference a slf4j logger
|
||||||
private static final Logger LOGGER = LogUtils.getLogger();
|
private static final Logger LOGGER = LogUtils.getLogger();
|
||||||
// Create a Deferred Register to hold Blocks which will all be registered under the "examplemod" namespace
|
// Create a Deferred Register to hold Blocks which will all be registered under the "examplemod" namespace
|
||||||
@ -60,7 +60,7 @@ public class ExampleMod
|
|||||||
output.accept(EXAMPLE_ITEM.get()); // Add the example item to the tab. For your own tabs, this method is preferred over the event
|
output.accept(EXAMPLE_ITEM.get()); // Add the example item to the tab. For your own tabs, this method is preferred over the event
|
||||||
}).build());
|
}).build());
|
||||||
|
|
||||||
public ExampleMod(FMLJavaModLoadingContext context)
|
public MineSync(FMLJavaModLoadingContext context)
|
||||||
{
|
{
|
||||||
IEventBus modEventBus = context.getModEventBus();
|
IEventBus modEventBus = context.getModEventBus();
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user