Small fixes & animation
This commit is contained in:
parent
e25c3a15ab
commit
2e16fdd8bb
5 changed files with 8 additions and 2 deletions
|
@ -92,7 +92,7 @@ public class TenaneaBushFeature extends DefaultFeature {
|
||||||
support.forEach((bpos) -> {
|
support.forEach((bpos) -> {
|
||||||
int count = MHelper.randRange(3, 8, random);
|
int count = MHelper.randRange(3, 8, random);
|
||||||
mut.set(bpos);
|
mut.set(bpos);
|
||||||
if (world.getBlockState(mut.up()).isOf(EndBlocks.TENANEA_LEAVES)) {
|
if (world.isAir(mut) && world.getBlockState(mut.up()).isOf(EndBlocks.TENANEA_LEAVES)) {
|
||||||
BlocksHelper.setWithoutUpdate(world, mut, top);
|
BlocksHelper.setWithoutUpdate(world, mut, top);
|
||||||
for (int i = 1; i < count; i++) {
|
for (int i = 1; i < count; i++) {
|
||||||
mut.setY(mut.getY() - 1);
|
mut.setY(mut.getY() - 1);
|
||||||
|
|
|
@ -143,7 +143,7 @@ public class TenaneaFeature extends DefaultFeature {
|
||||||
support.forEach((bpos) -> {
|
support.forEach((bpos) -> {
|
||||||
int count = MHelper.randRange(3, 8, random);
|
int count = MHelper.randRange(3, 8, random);
|
||||||
mut.set(bpos);
|
mut.set(bpos);
|
||||||
if (world.getBlockState(mut.up()).isOf(EndBlocks.TENANEA_LEAVES)) {
|
if (world.isAir(mut) && world.getBlockState(mut.up()).isOf(EndBlocks.TENANEA_LEAVES)) {
|
||||||
BlocksHelper.setWithoutUpdate(world, mut, top);
|
BlocksHelper.setWithoutUpdate(world, mut, top);
|
||||||
for (int i = 1; i < count; i++) {
|
for (int i = 1; i < count; i++) {
|
||||||
mut.setY(mut.getY() - 1);
|
mut.setY(mut.getY() - 1);
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 548 B After Width: | Height: | Size: 2.3 KiB |
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"animation": {
|
||||||
|
"interpolate": true,
|
||||||
|
"frametime": 32
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue