Add generic block types: ash_stone, crag_rock, dried_dirt, hard_dirt, hard_ice, hard_sand, mud_brick

This commit is contained in:
Cheeserolls 2015-03-27 16:36:07 +00:00
parent 7d21162201
commit 04a2f94ac7
31 changed files with 205 additions and 0 deletions

View file

@ -36,4 +36,13 @@ public class BOPBlocks
public static Block dirt;
public static Block stone_formations;
public static Block fruit_block;
public static Block ash_stone;
public static Block hard_sand;
public static Block hard_dirt;
public static Block hard_ice;
public static Block dried_dirt;
public static Block crag_rock;
public static Block mud_brick;
public static Block biome_block;
public static Block crystal;
}

View file

@ -0,0 +1,31 @@
/*******************************************************************************
* Copyright 2014, the Biomes O' Plenty Team
*
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
*
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
******************************************************************************/
package biomesoplenty.common.block;
import biomesoplenty.api.block.BOPBlock;
import biomesoplenty.common.util.inventory.CreativeTabBOP;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class BlockBOPGeneric extends BOPBlock
{
public BlockBOPGeneric() {
// use rock as default material
this(Material.rock);
}
public BlockBOPGeneric(Material material)
{
super(material);
// set some defaults
this.setHardness(1.0F);
this.setStepSound(Block.soundTypePiston);
}
}

View file

@ -10,7 +10,10 @@ package biomesoplenty.common.init;
import static biomesoplenty.api.block.BOPBlocks.*;
import net.minecraft.block.Block;
import net.minecraft.block.Block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;
import biomesoplenty.api.block.BOPBlock;
@ -18,6 +21,7 @@ import biomesoplenty.common.block.BlockAsh;
import biomesoplenty.common.block.BlockBOPDirt;
import biomesoplenty.common.block.BlockBOPFlower;
import biomesoplenty.common.block.BlockBOPFlower2;
import biomesoplenty.common.block.BlockBOPGeneric;
import biomesoplenty.common.block.BlockBOPGrass;
import biomesoplenty.common.block.BlockBOPLilypad;
import biomesoplenty.common.block.BlockBOPLog;
@ -71,6 +75,20 @@ public class ModBlocks
stone_formations = registerBlock(new BlockStoneFormations(),"stone_formations");
fruit_block = registerBlock(new BlockFruit(), "fruit_block");
// generics
ash_stone = registerBlock(new BlockBOPGeneric(),"ash_stone");
crag_rock = registerBlock((new BlockBOPGeneric()).setStepSound(Block.soundTypeStone),"crag_rock");
dried_dirt = registerBlock(new BlockBOPGeneric(),"dried_dirt"); dried_dirt.setHarvestLevel("pickaxe",0);
hard_dirt = registerBlock((new BlockBOPGeneric()).setHardness(0.7F),"hard_dirt");
hard_ice = registerBlock((new BlockBOPGeneric()).setHardness(0.75F),"hard_ice");
hard_sand = registerBlock((new BlockBOPGeneric(Material.sand)).setHardness(0.9F).setStepSound(Block.soundTypeSand),"hard_sand");
mud_brick = registerBlock((new BlockBOPGeneric()).setResistance(2.0F),"mud_brick");
//TODO biome_block & crystal are in 1.7 BlockBOPGeneric but actually have some special powers
}
private static Block registerBlock(Block block, String name) {
return registerBlock((BOPBlock)block,name);
}
private static Block registerBlock(BOPBlock block, String name)

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "biomesoplenty:ash_stone" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "biomesoplenty:crag_rock" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "biomesoplenty:dried_dirt" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "biomesoplenty:hard_dirt" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "biomesoplenty:hard_ice" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "biomesoplenty:hard_sand" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "biomesoplenty:mud_brick" }
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "biomesoplenty:blocks/ash_stone"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "biomesoplenty:blocks/crag_rock"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "biomesoplenty:blocks/dried_dirt"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "biomesoplenty:blocks/hard_dirt"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "biomesoplenty:blocks/hard_ice"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "biomesoplenty:blocks/hard_sand"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "biomesoplenty:blocks/mud_brick"
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "biomesoplenty:block/ash_stone",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "biomesoplenty:block/crag_rock",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "biomesoplenty:block/dried_dirt",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "biomesoplenty:block/hard_dirt",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "biomesoplenty:block/hard_ice",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "biomesoplenty:block/hard_sand",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "biomesoplenty:block/mud_brick",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B