chore: purge MCreator remnants (project is now fully hand-maintained)
- Remove 'MCreator note: REGENERATED' headers and user-code-block markers (no regeneration step exists anymore) - Remove MCreator mentions from mod credits/authors - AGENTS.md: replace the MCreator code-preservation rules with a code ownership section
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Custom Ore Gem - Developer Guide for Agents
|
||||
|
||||
This repository is a Minecraft **NeoForge 1.21.1** mod created with **MCreator**. Agents must follow these strict guidelines to ensure build stability and code preservation.
|
||||
This repository is a Minecraft **NeoForge 1.21.1** mod. It was originally scaffolded with MCreator but is now **fully hand-maintained** — all files are safe to edit. Agents must follow these guidelines to ensure build stability.
|
||||
|
||||
## 1. Build & Test Commands
|
||||
|
||||
@@ -49,27 +49,14 @@ Use the Gradle wrapper for all operations. Ensure you are using Java 21 (NeoForg
|
||||
./gradlew clean
|
||||
```
|
||||
|
||||
## 2. MCreator & Code Preservation
|
||||
## 2. Code Ownership
|
||||
|
||||
**CRITICAL:** This project is partially generated by MCreator.
|
||||
- **Generated Files:** Many files in `src/main/java` are regenerated on every build or MCreator export.
|
||||
- **User Code Blocks:** You **MUST** only edit code within designated user code blocks in these files.
|
||||
```java
|
||||
// Start of user code block [block_name]
|
||||
// ... YOUR CODE HERE ...
|
||||
// End of user code block [block_name]
|
||||
```
|
||||
- If a file does not have these blocks, assume it is **UNSAFE** to edit unless you created it yourself.
|
||||
|
||||
- **Safe Files:**
|
||||
- Files strictly created by you (e.g., in `src/test/java`).
|
||||
- New utility classes or event handlers not managed by MCreator.
|
||||
|
||||
- **Do NOT** directly modify the following unless inside a user block:
|
||||
- `CustomOreGenModBlocks.java`
|
||||
- `CustomOreGenModItems.java`
|
||||
- `CustomOreGenModTabs.java`
|
||||
- Any file in `net.mcreator.customoregen.procedures` (unless explicitly safe).
|
||||
The project was originally generated by MCreator but is no longer maintained with it
|
||||
(MCreator is not installed anymore; the build is plain Gradle + NeoForge ModDev).
|
||||
- **Every file** in `src/main/java` and `src/test/java` is hand-maintained and safe to edit.
|
||||
- The historical "user code block" markers were removed; there is no regeneration step.
|
||||
- Keep MCreator-era naming quirks (e.g. `SharddiamondpickaxeItem`) unless a rename is
|
||||
explicitly requested, to keep diffs readable.
|
||||
|
||||
## 3. Code Style & Conventions
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ mod_id=custom_ore_gen
|
||||
mod_name=Custom Ore Gen
|
||||
mod_group_id=com.aulyrius.custom_ore_gen
|
||||
mod_license=MIT
|
||||
mod_authors=Aulyrius crée via MCreator
|
||||
mod_authors=Aulyrius
|
||||
mod_description=Changement de la distribution des ressources sur Minecraft, pour NeoForge 1.21.1
|
||||
|
||||
# Minecraft and NeoForge Versions
|
||||
|
||||
@@ -30,10 +30,8 @@ public class CustomOreGenMod {
|
||||
public static final DeferredRegister<MapCodec<? extends IGlobalLootModifier>> LOOT_MODIFIERS = DeferredRegister.create(NeoForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS, MODID);
|
||||
|
||||
public CustomOreGenMod(IEventBus modEventBus, ModContainer container) {
|
||||
// Start of user code block mod constructor
|
||||
container.registerConfig(ModConfig.Type.COMMON, ModConfigs.SPEC);
|
||||
LOOT_MODIFIERS.register("custom_ore_drops", () -> CustomOreLootModifier.CODEC);
|
||||
// End of user code block mod constructor
|
||||
|
||||
CustomOreGenModBlocks.REGISTRY.register(modEventBus);
|
||||
CustomOreGenModItems.REGISTRY.register(modEventBus);
|
||||
@@ -42,13 +40,9 @@ public class CustomOreGenMod {
|
||||
CustomOreGenModTabs.REGISTRY.register(modEventBus);
|
||||
LOOT_MODIFIERS.register(modEventBus);
|
||||
|
||||
// Start of user code block mod init
|
||||
WorldGenRegistration.BIOME_MODIFIER_SERIALIZERS.register(modEventBus);
|
||||
WorldGenRegistration.DENSITY_FUNCTION_TYPES.register(modEventBus);
|
||||
WorldGenRegistration.PLACEMENT_MODIFIERS.register(modEventBus);
|
||||
// End of user code block mod init
|
||||
}
|
||||
|
||||
// Start of user code block mod methods
|
||||
// End of user code block mod methods
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
|
||||
/*
|
||||
* MCreator note: This file will be REGENERATED on each build.
|
||||
*/
|
||||
package net.mcreator.customoregen.init;
|
||||
|
||||
import net.neoforged.neoforge.registries.DeferredRegister;
|
||||
@@ -48,6 +44,4 @@ public class CustomOreGenModBlocks {
|
||||
public static final Supplier<Block> LOWEREMERALDORE = REGISTRY.register("loweremeraldore", () -> new LoweremeraldoreBlock());
|
||||
public static final Supplier<Block> IRONORE = REGISTRY.register("ironore", () -> new IronoreBlock());
|
||||
public static final Supplier<Block> DEEPSLATEIRONORE = REGISTRY.register("deepslateironore", () -> new DeepslateironoreBlock());
|
||||
// Start of user code block custom blocks
|
||||
// End of user code block custom blocks
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
|
||||
/*
|
||||
* MCreator note: This file will be REGENERATED on each build.
|
||||
*/
|
||||
package net.mcreator.customoregen.init;
|
||||
|
||||
import net.neoforged.neoforge.registries.DeferredRegister;
|
||||
@@ -64,7 +60,6 @@ public class CustomOreGenModItems {
|
||||
public static final Supplier<Item> DEEPSLATEIRONORE = REGISTRY.register("deepslateironore",
|
||||
() -> new BlockItem(CustomOreGenModBlocks.DEEPSLATEIRONORE.get(), new Item.Properties()));
|
||||
|
||||
// Start of user code block custom items
|
||||
public static final Supplier<Item> ORE_BIOME_FINDER = REGISTRY.register("ore_biome_finder", () -> new OreBiomeFinderItem());
|
||||
|
||||
// Diamond Shard Armor
|
||||
@@ -75,7 +70,6 @@ public class CustomOreGenModItems {
|
||||
|
||||
// Diamond Shard Paxel
|
||||
public static final Supplier<Item> SHARDDIAMONDPAXEL = REGISTRY.register("sharddiamondpaxel", () -> new SharddiamondpaxelItem());
|
||||
// End of user code block custom items
|
||||
|
||||
// Tool items
|
||||
public static final Supplier<Item> SHARDDIAMONDPICKAXE = REGISTRY.register("sharddiamondpickaxe", () -> new SharddiamondpickaxeItem());
|
||||
|
||||
@@ -20,7 +20,6 @@ import java.util.function.Supplier;
|
||||
public class CustomOreGenModTabs {
|
||||
public static final DeferredRegister<CreativeModeTab> REGISTRY = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, CustomOreGenMod.MODID);
|
||||
|
||||
// Start of user code block tabs
|
||||
public static final Supplier<CreativeModeTab> CUSTOM_ORE_GEN_TAB = REGISTRY.register("custom_ore_gen_tab",
|
||||
() -> CreativeModeTab.builder()
|
||||
.title(Component.translatable("itemGroup.custom_ore_gen"))
|
||||
@@ -60,7 +59,6 @@ public class CustomOreGenModTabs {
|
||||
output.accept(CustomOreGenModItems.SHARDDIAMONDBOOTS.get());
|
||||
})
|
||||
.build());
|
||||
// End of user code block tabs
|
||||
|
||||
@SubscribeEvent
|
||||
public static void buildTabContentsVanilla(BuildCreativeModeTabContentsEvent tabData) {
|
||||
|
||||
@@ -7,12 +7,10 @@ modId="${mod_id}"
|
||||
version="${mod_version}"
|
||||
displayName="${mod_name}"
|
||||
displayURL="https://lanro.eu"
|
||||
credits="Created using mod maker MCreator - https://mcreator.net/about"
|
||||
credits="Aulyrius"
|
||||
authors="${mod_authors}"
|
||||
description='''${mod_description}'''
|
||||
|
||||
# Start of user code block mod configuration
|
||||
# End of user code block mod configuration
|
||||
|
||||
[[dependencies."${mod_id}"]]
|
||||
modId="minecraft"
|
||||
@@ -22,7 +20,6 @@ description='''${mod_description}'''
|
||||
side="BOTH"
|
||||
|
||||
|
||||
# Start of user code block dependencies configuration
|
||||
|
||||
[[dependencies."${mod_id}"]]
|
||||
modId="mr_lithosphere"
|
||||
@@ -37,7 +34,6 @@ description='''${mod_description}'''
|
||||
# data-only recipes (data/create, data/mekanism) which simply no-op if the mod is
|
||||
# absent. Declaring them here with mandatory=false + versionRange caused NeoForge to
|
||||
# fail loading when the mods were not installed (see commit history).
|
||||
# End of user code block dependencies configuration
|
||||
|
||||
# Mixin configuration
|
||||
[[mixins]]
|
||||
|
||||
Reference in New Issue
Block a user