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
This commit is contained in:
parent
bc38069ec9
commit
e9c336915d
15
build.gradle
15
build.gradle
|
|
@ -121,6 +121,19 @@ repositories {
|
||||||
// flatDir {
|
// flatDir {
|
||||||
// dir 'libs'
|
// 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 {
|
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.
|
// 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}"
|
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
|
// 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
|
// 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}")
|
// compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}")
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import org.slf4j.Logger;
|
||||||
|
|
||||||
//import net.minecraft.world.item.PickaxeItem;
|
//import net.minecraft.world.item.PickaxeItem;
|
||||||
import net.minecraft.world.item.*;
|
import net.minecraft.world.item.*;
|
||||||
|
import net.gamingeinstein.paxelsfordummies.item.PaxelItem;
|
||||||
//import net.minecraft.world.item.Tier;
|
//import net.minecraft.world.item.Tier;
|
||||||
//import net.minecraft.world.item.Tiers;
|
//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<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> 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<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()) );
|
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_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_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_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_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()) );
|
public static final RegistryObject<Item> diamond_axe = VANILLA_ITEMS.register("diamond_axe",() -> new AxeItem(AltTiers.Diamond, 7, -3.0f, new Item.Properties()) );
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,13 @@ description='''${mod_description}'''
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
side="BOTH"
|
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
|
# 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
|
# 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.
|
# stop your mod loading on the server for example.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue