|
@ -0,0 +1,29 @@
|
|||
package com.eternal_plasma.smep.armor;
|
||||
|
||||
import com.eternal_plasma.smep.Main;
|
||||
import com.eternal_plasma.smep.init.ModItems;
|
||||
import com.eternal_plasma.smep.util.IHasModel;
|
||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
|
||||
public class ArmorBase extends ItemArmor implements IHasModel
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
public ArmorBase(String name, ArmorMaterial materialIn, int renderIndex, EntityEquipmentSlot equipmentSlotIn) {
|
||||
super(materialIn, renderIndex, equipmentSlotIn);
|
||||
setUnlocalizedName(name);
|
||||
setRegistryName(name);
|
||||
setCreativeTab(Main.MODTAB);
|
||||
|
||||
ModItems.ITEMS.add(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerModels()
|
||||
{
|
||||
Main.proxy.registerItemRenderer(this, 0, "inventory");
|
||||
}
|
||||
}
|
|
@ -1,7 +1,13 @@
|
|||
package com.eternal_plasma.smep.blocks;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.eternal_plasma.smep.init.ModItems;
|
||||
|
||||
import net.minecraft.block.SoundType;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class SapphireOre extends BlockBase{
|
||||
|
||||
|
@ -15,5 +21,15 @@ public class SapphireOre extends BlockBase{
|
|||
setResistance(6.0f);
|
||||
setHarvestLevel("pickaxe",2);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Item getItemDropped(IBlockState state, Random rand, int fortune)
|
||||
{
|
||||
return ModItems.SAPPHIRE;
|
||||
}
|
||||
@Override
|
||||
public int quantityDropped(Random rand)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,33 +3,44 @@ package com.eternal_plasma.smep.init;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.eternal_plasma.smep.armor.ArmorBase;
|
||||
import com.eternal_plasma.smep.items.ItemBase;
|
||||
import com.eternal_plasma.smep.tools.ToolAxe;
|
||||
import com.eternal_plasma.smep.tools.ToolHoe;
|
||||
import com.eternal_plasma.smep.tools.ToolPickaxe;
|
||||
import com.eternal_plasma.smep.tools.ToolShovel;
|
||||
import com.eternal_plasma.smep.tools.ToolSword;
|
||||
import com.eternal_plasma.smep.util.Reference;
|
||||
|
||||
import net.minecraft.init.SoundEvents;
|
||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.item.Item.ToolMaterial;
|
||||
import net.minecraft.item.ItemArmor.ArmorMaterial;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
|
||||
public class ModItems
|
||||
{
|
||||
public static final List<Item> ITEMS = new ArrayList<Item>();
|
||||
|
||||
//Items
|
||||
public static final Item SAPPHIRE = new ItemBase("sapphire");
|
||||
public static final Item SAPPHIRE_SHARD = new ItemBase("sapphire_shard");
|
||||
public static final Item SAPPHIRE_RING = new ItemBase("sapphire_ring");
|
||||
|
||||
//Tools
|
||||
//Materials
|
||||
public static final ToolMaterial MATERIAL_SAPPHIRE = EnumHelper.addToolMaterial("material_sapphire",3,1570,10.0F,4.0F,22);
|
||||
|
||||
public static final ArmorMaterial SAPPHIRE_ARMOR = EnumHelper.addArmorMaterial("armor_sapphire", Reference.MOD_ID + ":sapphire", 1500, new int []{4,7,9,5}, 17, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 0.0f);
|
||||
//Tools
|
||||
public static final ItemSword SAPPHIRE_SWORD = new ToolSword("sapphire_sword", MATERIAL_SAPPHIRE);
|
||||
public static final Item SAPPHIRE_AXE = new ToolAxe("sapphire_axe", MATERIAL_SAPPHIRE);
|
||||
public static final Item SAPPHIRE_HOE = new ToolHoe("sapphire_hoe", MATERIAL_SAPPHIRE);
|
||||
public static final Item SAPPHIRE_PICKAXE = new ToolPickaxe("sapphire_pickaxe", MATERIAL_SAPPHIRE);
|
||||
public static final Item SAPPHIRE_SHOVEL = new ToolShovel("sapphire_shovel", MATERIAL_SAPPHIRE);
|
||||
|
||||
//Armor
|
||||
|
||||
public static final Item SAPPHIRE_HELMET = new ArmorBase("sapphire_helmet", SAPPHIRE_ARMOR, 1, EntityEquipmentSlot.HEAD);
|
||||
public static final Item SAPPHIRE_CHESTPLATE = new ArmorBase("sapphire_chestplate", SAPPHIRE_ARMOR, 1, EntityEquipmentSlot.CHEST);
|
||||
public static final Item SAPPHIRE_LEGS = new ArmorBase("sapphire_legs", SAPPHIRE_ARMOR, 1, EntityEquipmentSlot.LEGS);
|
||||
public static final Item SAPPHIRE_BOOTS = new ArmorBase("sapphire_boots", SAPPHIRE_ARMOR, 1, EntityEquipmentSlot.FEET);
|
||||
}
|
||||
|
|
|
@ -3,8 +3,13 @@ item.sapphire.name=Sapphire
|
|||
item.sapphire_shard.name=Sapphire Shard
|
||||
item.sapphire_ring.name=Sapphire Ring
|
||||
tile.sapphire_block.name=Sapphire Block
|
||||
tile.sapphire_ore.name=Sapphire Ore
|
||||
item.sapphire_sword.name=Sapphire Sword
|
||||
item.sapphire_axe.name=Sapphire Axe
|
||||
item.sapphire_hoe.name=Sapphire Hoe
|
||||
item.sapphire_pickaxe.name=Sapphire Pickaxe
|
||||
item.sapphire_shovel.name=Sapphire Shovel
|
||||
item.sapphire_shovel.name=Sapphire Shovel
|
||||
item.sapphire_helmet.name=Sapphire Helmet
|
||||
item.sapphire_chestplate.name=Sapphire Chestplate
|
||||
item.sapphire_legs.name=Sapphire Leggings
|
||||
item.sapphire_boots.name=Sapphire Boots
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "smep:items/sapphire_boots"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "smep:items/sapphire_chestplate"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "smep:items/sapphire_helmet"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "smep:items/sapphire_legs"
|
||||
}
|
||||
}
|
|
@ -13,6 +13,6 @@
|
|||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_shard",
|
||||
"count": 3
|
||||
"count": 2
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
"aa ",
|
||||
"ax ",
|
||||
" x "
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"x":
|
||||
{
|
||||
"item": "minecraft:stick"
|
||||
},
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_axe",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
" ",
|
||||
"a a",
|
||||
"a a"
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_boots",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
"a a",
|
||||
"aaa",
|
||||
"aaa"
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_chestplate",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
"aaa",
|
||||
"a a",
|
||||
" "
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_helmet",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
"aa ",
|
||||
" x ",
|
||||
" x "
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"x":
|
||||
{
|
||||
"item": "minecraft:stick"
|
||||
},
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_hoe",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
"aaa",
|
||||
"a a",
|
||||
"a a"
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_legs",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
"aaa",
|
||||
" x ",
|
||||
" x "
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"x":
|
||||
{
|
||||
"item": "minecraft:stick"
|
||||
},
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_pickaxe",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
" a ",
|
||||
" b ",
|
||||
" "
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
},
|
||||
"b":
|
||||
{
|
||||
"item": "minecraft:gold_ingot"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_ring",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
" a ",
|
||||
" x ",
|
||||
" x "
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"x":
|
||||
{
|
||||
"item": "minecraft:stick"
|
||||
},
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_shovel",
|
||||
"count": 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
" a ",
|
||||
" a ",
|
||||
" x "
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"x":
|
||||
{
|
||||
"item": "minecraft:stick"
|
||||
},
|
||||
"a":
|
||||
{
|
||||
"item": "smep:sapphire_shard"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "smep:sapphire_sword",
|
||||
"count": 1
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 99 B After Width: | Height: | Size: 499 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 215 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 189 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 670 B |