Skip to content

Commit

Permalink
Merge pull request #1 from TheIcyOne/master
Browse files Browse the repository at this point in the history
update
  • Loading branch information
johnfg12 authored Jun 17, 2016
2 parents d5c8652 + f517d18 commit 0224a7f
Show file tree
Hide file tree
Showing 20 changed files with 183 additions and 30 deletions.
20 changes: 0 additions & 20 deletions src/main/java/headfishindustries/civilisedideas/BlockOre1.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import headfishindustries.civilisedideas.block.BlockBonerock;
import headfishindustries.civilisedideas.block.BlockRedrock;
import headfishindustries.civilisedideas.block.BlockSlindWeed;
import headfishindustries.civilisedideas.block.BlockWilliWeed;
import headfishindustries.civilisedideas.commands.GetDim;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
Expand All @@ -25,15 +32,22 @@ public class CivilisedIdeas {
@Instance(value = "ci")
public static CivilisedIdeas instance;

public static Item itemGrapple;
public static Block blockRedrock = new BlockRedrock();
public static Block blockBonerock = new BlockBonerock();
public static Block blockWilliWeed = new BlockWilliWeed();
public static Block blockSlindWeed = new BlockSlindWeed();

public static Entity entityGrapple;

public static Block BlockOre1;{
BlockOre1 = new BlockOre1();
GameRegistry.registerBlock(BlockOre1, "BlockOre1");
}
//public static Item itemGrapple;

//public static Entity entityGrapple;

public static CreativeTabs hypoTab = new CreativeTabs("Hypovolemia"){
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem() {
return new ItemStack(blockBonerock).getItem();
}
};

@EventHandler
public void serverStarting(FMLServerStartingEvent event){
Expand All @@ -45,9 +59,12 @@ public void serverStarting(FMLServerStartingEvent event){
@EventHandler
public void preInit(FMLPreInitializationEvent event){
//Block and Item Initialization
itemGrapple = new ItemGrapple();

//itemGrapple = new ItemGrapple();

GameRegistry.registerBlock(blockBonerock, "Bonerock").setCreativeTab(hypoTab);
GameRegistry.registerBlock(blockRedrock, "Redrock").setCreativeTab(hypoTab);
GameRegistry.registerBlock(blockSlindWeed, "SlindWeed").setCreativeTab(hypoTab);
GameRegistry.registerBlock(blockWilliWeed, "WilliWeed").setCreativeTab(hypoTab);

}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package headfishindustries.civilisedideas.block;

import java.util.ArrayList;
import java.util.Random;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Instance;
import headfishindustries.civilisedideas.CivilisedIdeas;
import net.minecraft.block.Block;
import net.minecraft.block.BlockOre;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

public class BlockBonerock extends BlockOre{

public BlockBonerock() {
super();
this.setHarvestLevel("pickaxe", 1);
setBlockName("ci_rockBone");
this.setHardness(1.75F);
this.setResistance(12.5F);
setBlockTextureName("ci:rockBone");
}


@Override
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int meta, int fortune){
ArrayList<ItemStack> drop = new ArrayList<ItemStack>();
drop.add(new ItemStack(Items.skull, world.rand.nextInt(2) + 1 + fortune, 0));
drop.add(new ItemStack(Items.bone, world.rand.nextInt(4) + 2 + fortune));
return drop;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package headfishindustries.civilisedideas.block;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Instance;
import headfishindustries.civilisedideas.CivilisedIdeas;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;

public class BlockRedrock extends Block{

public BlockRedrock() {
super(Material.rock);
setBlockName("ci_rockRed");
setBlockTextureName("ci:rockRed");
this.setHarvestLevel("pickaxe", 1);
this.setHardness(1.5F);
this.setResistance(10.0F);
this.setStepSound(soundTypeStone);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package headfishindustries.civilisedideas.block;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import headfishindustries.civilisedideas.CivilisedIdeas;
import net.minecraft.block.Block;
import net.minecraft.block.BlockBush;
import net.minecraft.block.BlockFlower;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.init.Blocks;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;

public class BlockSlindWeed extends BlockBush {

private IIcon icon;

public BlockSlindWeed() {
super(Material.plants);
setBlockName("ci_flowerSlindWeed");
setHardness(0.2F);
setStepSound(soundTypeGrass);
setTickRandomly(false);
setBlockBounds(0.05F, 0.0F, 0.1F, 1.0F, 0.3F, 1.0F);
setBlockTextureName("ci:SlindWeed");
}

@SideOnly(Side.CLIENT)
public IIcon getIcon(int par1, int par2){
return this.icon;
}

@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister par1){
this.icon = par1.registerIcon("ci:slindWeed");

}

@Override
protected boolean canPlaceBlockOn(Block block){
return block == CivilisedIdeas.blockRedrock || block == CivilisedIdeas.blockBonerock || block == Blocks.grass || block == Blocks.dirt || block == Blocks.farmland;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package headfishindustries.civilisedideas.block;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import headfishindustries.civilisedideas.CivilisedIdeas;
import net.minecraft.block.Block;
import net.minecraft.block.BlockBush;
import net.minecraft.block.BlockFlower;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.util.IIcon;

public class BlockWilliWeed extends BlockBush {

private IIcon icon;

public BlockWilliWeed() {
super(Material.plants);
setBlockName("ci_flowerWilliWeed");
setHardness(0.2F);
setStepSound(soundTypeGrass);
setTickRandomly(false);
setBlockBounds(0.1F, 0.0F, 0.1F, 0.9F, 0.8F, 0.9F);
setBlockTextureName("ci:WilliWeed");
}

@SideOnly(Side.CLIENT)
public IIcon getIcon(int par1, int par2){
return this.icon;
}

@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister par1){
this.icon = par1.registerIcon("ci:williWeed");

}

@Override
protected boolean canPlaceBlockOn(Block block){
return block == CivilisedIdeas.blockRedrock || block == CivilisedIdeas.blockBonerock || block == Blocks.grass || block == Blocks.dirt || block == Blocks.farmland;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;

public class GetDim extends CommandBase {
@Override
Expand Down Expand Up @@ -43,6 +44,6 @@ public List getCommandAliases(){
@Override
public void processCommand(ICommandSender sender, String[] idontneedthis){
EntityPlayer player = getCommandSenderAsPlayer(sender);
player.addChatMessage(new ChatComponentText("You are in dimension number " + player.dimension));
player.addChatMessage(new ChatComponentText(EnumChatFormatting.DARK_BLUE + "You are in dimension number " + player.dimension));
}
}
5 changes: 5 additions & 0 deletions src/main/resources/assets/ci/lang/en_US.lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tile.ci_rockRed.name=Red Rock
tile.ci_rockBone.name=Bone Rock
tile.ci_flowerWilliWeed.name=Williweed
tile.ci_flowerSlindWeed.name=Slindweed
itemGroup.Hypovolemia=Hypovolemia
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0224a7f

Please sign in to comment.