Compare commits

...

1 commit

Author SHA1 Message Date
Sergeant Acoustic e9c336915d 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
2025-11-04 20:04:45 +00:00
3 changed files with 27 additions and 0 deletions

View file

@ -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}")

View file

@ -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<Block> VANILLA_BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, "minecraft");
public static final DeferredRegister<Item> VANILLA_ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, "minecraft");
public static final DeferredRegister<Item> PAXELS = DeferredRegister.create(ForgeRegistries.ITEMS, "paxelsfordummies");
public static final RegistryObject<Block> OBSIDIAN_BLOCK = VANILLA_BLOCKS.register("obsidian", () -> new Block(BlockBehaviour.Properties.copy(Blocks.OBSIDIAN).strength(30)));
public static final RegistryObject<Item> 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<Item> golden_leggings = VANILLA_ITEMS.register("golden_leggings",() -> new ArmorItem(AltArmourTiers.Gold,ArmorItem.Type.LEGGINGS,new Item.Properties()));
public static final RegistryObject<Item> golden_boots = VANILLA_ITEMS.register("golden_boots",() -> new ArmorItem(AltArmourTiers.Gold,ArmorItem.Type.BOOTS,new Item.Properties()));
public static final RegistryObject<Item> GOLDEN_PAXEL = PAXELS.register("golden_paxel",() -> new PaxelItem(5.0f, -3.0f, AltTiers.Gold, new Item.Properties()));
public static final RegistryObject<Item> diamond_pick = VANILLA_ITEMS.register("diamond_pickaxe",() -> new PickaxeItem(AltTiers.Diamond, 1, -2.8f, new Item.Properties()) );
public static final RegistryObject<Item> diamond_sword = VANILLA_ITEMS.register("diamond_sword",() -> new SwordItem(AltTiers.Diamond, 3, -2.4f, new Item.Properties()));
public static final RegistryObject<Item> diamond_axe = VANILLA_ITEMS.register("diamond_axe",() -> new AxeItem(AltTiers.Diamond, 7, -3.0f, new Item.Properties()) );

View file

@ -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.