Jeremium update

This commit is contained in:
RyanTLG
2022-03-29 19:21:17 +02:00
parent 20f9a34975
commit 66e9771c83
8 changed files with 46 additions and 19 deletions

View File

@@ -0,0 +1,27 @@
package net.arcmods.ryantlg.blocks;
import net.arcmods.ryantlg.gamermod;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.item.BlockItem;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
public class jeremiumBlocks {
public static final Block JEREMIUM_BLOCK = new Block(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool());
public static final Block JEREMIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool());
public static void register() {
Registry.register(Registry.BLOCK, new Identifier("gamermod", "jeremium_ore"), JEREMIUM_ORE);
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_ore"), new BlockItem(JEREMIUM_ORE, new FabricItemSettings().group(gamermod.CHING)));
Registry.register(Registry.BLOCK, new Identifier("gamermod", "jeremium_block"), JEREMIUM_BLOCK);
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_block"), new BlockItem(JEREMIUM_BLOCK, new FabricItemSettings().group(gamermod.CHING)));
gamermod.LOGGER.info("jeremiumBlocks loaded");
}
}

View File

@@ -2,6 +2,7 @@ package net.arcmods.ryantlg;
import net.arcmods.ryantlg.blocks.CropBlocks; import net.arcmods.ryantlg.blocks.CropBlocks;
import net.arcmods.ryantlg.blocks.FunnyBlocks; import net.arcmods.ryantlg.blocks.FunnyBlocks;
import net.arcmods.ryantlg.blocks.jeremiumBlocks;
import net.arcmods.ryantlg.blocks.omniumBlocks; import net.arcmods.ryantlg.blocks.omniumBlocks;
import net.arcmods.ryantlg.blocks.oriumBlocks; import net.arcmods.ryantlg.blocks.oriumBlocks;
import net.arcmods.ryantlg.items.armour.omniumArmour; import net.arcmods.ryantlg.items.armour.omniumArmour;
@@ -95,6 +96,7 @@ public class gamermod implements ModInitializer {
GamerEffects.register(); GamerEffects.register();
jeremiumMetals.register(); jeremiumMetals.register();
jeremiumBlocks.register();
} }
} }

View File

@@ -1,9 +1,6 @@
package net.arcmods.ryantlg.items.metalItems; package net.arcmods.ryantlg.items.metalItems;
import net.arcmods.ryantlg.gamermod; import net.arcmods.ryantlg.gamermod;
import net.arcmods.ryantlg.statusEffects.GamerEffects;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity; import net.minecraft.util.Rarity;
@@ -12,24 +9,11 @@ import net.minecraft.util.registry.Registry;
public class jeremiumMetals { public class jeremiumMetals {
public static final Item JEREMIUM = new Item(new Item.Settings().fireproof().group(gamermod.CHING).maxCount(64).rarity(Rarity.UNCOMMON)); public static final Item JEREMIUM = new Item(new Item.Settings().fireproof().group(gamermod.CHING).maxCount(64).rarity(Rarity.UNCOMMON));
public static final Item RAW_JEREMIUM = new Item(new Item.Settings() public static final Item RAW_JEREMIUM = new Item(new Item.Settings().fireproof().group(gamermod.CHING).maxCount(64).rarity(Rarity.UNCOMMON));
.fireproof()
.group(gamermod.CHING)
.maxCount(64)
.rarity(Rarity.UNCOMMON)
.food(
new FoodComponent
.Builder()
.hunger(4)
.saturationModifier(03f)
.meat()
.snack()
.statusEffect(new StatusEffectInstance(GamerEffects.JEREMYD, 20*7), 1f)
.build()
));
public static void register() { public static void register() {
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_ingot"), JEREMIUM); Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_ingot"), JEREMIUM);
Registry.register(Registry.ITEM, new Identifier("gamermod", "raw_jeremium"), RAW_JEREMIUM);
gamermod.LOGGER.info("jeremiumMetals loaded"); gamermod.LOGGER.info("jeremiumMetals loaded");
} }

View File

@@ -49,6 +49,8 @@
"item.gamermod.orium_pickaxe": "Orium Pickaxe", "item.gamermod.orium_pickaxe": "Orium Pickaxe",
"item.gamermod.fabric_of_reality.tooltip": "Warning: has a chance to get §o§l§4RIPPED§r.", "item.gamermod.fabric_of_reality.tooltip": "Warning: has a chance to get §o§l§4RIPPED§r.",
"item.gamermod.fabric_of_reality": "Fabric of Reality", "item.gamermod.fabric_of_reality": "Fabric of Reality",
"effect.gamermod.high": "High" "effect.gamermod.high": "High",
"item.gamermod.jeremium_ingot": "Jeremium Ingot",
"item.gamermod.raw_jeremium": "Raw Jeremium"
} }

View File

@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "gamermod:item/jeremium_ingot"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "gamermod:item/raw_jeremium"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB