Tomato - Wild tomato appearance
Also reduced chance of wild tomato making fruits
This commit is contained in:
parent
e082e6c28d
commit
007dd0d819
6 changed files with 23 additions and 4 deletions
BIN
graphics/wild-tomato.xcf
Normal file
BIN
graphics/wild-tomato.xcf
Normal file
Binary file not shown.
|
@ -47,9 +47,9 @@ public class PTomato
|
||||||
public static final PropertyBool HIGHEST = PropertyBool.create( "highest" );
|
public static final PropertyBool HIGHEST = PropertyBool.create( "highest" );
|
||||||
public static final PropertyBool WITH_FRUITS = PropertyBool.create( "fruits" );
|
public static final PropertyBool WITH_FRUITS = PropertyBool.create( "fruits" );
|
||||||
private static final AxisAlignedBB[] PLANT_AABB = new AxisAlignedBB[] {
|
private static final AxisAlignedBB[] PLANT_AABB = new AxisAlignedBB[] {
|
||||||
UMaths.makeBlockAABB( 0 , 0 , 0 , 16 , 4 , 0 ) , //
|
UMaths.makeBlockAABB( 0 , 0 , 0 , 16 , 4 , 16 ) , //
|
||||||
UMaths.makeBlockAABB( 0 , 0 , 0 , 16 , 8 , 0 ) , //
|
UMaths.makeBlockAABB( 0 , 0 , 0 , 16 , 8 , 16 ) , //
|
||||||
UMaths.makeBlockAABB( 0 , 0 , 0 , 16 , 12 , 0 ) , //
|
UMaths.makeBlockAABB( 0 , 0 , 0 , 16 , 12 , 16 ) , //
|
||||||
Block.FULL_BLOCK_AABB
|
Block.FULL_BLOCK_AABB
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ public class PTomato
|
||||||
{
|
{
|
||||||
super.updateTick( worldIn , pos , state , rand );
|
super.updateTick( worldIn , pos , state , rand );
|
||||||
if ( state.getValue( PTomato.WITH_FRUITS ) || worldIn.getLightFromNeighbors( pos.up( ) ) < 10
|
if ( state.getValue( PTomato.WITH_FRUITS ) || worldIn.getLightFromNeighbors( pos.up( ) ) < 10
|
||||||
|| rand.nextInt( 100 ) != 0 ) {
|
|| rand.nextInt( 500 ) != 0 ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.grow( worldIn , rand , pos , state );
|
this.grow( worldIn , rand , pos , state );
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"forge_marker": 1 ,
|
||||||
|
"defaults" : {
|
||||||
|
"model": "minecraft:cross"
|
||||||
|
} ,
|
||||||
|
"variants" : {
|
||||||
|
"fruits" : {
|
||||||
|
"true" : { "textures" : { "cross" : "mmm:blocks/plant/wild_tomato/with_fruits" } } ,
|
||||||
|
"false" : { "textures" : { "cross" : "mmm:blocks/plant/wild_tomato/without_fruits" } }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "mmm:blocks/plant/wild_tomato/without_fruits"
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 268 B |
Binary file not shown.
After Width: | Height: | Size: 255 B |
Reference in a new issue