Add crystal and crystal shard
This commit is contained in:
parent
126020371f
commit
b26378ca17
10 changed files with 84 additions and 1 deletions
|
@ -43,6 +43,5 @@ public class BOPBlocks
|
||||||
public static Block dried_dirt;
|
public static Block dried_dirt;
|
||||||
public static Block crag_rock;
|
public static Block crag_rock;
|
||||||
public static Block mud_brick;
|
public static Block mud_brick;
|
||||||
public static Block biome_block;
|
|
||||||
public static Block crystal;
|
public static Block crystal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,4 +19,5 @@ public class BOPItems
|
||||||
public static Item persimmon;
|
public static Item persimmon;
|
||||||
public static Item peach;
|
public static Item peach;
|
||||||
public static Item pear;
|
public static Item pear;
|
||||||
|
public static Item crystal_shard;
|
||||||
}
|
}
|
42
src/main/java/biomesoplenty/common/block/BlockCrystal.java
Normal file
42
src/main/java/biomesoplenty/common/block/BlockCrystal.java
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* 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 java.util.Random;
|
||||||
|
|
||||||
|
import biomesoplenty.api.block.BOPBlock;
|
||||||
|
import biomesoplenty.api.item.BOPItems;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
public class BlockCrystal extends BOPBlock
|
||||||
|
{
|
||||||
|
public BlockCrystal() {
|
||||||
|
super(Material.glass);
|
||||||
|
this.setHardness(0.15F);
|
||||||
|
this.setResistance(5.0F);
|
||||||
|
this.setLightLevel(1.0F);
|
||||||
|
this.setStepSound(Block.soundTypeGlass);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Item getItemDropped(IBlockState state, Random rand, int fortune)
|
||||||
|
{
|
||||||
|
return BOPItems.crystal_shard;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int quantityDropped(Random random)
|
||||||
|
{
|
||||||
|
return 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "biomesoplenty:crystal" }
|
||||||
|
}
|
||||||
|
}
|
|
@ -155,6 +155,7 @@ tile.hard_ice.name=Hardened Ice
|
||||||
tile.dried_dirt.name=Dried Dirt
|
tile.dried_dirt.name=Dried Dirt
|
||||||
tile.crag_rock.name=Crag Rock
|
tile.crag_rock.name=Crag Rock
|
||||||
tile.mud_brick.name=Mud Bricks
|
tile.mud_brick.name=Mud Bricks
|
||||||
|
tile.crystal.name=Celestial Crystal
|
||||||
|
|
||||||
item.fleshchunk.name=Chunk of Flesh
|
item.fleshchunk.name=Chunk of Flesh
|
||||||
item.mudball.name=Mud Ball
|
item.mudball.name=Mud Ball
|
||||||
|
@ -163,3 +164,4 @@ item.turnip_seeds.name=Turnip Seeds
|
||||||
item.persimmon.name=Persimmon
|
item.persimmon.name=Persimmon
|
||||||
item.peach.name=Peach
|
item.peach.name=Peach
|
||||||
item.pear.name=Pear
|
item.pear.name=Pear
|
||||||
|
item.crystal_shard.name=Celestial Crystal Shard
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "biomesoplenty:blocks/crystal"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"parent": "biomesoplenty:block/crystal",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"parent": "builtin/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "biomesoplenty:items/crystal_shard"
|
||||||
|
},
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ -90, 0, 0 ],
|
||||||
|
"translation": [ 0, 1, -3 ],
|
||||||
|
"scale": [ 0.55, 0.55, 0.55 ]
|
||||||
|
},
|
||||||
|
"firstperson": {
|
||||||
|
"rotation": [ 0, -135, 25 ],
|
||||||
|
"translation": [ 0, 4, 2 ],
|
||||||
|
"scale": [ 1.7, 1.7, 1.7 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 439 B |
Binary file not shown.
After Width: | Height: | Size: 437 B |
Loading…
Reference in a new issue