Add grass variant with daisies

This commit is contained in:
Cheeserolls 2015-08-07 01:09:28 +01:00
parent ec9e332849
commit b34ac7cc8c
7 changed files with 34 additions and 4 deletions

View file

@ -47,7 +47,7 @@ public class BlockBOPGrass extends BlockGrass implements IBOPBlock, ISustainsPla
// add properties (note we also inherit the SNOWY property from BlockGrass)
public static enum BOPGrassType implements IStringSerializable
{
SPECTRAL_MOSS, SMOLDERING, LOAMY, SANDY, SILTY, ORIGIN, OVERGROWN_NETHERRACK;
SPECTRAL_MOSS, SMOLDERING, LOAMY, SANDY, SILTY, ORIGIN, OVERGROWN_NETHERRACK, DAISY;
@Override
public String getName()
{
@ -444,7 +444,7 @@ public class BlockBOPGrass extends BlockGrass implements IBOPBlock, ISustainsPla
return BOPBlocks.dirt.getDefaultState().withProperty(BlockBOPDirt.VARIANT, BlockBOPDirt.BOPDirtType.SILTY);
case OVERGROWN_NETHERRACK:
return Blocks.netherrack.getDefaultState();
case SMOLDERING: case ORIGIN: default:
case SMOLDERING: case ORIGIN: case DAISY: default:
return Blocks.dirt.getStateFromMeta(BlockDirt.DirtType.DIRT.getMetadata());
}
}
@ -497,7 +497,7 @@ public class BlockBOPGrass extends BlockGrass implements IBOPBlock, ISustainsPla
break;
// origin grass spreads to any kind of dirt
case ORIGIN:
case ORIGIN: case DAISY:
if ((target.getBlock() == Blocks.dirt && target.getValue(BlockDirt.VARIANT) == BlockDirt.DirtType.DIRT) || (target.getBlock() == BOPBlocks.dirt && Boolean.FALSE.equals(target.getValue(BlockBOPDirt.COARSE))))
{
return BOPBlocks.grass.getDefaultState().withProperty(BlockBOPGrass.VARIANT, BlockBOPGrass.BOPGrassType.ORIGIN);

View file

@ -13,6 +13,8 @@
"snowy=false,variant=origin": { "model": "biomesoplenty:origin_grass_block" },
"snowy=true,variant=origin": { "model": "biomesoplenty:origin_grass_block_snowed" },
"snowy=false,variant=overgrown_netherrack": { "model": "biomesoplenty:overgrown_netherrack" },
"snowy=true,variant=overgrown_netherrack": { "model": "biomesoplenty:overgrown_netherrack" }
"snowy=true,variant=overgrown_netherrack": { "model": "biomesoplenty:overgrown_netherrack" },
"snowy=false,variant=daisy": { "model": "biomesoplenty:daisy_grass_block" },
"snowy=true,variant=daisy": { "model": "biomesoplenty:daisy_grass_block_snowed" }
}
}

View file

@ -0,0 +1,9 @@
{
"parent": "block/cube_bottom_top",
"textures": {
"particle": "blocks/dirt",
"bottom": "blocks/dirt",
"top": "biomesoplenty:blocks/grass_daisy_top",
"side": "biomesoplenty:blocks/grass_daisy_side"
}
}

View file

@ -0,0 +1,9 @@
{
"parent": "block/cube_bottom_top",
"textures": {
"particle": "blocks/dirt",
"bottom": "blocks/dirt",
"top": "biomesoplenty:blocks/grass_daisy_top",
"side": "blocks/grass_side_snowed"
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "biomesoplenty:block/daisy_grass_block",
"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: 563 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B