Add more jeremium items

This commit is contained in:
RyanTLG
2022-04-05 19:04:49 +02:00
parent 0775acf2d0
commit 04c7e396e4
35 changed files with 425 additions and 10 deletions

View File

@@ -0,0 +1,24 @@
package net.arcmods.ryantlg.blockClasses;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.item.ItemStack;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;
import net.minecraft.util.Formatting;
import net.minecraft.world.BlockView;
public class jeremiumBlock extends Block{
public jeremiumBlock(Settings settings) {
super(settings);
}
@Override
public void appendTooltip(ItemStack itemStack, BlockView world, List<Text> tooltip, TooltipContext tooltipContext) {
tooltip.add( new TranslatableText("block.gamermod.jeremium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
tooltip.add( new TranslatableText("all.gamermod.jeremium.tooltiptwo").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
}
}

View File

@@ -16,7 +16,7 @@ public class oriumBlock extends Block{
super(settings);
}
@Override
public void appendTooltip(ItemStack itemStack, BlockView world, List<Text> tooltip, TooltipContext tooltipContext) {
tooltip.add( new TranslatableText("block.gamermod.orium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
}
public void appendTooltip(ItemStack itemStack, BlockView world, List<Text> tooltip, TooltipContext tooltipContext) {
tooltip.add( new TranslatableText("block.gamermod.orium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
}
}

View File

@@ -1,6 +1,7 @@
package net.arcmods.ryantlg.blocks;
import net.arcmods.ryantlg.gamermod;
import net.arcmods.ryantlg.blockClasses.jeremiumBlock;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
@@ -11,15 +12,15 @@ 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 final Block JEREMIUM_BLOCK = new jeremiumBlock(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool().luminance(16));
public static final Block JEREMIUM_ORE = new jeremiumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().luminance(5));
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.ITEM, new Identifier("gamermod", "jeremium_ore"), new BlockItem(JEREMIUM_ORE, new FabricItemSettings().group(gamermod.CHING).fireproof().maxCount(56)));
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)));
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_block"), new BlockItem(JEREMIUM_BLOCK, new FabricItemSettings().group(gamermod.CHING).fireproof().maxCount(56)));
gamermod.LOGGER.info("jeremiumBlocks loaded");
}

View File

@@ -0,0 +1,12 @@
package net.arcmods.ryantlg.customToolItemClasses.jeremium;
import net.minecraft.item.AxeItem;
import net.minecraft.item.ToolMaterial;
public class JeremiumAxeItem extends AxeItem {
public JeremiumAxeItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
super(material, attackDamage, attackSpeed, settings);
}
}

View File

@@ -0,0 +1,12 @@
package net.arcmods.ryantlg.customToolItemClasses.jeremium;
import net.minecraft.item.HoeItem;
import net.minecraft.item.ToolMaterial;
public class JeremiumHoeItem extends HoeItem{
public JeremiumHoeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
super(material, attackDamage, attackSpeed, settings);
}
}

View File

@@ -0,0 +1,12 @@
package net.arcmods.ryantlg.customToolItemClasses.jeremium;
import net.minecraft.item.PickaxeItem;
import net.minecraft.item.ToolMaterial;
public class JeremiumPickaxeItem extends PickaxeItem{
public JeremiumPickaxeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
super(material, attackDamage, attackSpeed, settings);
}
}

View File

@@ -0,0 +1,12 @@
package net.arcmods.ryantlg.customToolItemClasses.jeremium;
import net.minecraft.item.ShovelItem;
import net.minecraft.item.ToolMaterial;
public class JeremiumShovelItem extends ShovelItem{
public JeremiumShovelItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
super(material, attackDamage, attackSpeed, settings);
}
}

View File

@@ -0,0 +1,22 @@
package net.arcmods.ryantlg.customToolItemClasses.jeremium;
import java.util.List;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.item.ItemStack;
import net.minecraft.item.SwordItem;
import net.minecraft.item.ToolMaterial;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;
import net.minecraft.util.Formatting;
import net.minecraft.world.World;
public class JeremiumSwordItem extends SwordItem {
public JeremiumSwordItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
super(material, attackDamage, attackSpeed, settings);
}
@Override
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
tooltip.add( new TranslatableText("item.gamermod.jeremium_sword.tooltip").formatted(Formatting.DARK_PURPLE, Formatting.ITALIC) );
}
}

