Add more jeremium items
This commit is contained in:
@@ -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) );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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) );
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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) );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user