Fixed HDPE and Control Circuit textures, half-finished work on balloons

This commit is contained in:
aidancbrady committed 2016-05-02 23:27:27 -04:00
1 parent 076fc3c383
commit 0c41c26042
14 files changed
+79 -176

No files matched your search

@@ -5,6 +5,7 @@ import java.util.List;
import mekanism.api.Coord4D;
import mekanism.api.EnumColor;
import mekanism.api.Pos3D;
import mekanism.common.base.IMetaItem;
import mekanism.common.entity.EntityBalloon;
import mekanism.common.util.LangUtils;
import net.minecraft.block.BlockDispenser;
@@ -17,11 +18,11 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraft.util.EnumFacing;
public class ItemBalloon extends ItemMekanism
public class ItemBalloon extends ItemMekanism implements IMetaItem
{
public ItemBalloon()
{
@@ -29,6 +30,18 @@ public class ItemBalloon extends ItemMekanism
setHasSubtypes(true);
BlockDispenser.dispenseBehaviorRegistry.putObject(this, new DispenserBehavior());
}
@Override
public String getTexture(int meta)
{
return EnumColor.DYES[meta].getOreDictName() + "Balloon";
}
@Override
public int getVariants()
{
return EnumColor.DYES.length;
}
public EnumColor getColor(ItemStack stack)
{
@@ -3,11 +3,12 @@ package mekanism.common.item;
import java.util.List;
import mekanism.common.Tier.BaseTier;
import mekanism.common.base.IMetaItem;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class ItemControlCircuit extends ItemMekanism
public class ItemControlCircuit extends ItemMekanism implements IMetaItem
{
public ItemControlCircuit()
{
@@ -15,25 +16,18 @@ public class ItemControlCircuit extends ItemMekanism
setHasSubtypes(true);
}
/*
@Override
public void registerIcons(IIconRegister register)
public String getTexture(int meta)
{
for(BaseTier tier : BaseTier.values())
{
if(tier.isObtainable())
{
icons[tier.ordinal()] = register.registerIcon("mekanism:" + tier.getName() + "ControlCircuit");
}
}
return BaseTier.values()[meta].getName() + "ControlCircuit";
}
@Override
public IIcon getIconFromDamage(int meta)
public int getVariants()
{
return icons[meta];
return BaseTier.values().length-1;
}
@Override
public void getSubItems(Item item, CreativeTabs tabs, List itemList)
{
@@ -45,7 +39,6 @@ public class ItemControlCircuit extends ItemMekanism
}
}
}
*/
@Override
public String getUnlocalizedName(ItemStack item)
@@ -3,11 +3,12 @@ package mekanism.common.item;
import java.util.List;
import mekanism.common.Mekanism;
import mekanism.common.base.IMetaItem;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class ItemHDPE extends ItemMekanism
public class ItemHDPE extends ItemMekanism implements IMetaItem
{
public ItemHDPE()
{
@@ -16,23 +17,18 @@ public class ItemHDPE extends ItemMekanism
setCreativeTab(Mekanism.tabMekanism);
}
/*
@Override
public void registerIcons(IIconRegister register)
public String getTexture(int meta)
{
for(int i = 0; i < PlasticItem.values().length; i++)
{
icons[i] = register.registerIcon("mekanism:" + PlasticItem.values()[i].getName());
}
return PlasticItem.values()[meta].getName();
}
@Override
public IIcon getIconFromDamage(int meta)
public int getVariants()
{
return icons[meta];
return PlasticItem.values().length;
}
*/
@Override
public void getSubItems(Item item, CreativeTabs tabs, List<ItemStack> itemList)
{
@@ -1,73 +0,0 @@
{
"elements": [
{
"__comment": "String",
"from": [7.5, 8.5, 7.5],
"to": [8.5, 19.5, 8.5],
"faces": {
"down": {"uv": [9, 0, 9.25, 0.25], "texture": "#all"},
"up": {"uv": [8.75, 0, 9, 0.25], "texture": "#all"},
"north": {"uv": [8.75, 0.25, 9, 3], "texture": "#all"},
"south": {"uv": [9.25, 0.25, 9.5, 3], "texture": "#all"},
"west": {"uv": [9, 0.25, 9.25, 3], "texture": "#all"},
"east": {"uv": [8.5, 0.25, 8.75, 3], "texture": "#all"}
}
},
{
"__comment": "Balloonnub",
"from": [7.5, 19.5, 7.5],
"to": [8.5, 20.5, 8.5],
"faces": {
"down": {"uv": [5, 2.25, 5.25, 2.5], "texture": "#all"},
"up": {"uv": [4.75, 2.25, 5, 2.5], "texture": "#all"},
"north": {"uv": [4.75, 2.5, 5, 2.75], "texture": "#all"},
"south": {"uv": [5.25, 2.5, 5.5, 2.75], "texture": "#all"},
"west": {"uv": [5, 2.5, 5.25, 2.75], "texture": "#all"},
"east": {"uv": [4.5, 2.5, 4.75, 2.75], "texture": "#all"}
}
},
{
"__comment": "Balloon3",
"from": [6, 20.5, 6],
"to": [10, 25.5, 10],
"faces": {
"down": {"uv": [6.5, 0, 7.5, 1], "texture": "#all"},
"up": {"uv": [5.5, 0, 6.5, 1], "texture": "#all"},
"north": {"uv": [5.5, 1, 6.5, 2.25], "texture": "#all"},
"south": {"uv": [7.5, 1, 8.5, 2.25], "texture": "#all"},
"west": {"uv": [6.5, 1, 7.5, 2.25], "texture": "#all"},
"east": {"uv": [4.5, 1, 5.5, 2.25], "texture": "#all"}
}
},
{
"__comment": "Balloon1",
"from": [6, 21, 5.5],
"to": [10, 25, 10.5],
"faces": {
"down": {"uv": [2.25, 2, 3.25, 3.25], "texture": "#all"},
"up": {"uv": [1.25, 2, 2.25, 3.25], "texture": "#all"},
"north": {"uv": [1.25, 3.25, 2.25, 4.25], "texture": "#all"},
"south": {"uv": [3.5, 3.25, 4.5, 4.25], "texture": "#all"},
"west": {"uv": [2.25, 3.25, 3.5, 4.25], "texture": "#all"},
"east": {"uv": [0, 3.25, 1.25, 4.25], "texture": "#all"}
}
},
{
"__comment": "Balloon2",
"from": [5.5, 21, 6],
"to": [10.5, 25, 10],
"faces": {
"down": {"uv": [2.25, 0, 3.5, 1], "texture": "#all"},
"up": {"uv": [1, 0, 2.25, 1], "texture": "#all"},
"north": {"uv": [1, 1, 2.25, 2], "texture": "#all"},
"south": {"uv": [3.25, 1, 4.5, 2], "texture": "#all"},
"west": {"uv": [2.25, 1, 3.25, 2], "texture": "#all"},
"east": {"uv": [0, 1, 1, 2], "texture": "#all"}
}
}
],
"textures": {
"all": "...",
"particle": "..."
}
}
@@ -0,0 +1,7 @@
{
"parent": "mekanism:item/standard_item",
"textures": {
"layer0": "mekanism:items/AdvancedControlCircuit"
}
}
+6 -69
View File
@@ -1,73 +1,10 @@
{
"elements": [
{
"__comment": "String",
"from": [7.5, 8.5, 7.5],
"to": [8.5, 19.5, 8.5],
"faces": {
"down": {"uv": [9, 0, 9.25, 0.25], "texture": "#all"},
"up": {"uv": [8.75, 0, 9, 0.25], "texture": "#all"},
"north": {"uv": [8.75, 0.25, 9, 3], "texture": "#all"},
"south": {"uv": [9.25, 0.25, 9.5, 3], "texture": "#all"},
"west": {"uv": [9, 0.25, 9.25, 3], "texture": "#all"},
"east": {"uv": [8.5, 0.25, 8.75, 3], "texture": "#all"}
}
},
{
"__comment": "Balloonnub",
"from": [7.5, 19.5, 7.5],
"to": [8.5, 20.5, 8.5],
"faces": {
"down": {"uv": [5, 2.25, 5.25, 2.5], "texture": "#all"},
"up": {"uv": [4.75, 2.25, 5, 2.5], "texture": "#all"},
"north": {"uv": [4.75, 2.5, 5, 2.75], "texture": "#all"},
"south": {"uv": [5.25, 2.5, 5.5, 2.75], "texture": "#all"},
"west": {"uv": [5, 2.5, 5.25, 2.75], "texture": "#all"},
"east": {"uv": [4.5, 2.5, 4.75, 2.75], "texture": "#all"}
}
},
{
"__comment": "Balloon3",
"from": [6, 20.5, 6],
"to": [10, 25.5, 10],
"faces": {
"down": {"uv": [6.5, 0, 7.5, 1], "texture": "#all"},
"up": {"uv": [5.5, 0, 6.5, 1], "texture": "#all"},
"north": {"uv": [5.5, 1, 6.5, 2.25], "texture": "#all"},
"south": {"uv": [7.5, 1, 8.5, 2.25], "texture": "#all"},
"west": {"uv": [6.5, 1, 7.5, 2.25], "texture": "#all"},
"east": {"uv": [4.5, 1, 5.5, 2.25], "texture": "#all"}
}
},
{
"__comment": "Balloon1",
"from": [6, 21, 5.5],
"to": [10, 25, 10.5],
"faces": {
"down": {"uv": [2.25, 2, 3.25, 3.25], "texture": "#all"},
"up": {"uv": [1.25, 2, 2.25, 3.25], "texture": "#all"},
"north": {"uv": [1.25, 3.25, 2.25, 4.25], "texture": "#all"},
"south": {"uv": [3.5, 3.25, 4.5, 4.25], "texture": "#all"},
"west": {"uv": [2.25, 3.25, 3.5, 4.25], "texture": "#all"},
"east": {"uv": [0, 3.25, 1.25, 4.25], "texture": "#all"}
}
},
{
"__comment": "Balloon2",
"from": [5.5, 21, 6],
"to": [10.5, 25, 10],
"faces": {
"down": {"uv": [2.25, 0, 3.5, 1], "texture": "#all"},
"up": {"uv": [1, 0, 2.25, 1], "texture": "#all"},
"north": {"uv": [1, 1, 2.25, 2], "texture": "#all"},
"south": {"uv": [3.25, 1, 4.5, 2], "texture": "#all"},
"west": {"uv": [2.25, 1, 3.25, 2], "texture": "#all"},
"east": {"uv": [0, 1, 1, 2], "texture": "#all"}
}
"parent": "mekanism:entity/balloon",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
],
"textures": {
"all": "...",
"particle": "..."
}
}
@@ -0,0 +1,7 @@
{
"parent": "mekanism:item/standard_item",
"textures": {
"layer0": "mekanism:items/BasicControlCircuit"
}
}
@@ -0,0 +1,7 @@
{
"parent": "mekanism:item/standard_item",
"textures": {
"layer0": "mekanism:items/EliteControlCircuit"
}
}
@@ -1,7 +1,6 @@
{
"parent": "mekanism:item/standard_item",
"textures": {
"layer0": "mekanism:items/Polyethene"
"layer0": "mekanism:items/HDPEPellet"
}
}
@@ -1,7 +1,6 @@
{
"parent": "mekanism:item/standard_item",
"textures": {
"layer0": "mekanism:items/ControlCircuit"
"layer0": "mekanism:items/HDPERod"
}
}
@@ -0,0 +1,6 @@
{
"parent": "mekanism:item/standard_item",
"textures": {
"layer0": "mekanism:items/HDPESheet"
}
}
@@ -0,0 +1,6 @@
{
"parent": "mekanism:item/standard_item",
"textures": {
"layer0": "mekanism:items/PlaStick"
}
}
@@ -4,4 +4,3 @@
"layer0": "mekanism:items/Substrate"
}
}
@@ -0,0 +1,7 @@
{
"parent": "mekanism:item/standard_item",
"textures": {
"layer0": "mekanism:items/UltimateControlCircuit"
}
}