View File

@@ -15,6 +15,7 @@ import net.arcmods.ryantlg.items.metalItems.oriumMetals;
import net.arcmods.ryantlg.items.miscItems.FunnyItems;
import net.arcmods.ryantlg.items.miscItems.OtherItems;
import net.arcmods.ryantlg.items.miscItems.fabricOfReality;
import net.arcmods.ryantlg.items.tools.jeremiumTools;
import net.arcmods.ryantlg.items.tools.omniumTools;
import net.arcmods.ryantlg.items.tools.oriumTools;
import net.arcmods.ryantlg.lootTables.grassVanillaWeem;
@@ -99,6 +100,7 @@ public class gamermod implements ModInitializer {
jeremiumMetals.register();
jeremiumBlocks.register();
jeremiumArmour.register();
jeremiumTools.register();
}
}

View File

@@ -0,0 +1,26 @@
package net.arcmods.ryantlg.itemClasses;
import java.util.List;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;
import net.minecraft.util.Formatting;
import net.minecraft.world.World;
public class jeremiumItem extends Item{
public jeremiumItem(Settings settings) {
super(settings);
}
@Override
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
tooltip.add( new TranslatableText("all.gamermod.jeremium.tooltiptwo").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
}
}

View File

@@ -1,6 +1,7 @@
package net.arcmods.ryantlg.items.metalItems;
import net.arcmods.ryantlg.gamermod;
import net.arcmods.ryantlg.itemClasses.jeremiumItem;
import net.minecraft.item.Item;
import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity;
@@ -8,8 +9,8 @@ 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));
public static final Item JEREMIUM = new jeremiumItem(new Item.Settings().fireproof().group(gamermod.CHING).maxCount(56).rarity(Rarity.UNCOMMON));
public static final Item RAW_JEREMIUM = new jeremiumItem(new Item.Settings().fireproof().group(gamermod.CHING).maxCount(56).rarity(Rarity.UNCOMMON));
public static void register() {
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_ingot"), JEREMIUM);

View File

@@ -0,0 +1,35 @@
package net.arcmods.ryantlg.items.tools;
import net.arcmods.ryantlg.gamermod;
import net.arcmods.ryantlg.customToolItemClasses.jeremium.JeremiumAxeItem;
import net.arcmods.ryantlg.customToolItemClasses.jeremium.JeremiumHoeItem;
import net.arcmods.ryantlg.customToolItemClasses.jeremium.JeremiumPickaxeItem;
import net.arcmods.ryantlg.customToolItemClasses.jeremium.JeremiumShovelItem;
import net.arcmods.ryantlg.customToolItemClasses.jeremium.JeremiumSwordItem;
import net.arcmods.ryantlg.toolMaterials.jeremiumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ToolItem;
import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity;
import net.minecraft.util.registry.Registry;
public class jeremiumTools {
public static ToolItem JEREMIUM_SWORD = new JeremiumSwordItem(jeremiumToolMaterial.INSTANCE, 3, -2.9F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
public static ToolItem JEREMIUM_PICKAXE = new JeremiumPickaxeItem(jeremiumToolMaterial.INSTANCE, -10, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
public static ToolItem JEREMIUM_SHOVEL = new JeremiumShovelItem(jeremiumToolMaterial.INSTANCE, -11, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
public static ToolItem JEREMIUM_AXE = new JeremiumAxeItem(jeremiumToolMaterial.INSTANCE, 5, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
public static ToolItem JEREMIUM_HOE = new JeremiumHoeItem(jeremiumToolMaterial.INSTANCE, -12, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
public static void register() {
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_sword"), JEREMIUM_SWORD);
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_pickaxe"), JEREMIUM_PICKAXE);
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_shovel"), JEREMIUM_SHOVEL);
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_axe"), JEREMIUM_AXE);
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_hoe"), JEREMIUM_HOE);
gamermod.LOGGER.info("jeremiumTools loaded");
}
}

View File

@@ -0,0 +1,36 @@
package net.arcmods.ryantlg.toolMaterials;
import net.arcmods.ryantlg.items.metalItems.jeremiumMetals;
import net.minecraft.item.ToolMaterial;
import net.minecraft.recipe.Ingredient;
public class jeremiumToolMaterial implements ToolMaterial{
public static final jeremiumToolMaterial INSTANCE = new jeremiumToolMaterial();
@Override
public int getDurability() {
return 2590;
}
@Override
public float getMiningSpeedMultiplier() {
return 6.0F;
}
@Override
public float getAttackDamage() {
return 15.0F;
}
@Override
public int getMiningLevel() {
return 4;
}
@Override
public int getEnchantability() {
return 32;
}
@Override
public Ingredient getRepairIngredient() {
return Ingredient.ofItems(jeremiumMetals.JEREMIUM);
}
}

View File

@@ -53,6 +53,18 @@
"item.gamermod.jeremium_ingot": "Jeremium Ingot",
"item.gamermod.raw_jeremium": "Raw Jeremium",
"block.gamermod.jeremium_ore": "Jeremium Ore",
"block.gamermod.jeremium_block": "Jeremium Block"
"block.gamermod.jeremium_block": "Jeremium Block",
"item.gamermod.jeremium_helmet": "Jeremium Helmet",
"item.gamermod.jeremium_chestplate": "Jeremium Chestplate",
"item.gamermod.jeremium_leggings": "Jeremium Leggings",
"item.gamermod.jeremium_boots": "Jeremium Boots",
"block.gamermod.jeremium.tooltip": "Heavy, but emits light.",
"all.gamermod.jeremium.tooltiptwo": "Less able to fit in a stack because it's heavy",
"item.gamermod.jeremium_sword": "Jeremium Sword",
"item.gamermod.jeremium_axe": "Jeremium Axe",
"item.gamermod.jeremium_hoe": "Jeremium Hoe",
"item.gamermod.jeremium_shovel": "Jeremium Shovel",
"item.gamermod.jeremium_pickaxe": "Jeremium Pickaxe",
"item.gamermod.jeremium_sword.tooltip": "Kinda heavy"
}

View File

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

View File

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

View File

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

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"##",
"W#",
"W "
],
"key": {
"#": {
"item": "gamermod:jeremium_ingot"
},
"W": {
"item": "gamermod:netherite_stick"
}
},
"result": {
"item": "gamermod:jeremium_axe",
"count": 1
}
}

View File

@@ -0,0 +1,19 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"FEF",
"F F"
],
"key": {
"F": {
"item": "gamermod:jeremium_ingot"
},
"E": {
"item": "minecraft:netherite_ingot"
}
},
"result": {
"item": "gamermod:jeremium_boots",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"FEF",
"FFF",
"FFF"
],
"key": {
"F": {
"item": "gamermod:jeremium_ingot"
},
"E": {
"item": "minecraft:netherite_ingot"
}
},
"result": {
"item": "gamermod:jeremium_chestplate",
"count": 1
}
}

View File

@@ -0,0 +1,19 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"FFF",
"FEF"
],
"key": {
"F": {
"item": "gamermod:jeremium_ingot"
},
"E": {
"item": "minecraft:netherite_ingot"
}
},
"result": {
"item": "gamermod:jeremium_helmet",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"##",
"W ",
"W "
],
"key": {
"#": {
"item": "gamermod:jeremium_ingot"
},
"W": {
"item": "gamermod:netherite_stick"
}
},
"result": {
"item": "gamermod:jeremium_hoe",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"FFF",
"FEF",
"F F"
],
"key": {
"F": {
"item": "gamermod:jeremium_ingot"
},
"E": {
"item": "minecraft:netherite_ingot"
}
},
"result": {
"item": "gamermod:jeremium_leggings",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
" W ",
" W "
],
"key": {
"#": {
"item": "gamermod:jeremium_ingot"
},
"W": {
"item": "gamermod:netherite_stick"
}
},
"result": {
"item": "gamermod:jeremium_pickaxe",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"#",
"W",
"W"
],
"key": {
"#": {
"item": "gamermod:jeremium_ingot"
},
"W": {
"item": "gamermod:netherite_stick"
}
},
"result": {
"item": "gamermod:jeremium_shovel",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"#",
"#",
"W"
],
"key": {
"#": {
"item": "gamermod:jeremium_ingot"
},
"W": {
"item": "gamermod:netherite_stick"
}
},
"result": {
"item": "gamermod:jeremium_sword",
"count": 1
}
}