Fixes, missing textures

This commit is contained in:
paulevsGitch 2020-11-27 18:54:20 +03:00
parent f4b20c2f4b
commit 6adbd2580d
25 changed files with 57 additions and 1 deletions

View file

@ -7,6 +7,8 @@ import com.google.common.collect.Lists;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContext; import net.minecraft.loot.context.LootContext;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.BlockView;
import ru.betterend.blocks.BlockProperties.TripleShape; import ru.betterend.blocks.BlockProperties.TripleShape;
import ru.betterend.blocks.basis.BlockVine; import ru.betterend.blocks.basis.BlockVine;
import ru.betterend.registry.EndBlocks; import ru.betterend.registry.EndBlocks;
@ -30,4 +32,9 @@ public class BlockBulbVine extends BlockVine {
return Lists.newArrayList(); return Lists.newArrayList();
} }
} }
@Override
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) {
return false;
}
} }

View file

@ -1,9 +1,12 @@
package ru.betterend.blocks; package ru.betterend.blocks;
import net.minecraft.block.BlockState;
import net.minecraft.client.color.block.BlockColorProvider; import net.minecraft.client.color.block.BlockColorProvider;
import net.minecraft.client.color.item.ItemColorProvider; import net.minecraft.client.color.item.ItemColorProvider;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Vec3i; import net.minecraft.util.math.Vec3i;
import net.minecraft.world.BlockView;
import ru.betterend.blocks.basis.BlockVine; import ru.betterend.blocks.basis.BlockVine;
import ru.betterend.interfaces.IColorProvider; import ru.betterend.interfaces.IColorProvider;
import ru.betterend.util.MHelper; import ru.betterend.util.MHelper;
@ -27,6 +30,11 @@ public class BlockTenaneaFlowers extends BlockVine implements IColorProvider {
return ITEM_PROVIDER; return ITEM_PROVIDER;
} }
@Override
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) {
return false;
}
static { static {
COLORS = new Vec3i[] { COLORS = new Vec3i[] {
new Vec3i(250, 111, 222), new Vec3i(250, 111, 222),

View file

@ -120,7 +120,10 @@ public class BlockVine extends BlockBaseNotFull implements IRenderTypeable, Fert
@Override @Override
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) { public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) {
return true; while (world.getBlockState(pos).getBlock() == this) {
pos = pos.down();
}
return world.getBlockState(pos).isAir();
} }
@Override @Override

View file

@ -0,0 +1,8 @@
{
"variants": {
"age=0": { "model": "betterend:block/bulb_vine_seed_0" },
"age=1": { "model": "betterend:block/bulb_vine_seed_1" },
"age=2": { "model": "betterend:block/bulb_vine_seed_2" },
"age=3": { "model": "betterend:block/bulb_vine_seed_3" }
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_no_distortion",
"textures": {
"texture": "betterend:block/bulb_vine_seed_0"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_no_distortion",
"textures": {
"texture": "betterend:block/bulb_vine_seed_1"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_no_distortion",
"textures": {
"texture": "betterend:block/bulb_vine_seed_2"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/cross_no_distortion",
"textures": {
"texture": "betterend:block/bulb_vine_seed_3"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "betterend:item/bulb_vine_seed"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 586 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 710 B

After

Width:  |  Height:  |  Size: 710 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 B

After

Width:  |  Height:  |  Size: 712 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

After

Width:  |  Height:  |  Size: 398 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 583 B

After

Width:  |  Height:  |  Size: 583 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 645 B

After

Width:  |  Height:  |  Size: 645 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

After

Width:  |  Height:  |  Size: 606 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 590 B

After

Width:  |  Height:  |  Size: 590 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

After

Width:  |  Height:  |  Size: 709 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

After

Width:  |  Height:  |  Size: 621 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 564 B

After

Width:  |  Height:  |  Size: 564 B

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B