From ecd11251a39ec8d9841ef36311ed82482777996f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 25 May 2014 23:28:55 +0200 Subject: [PATCH] Initial commit --- .gitignore | 1 + .../universe_factory/minecraft/test/Test.java | 32 ++++++++++++++++++ .../minecraft/test/blocks/BlockWoodTest.java | 21 ++++++++++++ .../assets/neoraider_test/lang/en_US.lang | 1 + .../textures/blocks/planks_test.png | Bin 0 -> 618 bytes .../textures/items/testItem.png | Bin 0 -> 618 bytes resources/mcmod.info | 16 +++++++++ 7 files changed, 71 insertions(+) create mode 100644 .gitignore create mode 100644 java/net/universe_factory/minecraft/test/Test.java create mode 100644 java/net/universe_factory/minecraft/test/blocks/BlockWoodTest.java create mode 100644 resources/assets/neoraider_test/lang/en_US.lang create mode 100644 resources/assets/neoraider_test/textures/blocks/planks_test.png create mode 100644 resources/assets/neoraider_test/textures/items/testItem.png create mode 100644 resources/mcmod.info diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/java/net/universe_factory/minecraft/test/Test.java b/java/net/universe_factory/minecraft/test/Test.java new file mode 100644 index 0000000..432bce9 --- /dev/null +++ b/java/net/universe_factory/minecraft/test/Test.java @@ -0,0 +1,32 @@ +package net.universe_factory.minecraft.test; + +import net.minecraft.init.Blocks; +import net.minecraft.item.crafting.CraftingManager; +import net.minecraft.block.Block; +import cpw.mods.fml.common.Mod; +import cpw.mods.fml.common.Mod.EventHandler; +import cpw.mods.fml.common.Mod.Instance; +import cpw.mods.fml.common.event.FMLInitializationEvent; +import cpw.mods.fml.common.registry.GameRegistry; +import cpw.mods.fml.common.registry.LanguageRegistry; +import net.universe_factory.minecraft.test.blocks.*; +import net.universe_factory.minecraft.test.recipes.RecipesWoodTest; + + +@Mod(modid = Test.MODID, version = Test.VERSION) +public class Test { + public static final String MODID = "neoraider_test"; + public static final String VERSION = "1"; + + public static final Block blockWoodTest = new BlockWoodTest(); + + @Instance(value = MODID) + public static Test instance; + + @EventHandler + public void init(FMLInitializationEvent event) { + GameRegistry.registerBlock(blockWoodTest, "blockWoodTest"); + + + } +} diff --git a/java/net/universe_factory/minecraft/test/blocks/BlockWoodTest.java b/java/net/universe_factory/minecraft/test/blocks/BlockWoodTest.java new file mode 100644 index 0000000..223837a --- /dev/null +++ b/java/net/universe_factory/minecraft/test/blocks/BlockWoodTest.java @@ -0,0 +1,21 @@ +package net.universe_factory.minecraft.test.blocks; + +import net.minecraft.block.Block; +import net.minecraft.block.material.Material; +import net.minecraft.creativetab.CreativeTabs; +import net.universe_factory.minecraft.test.Test; + +public class BlockWoodTest extends Block { + public BlockWoodTest() { + super(Material.wood); + + setHardness(2.0f); + setResistance(5.0f); + setStepSound(Block.soundTypeWood); + setBlockName("woodTest"); + setCreativeTab(CreativeTabs.tabBlock); + setHarvestLevel("axe", 0); + + setBlockTextureName(Test.MODID + ":planks_test"); + } +} diff --git a/resources/assets/neoraider_test/lang/en_US.lang b/resources/assets/neoraider_test/lang/en_US.lang new file mode 100644 index 0000000..f511665 --- /dev/null +++ b/resources/assets/neoraider_test/lang/en_US.lang @@ -0,0 +1 @@ +tile.woodTest.name=Test Wood diff --git a/resources/assets/neoraider_test/textures/blocks/planks_test.png b/resources/assets/neoraider_test/textures/blocks/planks_test.png new file mode 100644 index 0000000000000000000000000000000000000000..55df4d6a383c6258dec21491a9f1e8274823ca69 GIT binary patch literal 618 zcmV-w0+s!VP)$GEGc$MYZD~spuFxN7nqZ6@ zqpn@T#>5Bk349ix$hB|af*2PB)rC&3%eEYJ#dx#vVz=>X+``7?WrYyF3JbxVmMcXqk_lux zu+>b176+;rWMT+@Y9^BhSNqNVjbP&rlv-MWNf=^Q!d{UMRMA)BNfqSOoN965QVqR@ zD+PLPdrf5s#Ar2OukSxWPNznR6~KB znsYcUp9A#};ZY(l?=_WrFMo4!hb<&8Ze=Qp^&wkZ!@k(nXW7QuT)~N!laR9c8t-b&pKP|qyI%7ro2~H literal 0 HcmV?d00001 diff --git a/resources/assets/neoraider_test/textures/items/testItem.png b/resources/assets/neoraider_test/textures/items/testItem.png new file mode 100644 index 0000000000000000000000000000000000000000..55df4d6a383c6258dec21491a9f1e8274823ca69 GIT binary patch literal 618 zcmV-w0+s!VP)$GEGc$MYZD~spuFxN7nqZ6@ zqpn@T#>5Bk349ix$hB|af*2PB)rC&3%eEYJ#dx#vVz=>X+``7?WrYyF3JbxVmMcXqk_lux zu+>b176+;rWMT+@Y9^BhSNqNVjbP&rlv-MWNf=^Q!d{UMRMA)BNfqSOoN965QVqR@ zD+PLPdrf5s#Ar2OukSxWPNznR6~KB znsYcUp9A#};ZY(l?=_WrFMo4!hb<&8Ze=Qp^&wkZ!@k(nXW7QuT)~N!laR9c8t-b&pKP|qyI%7ro2~H literal 0 HcmV?d00001 diff --git a/resources/mcmod.info b/resources/mcmod.info new file mode 100644 index 0000000..dbf5348 --- /dev/null +++ b/resources/mcmod.info @@ -0,0 +1,16 @@ +[ +{ + "modid": "neoraider_test", + "name": "NeoRaider's Test Mod", + "description": "Foo", + "version": "${version}", + "mcversion": "${mcversion}", + "url": "", + "updateUrl": "", + "authors": ["NeoRaider"], + "credits": "Bar", + "logoFile": "", + "screenshots": [], + "dependencies": [] +} +]