worked on crane part models
*Added: Rail model *Added: Pully model *Added: Ablity to use crane part block in game, though it does nothing *Moved: Block & Item class for crane parts to crane package Btw the ItemCraneParts is needed. I'm going to use it to have the item render in hand diffrent then in the inventory which can only be done with an item class.
This commit is contained in:
parent
e3d824a091
commit
eb6a3a1d96
6 changed files with 28 additions and 22 deletions
BIN
models/Pully_V1_Stationary_WIP.tcn
Normal file
BIN
models/Pully_V1_Stationary_WIP.tcn
Normal file
Binary file not shown.
BIN
models/Rail_V1_Stationary_WIP.tcn
Normal file
BIN
models/Rail_V1_Stationary_WIP.tcn
Normal file
Binary file not shown.
|
@ -20,6 +20,8 @@ import assemblyline.common.machine.BlockRejector;
|
|||
import assemblyline.common.machine.armbot.BlockArmbot;
|
||||
import assemblyline.common.machine.belt.BlockConveyorBelt;
|
||||
import assemblyline.common.machine.crane.BlockCraneController;
|
||||
import assemblyline.common.machine.crane.BlockCraneParts;
|
||||
import assemblyline.common.machine.crane.ItemCraneParts;
|
||||
import assemblyline.common.machine.detector.BlockDetector;
|
||||
import assemblyline.common.machine.encoder.BlockEncoder;
|
||||
import assemblyline.common.machine.encoder.ItemDisk;
|
||||
|
@ -79,10 +81,11 @@ public class AssemblyLine
|
|||
public static Block blockRejector;
|
||||
public static Block blockArmbot;
|
||||
public static Block blockCraneController;
|
||||
public static Block blockCraneParts;
|
||||
|
||||
public static BlockMulti blockMulti;
|
||||
|
||||
public static final int ITEM_ID_PREFIX = 3030;
|
||||
public static final int ITEM_ID_PREFIX = 13030;
|
||||
public static Item itemImprint;
|
||||
public static Item itemDisk;
|
||||
|
||||
|
@ -103,7 +106,9 @@ public class AssemblyLine
|
|||
blockArmbot = new BlockArmbot(CONFIGURATION.getBlock("Armbot", BLOCK_ID_PREFIX + 8).getInt());
|
||||
blockMulti = new BlockMulti(CONFIGURATION.getBlock("Multiblock", BLOCK_ID_PREFIX + 9).getInt());
|
||||
blockCraneController = new BlockCraneController(CONFIGURATION.getBlock("CraneController", BLOCK_ID_PREFIX + 10).getInt());
|
||||
blockCraneController = new BlockCraneParts(CONFIGURATION.getBlock("CraneParts", BLOCK_ID_PREFIX + 11).getInt());
|
||||
|
||||
|
||||
itemImprint = new ItemImprinter(CONFIGURATION.getBlock("Imprint", ITEM_ID_PREFIX).getInt());
|
||||
itemDisk = new ItemDisk(CONFIGURATION.getBlock("Disk", ITEM_ID_PREFIX + 1).getInt());
|
||||
CONFIGURATION.save();
|
||||
|
@ -118,6 +123,7 @@ public class AssemblyLine
|
|||
GameRegistry.registerBlock(blockRejector, "Rejector");
|
||||
GameRegistry.registerBlock(blockArmbot, "Armbot");
|
||||
GameRegistry.registerBlock(blockCraneController, "Crane Controller");
|
||||
GameRegistry.registerBlock(blockCraneParts,ItemCraneParts.class, "Crane Parts");
|
||||
|
||||
TabAssemblyLine.itemStack = new ItemStack(AssemblyLine.blockConveyorBelt);
|
||||
UpdateNotifier.INSTANCE.checkUpdate(NAME, VERSION, "http://calclavia.com/downloads/al/recommendedversion.txt");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package assemblyline.common.machine.quarry;
|
||||
package assemblyline.common.machine.crane;
|
||||
|
||||
import assemblyline.common.TabAssemblyLine;
|
||||
import universalelectricity.prefab.BlockMachine;
|
||||
|
@ -8,12 +8,12 @@ import net.minecraft.creativetab.CreativeTabs;
|
|||
|
||||
public class BlockCraneParts extends BlockMachine
|
||||
{
|
||||
public static final int RAIL_META = 0;
|
||||
public BlockCraneParts(int id)
|
||||
{
|
||||
super("CraneParts", id, Material.iron, TabAssemblyLine.INSTANCE);
|
||||
|
||||
}
|
||||
public static final int RAIL_META = 0;
|
||||
|
||||
public BlockCraneParts(int id)
|
||||
{
|
||||
super("CraneParts", id, Material.iron, TabAssemblyLine.INSTANCE);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package assemblyline.common.machine.crane;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
|
||||
public class ItemCraneParts extends ItemBlock
|
||||
{
|
||||
|
||||
public ItemCraneParts(int par1)
|
||||
{
|
||||
super(par1);
|
||||
this.setHasSubtypes(true);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package assemblyline.common.machine.quarry;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
|
||||
public class ItemCraneParts extends ItemBlock
|
||||
{
|
||||
|
||||
public ItemCraneParts(int par1)
|
||||
{
|
||||
super(par1);
|
||||
this.setHasSubtypes(true);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue