From e9c336915dec951a55932a5c1504766fdc8640bf Mon Sep 17 00:00:00 2001 From: Sergeant Acoustic Date: Tue, 4 Nov 2025 20:04:45 +0000 Subject: [PATCH] Initial attempt at modifying golden paxel Doesn't actually override the paxel's attributes, but hopefully at least brings us closer to figuring this out at some point --- build.gradle | 15 +++++++++++++++ .../com/nearmisses/mc_rebalance/MC_Rebalance.java | 5 +++++ src/main/resources/META-INF/mods.toml | 7 +++++++ 3 files changed, 27 insertions(+) diff --git a/build.gradle b/build.gradle index 985c49d..2381a3a 100644 --- a/build.gradle +++ b/build.gradle @@ -121,6 +121,19 @@ repositories { // flatDir { // dir 'libs' // } + // Other repositories can go above or below Modrinth's. We don't need priority :) + exclusiveContent { + forRepository { + maven { + name = "Modrinth" + url = "https://api.modrinth.com/maven" + } + } + forRepositories(fg.repository) // Only add this if you're using ForgeGradle, otherwise remove this line + filter { + includeGroup "maven.modrinth" + } + } } dependencies { @@ -131,6 +144,8 @@ dependencies { // then special handling is done to allow a setup of a vanilla dependency without the use of an external repository. minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" + implementation fg.deobf('maven.modrinth:paxels-for-dummies:I4zGB3WZ') + // Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}") diff --git a/src/main/java/com/nearmisses/mc_rebalance/MC_Rebalance.java b/src/main/java/com/nearmisses/mc_rebalance/MC_Rebalance.java index 4574e91..7505493 100644 --- a/src/main/java/com/nearmisses/mc_rebalance/MC_Rebalance.java +++ b/src/main/java/com/nearmisses/mc_rebalance/MC_Rebalance.java @@ -33,6 +33,7 @@ import org.slf4j.Logger; //import net.minecraft.world.item.PickaxeItem; import net.minecraft.world.item.*; +import net.gamingeinstein.paxelsfordummies.item.PaxelItem; //import net.minecraft.world.item.Tier; //import net.minecraft.world.item.Tiers; @@ -60,6 +61,8 @@ public class MC_Rebalance public static final DeferredRegister VANILLA_BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, "minecraft"); public static final DeferredRegister VANILLA_ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, "minecraft"); + public static final DeferredRegister PAXELS = DeferredRegister.create(ForgeRegistries.ITEMS, "paxelsfordummies"); + public static final RegistryObject OBSIDIAN_BLOCK = VANILLA_BLOCKS.register("obsidian", () -> new Block(BlockBehaviour.Properties.copy(Blocks.OBSIDIAN).strength(30))); public static final RegistryObject golden_pick = VANILLA_ITEMS.register("golden_pickaxe",() -> new PickaxeItem(AltTiers.Gold, 1, -2.8f, new Item.Properties()) ); @@ -73,6 +76,8 @@ public class MC_Rebalance public static final RegistryObject golden_leggings = VANILLA_ITEMS.register("golden_leggings",() -> new ArmorItem(AltArmourTiers.Gold,ArmorItem.Type.LEGGINGS,new Item.Properties())); public static final RegistryObject golden_boots = VANILLA_ITEMS.register("golden_boots",() -> new ArmorItem(AltArmourTiers.Gold,ArmorItem.Type.BOOTS,new Item.Properties())); + public static final RegistryObject GOLDEN_PAXEL = PAXELS.register("golden_paxel",() -> new PaxelItem(5.0f, -3.0f, AltTiers.Gold, new Item.Properties())); + public static final RegistryObject diamond_pick = VANILLA_ITEMS.register("diamond_pickaxe",() -> new PickaxeItem(AltTiers.Diamond, 1, -2.8f, new Item.Properties()) ); public static final RegistryObject diamond_sword = VANILLA_ITEMS.register("diamond_sword",() -> new SwordItem(AltTiers.Diamond, 3, -2.4f, new Item.Properties())); public static final RegistryObject diamond_axe = VANILLA_ITEMS.register("diamond_axe",() -> new AxeItem(AltTiers.Diamond, 7, -3.0f, new Item.Properties()) ); diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 86cc3ed..ac1d593 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -66,6 +66,13 @@ description='''${mod_description}''' ordering="NONE" side="BOTH" +[[dependencies.${mod_id}]] + modId="net.gamingeinstein.paxelsfordummies" + mandatory=false + versionRange="0.1.0" + ordering="AFTER" + side="BOTH" + # Features are specific properties of the game environment, that you may want to declare you require. This example declares # that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't # stop your mod loading on the server for example.