Permalink
Browse files

Added Paradisian Wheat Grass

  • Loading branch information...
Ri5ux committed Oct 30, 2018
1 parent 0e55dac commit 983185649203300433a42635c0dd4fd2073fe5ba
@@ -0,0 +1,82 @@
package org.avp.block;
import java.util.Random;
import net.minecraft.block.BlockBush;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class BlockWheatGrass extends BlockBush
{
protected static final AxisAlignedBB WHEAT_GRASS_AABB = new AxisAlignedBB(0.09999999403953552D, 0.0D, 0.09999999403953552D, 0.8999999761581421D, 0.800000011920929D, 0.8999999761581421D);
public BlockWheatGrass()
{
super();
this.setDefaultState(this.blockState.getBaseState());
}
@Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
{
return WHEAT_GRASS_AABB;
}
@Override
public int quantityDroppedWithBonus(int fortune, Random random)
{
return 1 + random.nextInt(fortune * 2 + 1);
}
@SideOnly(Side.CLIENT)
public void initModel()
{
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, new ModelResourceLocation(getRegistryName(), "inventory"));
}
@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess worldIn, BlockPos pos, EnumFacing side)
{
return false;
}
@Override
public boolean isBlockNormalCube(IBlockState blockState)
{
return false;
}
@Override
public BlockRenderLayer getRenderLayer()
{
return BlockRenderLayer.CUTOUT_MIPPED;
}
@Override
public boolean isOpaqueCube(IBlockState state)
{
return false;
}
@Override
public boolean isFullCube(IBlockState state)
{
return false;
}
@Override
public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face)
{
return false;
}
}
@@ -0,0 +1,24 @@
{
"forge_marker": 1,
"defaults": {
"textures": {
"Material": "avp:blocks/paradisian_wheat_grass"
},
"model": "avp:paradisian_wheat_grass.obj",
"custom":{
"flip-v":true
}
},
"variants": {
"normal": [
{
}
],
"inventory": [
{
}
]
}
}
@@ -0,0 +1,5 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl texture
map_Kd avp:blocks/paradisian_wheat_grass
@@ -0,0 +1,106 @@
mtllib paradisian_wheat_grass.mtl
usemtl texture
o grassN
v 0.968750 -0.000000 0.062500
v 0.031250 -0.000000 0.062500
v 0.031250 1.609850 -0.158881
v 0.968750 1.609849 -0.158881
vt 0.500000 0.593750
vt 0.734375 0.593750
vt 0.734375 1.000000
vt 0.500000 1.000000
vt 0.968750 0.593750
vt 0.968750 1.000000
f 1/1 2/2 3/3 4/4
f 2/2 1/5 4/6 3/3
o grassS
v 0.968750 -0.000000 0.937500
v 0.031250 -0.000000 0.937500
v 0.031250 1.609850 1.158881
v 0.968750 1.609849 1.158881
vt 0.500000 0.593750
vt 0.734375 0.593750
vt 0.734375 1.000000
vt 0.500000 1.000000
vt 0.968750 0.593750
vt 0.968750 1.000000
f 5/7 6/8 7/9 8/10
f 6/8 5/11 8/12 7/9
o grassW
v 0.062500 -0.000000 0.968750
v 0.062500 -0.000000 0.031250
v -0.158881 1.609849 0.031250
v -0.158881 1.609849 0.968750
vt 0.000000 0.093750
vt 0.234375 0.093750
vt 0.234375 0.500000
vt 0.000000 0.500000
vt 0.468750 0.093750
vt 0.468750 0.500000
f 9/13 10/14 11/15 12/16
f 10/14 9/17 12/18 11/15
o grassE
v 0.937500 -0.000000 0.968750
v 0.937500 -0.000000 0.031250
v 1.158881 1.609849 0.031250
v 1.158881 1.609849 0.968750
vt 0.500000 0.093750
vt 0.734375 0.093750
vt 0.734375 0.500000
vt 0.500000 0.500000
vt 0.968750 0.093750
vt 0.968750 0.500000
f 13/19 14/20 15/21 16/22
f 14/20 13/23 16/24 15/21
o wheat01
v 0.835195 -0.000000 0.172325
v 0.164805 -0.000000 0.827675
v 0.164805 1.875000 0.827675
v 0.835195 1.875000 0.172325
vt 0.000000 0.531250
vt 0.234375 0.531250
vt 0.234375 1.000000
vt 0.000000 1.000000
vt 0.468750 0.531250
vt 0.468750 1.000000
f 17/25 18/26 19/27 20/28
f 18/26 17/29 20/30 19/27
o wheat02
v 0.835195 -0.000000 0.827675
v 0.164805 -0.000000 0.172325
v 0.164805 1.875000 0.172325
v 0.835195 1.875000 0.827675
vt 0.234375 0.531250
vt 0.000000 0.531250
vt 0.000000 1.000000
vt 0.234375 1.000000
vt 0.468750 0.531250
vt 0.468750 1.000000
f 21/31 22/32 23/33 24/34
f 22/35 21/31 24/34 23/36
o grassM1
v 0.968750 -0.000000 0.500000
v 0.031250 -0.000000 0.500000
v 0.031250 1.625000 0.500000
v 0.968750 1.625000 0.500000
vt 0.500000 0.093750
vt 0.734375 0.093750
vt 0.734375 0.500000
vt 0.500000 0.500000
vt 0.968750 0.093750
vt 0.968750 0.500000
f 25/37 26/38 27/39 28/40
f 26/38 25/41 28/42 27/39
o grassM2
v 0.500000 -0.000000 0.968750
v 0.500000 -0.000000 0.031250
v 0.500000 1.625000 0.031250
v 0.500000 1.625000 0.968750
vt 0.000000 0.093750
vt 0.234375 0.093750
vt 0.234375 0.500000
vt 0.000000 0.500000
vt 0.468750 0.093750
vt 0.468750 0.500000
f 29/43 30/44 31/45 32/46
f 30/44 29/47 32/48 31/45

0 comments on commit 9831856

Please sign in to comment.