generated from tilera/1710mod
Add content
This commit is contained in:
parent
d9a57f7530
commit
6ce9cfaac0
7 changed files with 96 additions and 0 deletions
32
src/main/java/ley/modding/pocketcraft/PocketCraft.java
Normal file
32
src/main/java/ley/modding/pocketcraft/PocketCraft.java
Normal file
|
@ -0,0 +1,32 @@
|
|||
package ley.modding.pocketcraft;
|
||||
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import ley.modding.pocketcraft.block.BlockNetherReactor;
|
||||
import ley.modding.pocketcraft.block.BlockStonecutter;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@Mod(modid = PocketCraft.MODID, name = PocketCraft.NAME, version = PocketCraft.VERSION)
|
||||
public class PocketCraft {
|
||||
public static final String MODID = "pocketcraft";
|
||||
public static final String NAME = "PocketCraft";
|
||||
public static final String VERSION = "1.0";
|
||||
|
||||
public static Block stonecutter;
|
||||
public static Block reactor;
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent e) {
|
||||
stonecutter = new BlockStonecutter();
|
||||
reactor = new BlockNetherReactor();
|
||||
GameRegistry.registerBlock(stonecutter, "stonecutter");
|
||||
GameRegistry.registerBlock(reactor, "reactor");
|
||||
GameRegistry.addShapedRecipe(new ItemStack(stonecutter), "cc", "cc", 'c', Blocks.cobblestone);
|
||||
GameRegistry.addShapedRecipe(new ItemStack(reactor), "idi", "idi", "idi", 'i', Items.iron_ingot, 'd', Items.diamond);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package ley.modding.pocketcraft.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
public class BlockNetherReactor extends Block {
|
||||
|
||||
public BlockNetherReactor() {
|
||||
super(Material.iron);
|
||||
setBlockName("reactor");
|
||||
setCreativeTab(CreativeTabs.tabDecorations);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister reg) {
|
||||
blockIcon = reg.registerIcon("reactor");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package ley.modding.pocketcraft.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class BlockStonecutter extends Block {
|
||||
|
||||
private IIcon top;
|
||||
private IIcon side;
|
||||
private IIcon side2;
|
||||
private IIcon bottom;
|
||||
|
||||
public BlockStonecutter() {
|
||||
super(Material.rock);
|
||||
setBlockName("stonecutter");
|
||||
setCreativeTab(CreativeTabs.tabDecorations);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int dir, int meta) {
|
||||
switch (dir) {
|
||||
case 0: return bottom;
|
||||
case 1: return top;
|
||||
case 2:
|
||||
case 3:
|
||||
return side;
|
||||
}
|
||||
return side2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister reg) {
|
||||
top = reg.registerIcon("stonecutter_top");
|
||||
side = reg.registerIcon("stonecutter_side");
|
||||
side2 = reg.registerIcon("furnace_side");
|
||||
bottom = reg.registerIcon("furnace_top");
|
||||
}
|
||||
}
|
BIN
src/main/resources/assets/minecraft/textures/blocks/reactor.png
Normal file
BIN
src/main/resources/assets/minecraft/textures/blocks/reactor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 975 B |
Binary file not shown.
After Width: | Height: | Size: 867 B |
Binary file not shown.
After Width: | Height: | Size: 737 B |
2
src/main/resources/assets/pocketcraft/lang/en_US.lang
Normal file
2
src/main/resources/assets/pocketcraft/lang/en_US.lang
Normal file
|
@ -0,0 +1,2 @@
|
|||
tile.stonecutter.name=Stonecutter
|
||||
tile.reactor.name=Nether Reactor Core
|
Loading…
Reference in a new issue