update 0.9.9 (pre-release)
finished jeremium and added deepslate variants of all ores
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
package net.arcmods.ryantlg.armourMaterials;
|
||||
|
||||
import net.arcmods.ryantlg.items.miscItems.fabricOfReality;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorMaterial;
|
||||
import net.minecraft.recipe.Ingredient;
|
||||
import net.minecraft.sound.SoundEvent;
|
||||
import net.minecraft.sound.SoundEvents;
|
||||
|
||||
public class notArmorMaterial implements ArmorMaterial{
|
||||
// {boots, leggings, chestplate, helmet}
|
||||
private static final int[] BASE_DURABILITY = new int[] {1200, 1290, 1350, 1210};
|
||||
private static final int[] PROTECTION_VALUES = new int[] {15, 15, 15, 15};
|
||||
|
||||
// In which A is helmet, B chestplate, C leggings and D boots.
|
||||
// For reference, Leather uses {1, 2, 3, 1}, and Diamond/Netherite {3, 6, 8, 3}
|
||||
// {A, C, B, D}
|
||||
|
||||
@Override
|
||||
public int getDurability(EquipmentSlot slot) {
|
||||
return BASE_DURABILITY[slot.getEntitySlotId()] * 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getProtectionAmount(EquipmentSlot slot) {
|
||||
return PROTECTION_VALUES[slot.getEntitySlotId()];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnchantability() {
|
||||
return 100;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoundEvent getEquipSound() {
|
||||
return SoundEvents.ITEM_ARMOR_EQUIP_NETHERITE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Ingredient getRepairIngredient() {
|
||||
return Ingredient.ofItems(fabricOfReality.FABRIC_OF_REALITY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
// Must be all lowercase
|
||||
return "not";
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getToughness() {
|
||||
return 10.0F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getKnockbackResistance() {
|
||||
return 10.0F;
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ 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.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
@@ -14,18 +15,18 @@ public class jeremiumBlocks {
|
||||
|
||||
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 final Block DEEPSLATE_JEREMIUM_ORE = new jeremiumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).luminance(5));
|
||||
public static final Block DEEPSLATE_JEREMIUM_ORE = new jeremiumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().luminance(5).sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
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).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).fireproof().maxCount(56)));
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "deepslate_jeremium_ore"), DEEPSLATE_JEREMIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deepslate_jeremium_ore"), new BlockItem(DEEPSLATE_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).fireproof().maxCount(56)));
|
||||
|
||||
gamermod.LOGGER.info("jeremiumBlocks loaded");
|
||||
}
|
||||
|
||||
|
||||
@@ -6,19 +6,23 @@ 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.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class omniumBlocks {
|
||||
public static final Block OMNIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool());
|
||||
public static final Block OMNIUM_BLOCK = new Block(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool());
|
||||
public static final Block OMNIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool());
|
||||
public static final Block OMNIUM_BLOCK = new Block(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool());
|
||||
public static final Block DEEPSLATE_OMNIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "omnium_ore"), OMNIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_ore"), new BlockItem(OMNIUM_ORE, new FabricItemSettings().group(gamermod.CHING)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "omnium_block"), OMNIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_block"), new BlockItem(OMNIUM_BLOCK, new FabricItemSettings().group(gamermod.CHING)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "omnium_ore"), OMNIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_ore"), new BlockItem(OMNIUM_ORE, new FabricItemSettings().group(gamermod.CHING)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "deepslate_omnium_ore"), DEEPSLATE_OMNIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deepslate_omnium_ore"), new BlockItem(DEEPSLATE_OMNIUM_ORE, new FabricItemSettings().group(gamermod.CHING)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "omnium_block"), OMNIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_block"), new BlockItem(OMNIUM_BLOCK, new FabricItemSettings().group(gamermod.CHING)));
|
||||
|
||||
gamermod.LOGGER.info("omniumBlocks loaded");
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ 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.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
@@ -14,11 +15,14 @@ import net.minecraft.util.registry.Registry;
|
||||
public class oriumBlocks {
|
||||
public static final Block ORIUM_ORE = new oriumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool());
|
||||
public static final Block ORIUM_BLOCK = new oriumBlock(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool());
|
||||
public static final Block DEEPSLATE_ORIUM_ORE = new oriumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "orium_ore"), ORIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_ore"), new BlockItem(ORIUM_ORE, new FabricItemSettings().group(gamermod.CHING).rarity(Rarity.UNCOMMON)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "deepslate_orium_ore"), DEEPSLATE_ORIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deepslate_orium_ore"), new BlockItem(DEEPSLATE_ORIUM_ORE, new FabricItemSettings().group(gamermod.CHING).rarity(Rarity.UNCOMMON)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "orium_block"), ORIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_block"), new BlockItem(ORIUM_BLOCK, new FabricItemSettings().group(gamermod.CHING).rarity(Rarity.UNCOMMON)));
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import net.arcmods.ryantlg.blocks.jeremiumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.omniumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.oriumBlocks;
|
||||
import net.arcmods.ryantlg.items.armour.jeremiumArmour;
|
||||
import net.arcmods.ryantlg.items.armour.notArmour;
|
||||
import net.arcmods.ryantlg.items.armour.omniumArmour;
|
||||
import net.arcmods.ryantlg.items.armour.oriumArmour;
|
||||
import net.arcmods.ryantlg.items.itemsByCrop.weemItems;
|
||||
@@ -104,6 +105,9 @@ public class gamermod implements ModInitializer {
|
||||
jeremiumTools.register();
|
||||
JeremiumOreGen.register();
|
||||
|
||||
notArmour.register();
|
||||
|
||||
}
|
||||
//fight me
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.arcmods.ryantlg.items.armour;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.armourMaterials.notArmorMaterial;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorItem;
|
||||
import net.minecraft.item.ArmorMaterial;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class notArmour {
|
||||
|
||||
public static final ArmorMaterial OMNIUM_ARMOR_MATERIAL = new notArmorMaterial();
|
||||
public static final Item NOT_HELMET = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_CHESTPLATE = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_LEGGINGS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_BOOTS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "not_helmet"), NOT_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "not_chestplate"), NOT_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "not_leggings"), NOT_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "not_boots"), NOT_BOOTS);
|
||||
|
||||
gamermod.LOGGER.info("notArmour loaded");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user