Jeremium update
This commit is contained in:
27
src/main/java/net/arcmods/ryantlg/blocks/jeremiumBlocks.java
Normal file
27
src/main/java/net/arcmods/ryantlg/blocks/jeremiumBlocks.java
Normal 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");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package net.arcmods.ryantlg;
|
||||
|
||||
import net.arcmods.ryantlg.blocks.CropBlocks;
|
||||
import net.arcmods.ryantlg.blocks.FunnyBlocks;
|
||||
import net.arcmods.ryantlg.blocks.jeremiumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.omniumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.oriumBlocks;
|
||||
import net.arcmods.ryantlg.items.armour.omniumArmour;
|
||||
@@ -95,6 +96,7 @@ public class gamermod implements ModInitializer {
|
||||
GamerEffects.register();
|
||||
|
||||
jeremiumMetals.register();
|
||||
jeremiumBlocks.register();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,9 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.metalItems;
|
||||
|
||||
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.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
@@ -12,24 +9,11 @@ import net.minecraft.util.registry.Registry;
|
||||
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 RAW_JEREMIUM = new Item(new Item.Settings()
|
||||
.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 final Item RAW_JEREMIUM = new Item(new Item.Settings().fireproof().group(gamermod.CHING).maxCount(64).rarity(Rarity.UNCOMMON));
|
||||
|
||||
public static void register() {
|
||||
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");
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@
|
||||
"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": "Fabric of Reality",
|
||||
"effect.gamermod.high": "High"
|
||||
"effect.gamermod.high": "High",
|
||||
"item.gamermod.jeremium_ingot": "Jeremium Ingot",
|
||||
"item.gamermod.raw_jeremium": "Raw Jeremium"
|
||||
|
||||
}
|
||||
6
src/main/resources/assets/gamermod/models/item/jeremium_ingot.json
Executable file
6
src/main/resources/assets/gamermod/models/item/jeremium_ingot.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "gamermod:item/jeremium_ingot"
|
||||
}
|
||||
}
|
||||
6
src/main/resources/assets/gamermod/models/item/raw_jeremium.json
Executable file
6
src/main/resources/assets/gamermod/models/item/raw_jeremium.json
Executable 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 |
Reference in New Issue
Block a user