Bark fix & lotus leaf texture

This commit is contained in:
paulevsGitch 2020-10-20 19:27:35 +03:00
parent c759ff839b
commit d3c279bf53
4 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,7 @@ import java.io.Reader;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.Registry;
import ru.betterend.BetterEnd;
import ru.betterend.interfaces.Patterned; import ru.betterend.interfaces.Patterned;
public class BlockBark extends BlockPillar { public class BlockBark extends BlockPillar {
@ -14,13 +15,15 @@ public class BlockBark extends BlockPillar {
@Override @Override
public String getModelPattern(String block) { public String getModelPattern(String block) {
Identifier blockId = Registry.BLOCK.getId(this); Identifier blockId = Registry.BLOCK.getId(this);
return Patterned.createJson(Patterned.BASE_BLOCK_MODEL, blockId, getName(blockId)); String name = getName(blockId);
return Patterned.createJson(Patterned.BASE_BLOCK_MODEL, BetterEnd.makeID(name), blockId.getPath());
} }
@Override @Override
public String getStatesPattern(Reader data) { public String getStatesPattern(Reader data) {
Identifier blockId = Registry.BLOCK.getId(this); Identifier blockId = Registry.BLOCK.getId(this);
return Patterned.createJson(data, blockId, getName(blockId)); String name = getName(blockId);
return Patterned.createJson(data, BetterEnd.makeID(name), blockId.getPath());
} }
private String getName(Identifier blockId) { private String getName(Identifier blockId) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB