Small fixes

This commit is contained in:
paulevsGitch 2021-03-18 01:42:11 +03:00
parent a89b2d7d18
commit abefc062ee
9 changed files with 25 additions and 26 deletions

View file

@ -43,7 +43,7 @@ public class EndPortalBlock extends NetherPortalBlock implements IRenderTypeable
public static final IntProperty PORTAL = BlockProperties.PORTAL;
public EndPortalBlock() {
super(FabricBlockSettings.copyOf(Blocks.NETHER_PORTAL).resistance(Blocks.BEDROCK.getBlastResistance()).luminance(state -> 12));
super(FabricBlockSettings.copyOf(Blocks.NETHER_PORTAL).resistance(Blocks.BEDROCK.getBlastResistance()).luminance(15));
}
@Override

View file

@ -33,7 +33,7 @@ public class LayerOptions {
}
private float clampCoverage(float value) {
return MathHelper.clamp(value, 0, 1) * 2 - 1;
return 0.9999F - MathHelper.clamp(value, 0, 1) * 2;
}
private int clampCenter(int value) {

View file

@ -1,10 +1,6 @@
{
"variants": {
"axis=x": {
"model": "betterend:block/end_portal_ax"
},
"axis=z": {
"model": "betterend:block/end_portal_az"
}
"axis=x": { "model": "betterend:block/end_portal" },
"axis=z": { "model": "betterend:block/end_portal", "y": 90 }
}
}

View file

@ -0,0 +1,3 @@
{
"defaultMaterial": "betterend:glow_all"
}

View file

@ -8,8 +8,8 @@
"from": [ 0, 0, 6 ],
"to": [ 16, 16, 10 ],
"faces": {
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal" }
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal", "tintindex": 0 },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal", "tintindex": 0 }
}
}
]

View file

@ -1,16 +0,0 @@
{
"textures": {
"particle": "betterend:block/end_portal",
"portal": "betterend:block/end_portal"
},
"elements": [
{
"from": [ 6, 0, 0 ],
"to": [ 10, 16, 16 ],
"faces": {
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal" },
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal" }
}
}
]
}

View file

@ -0,0 +1,16 @@
{
"textures": {
"particle": "betterend:block/end_portal_grey",
"portal": "betterend:block/end_portal_grey"
},
"elements": [
{
"from": [ 0, 0, 6 ],
"to": [ 16, 16, 10 ],
"faces": {
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal", "tintindex": 0 },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal", "tintindex": 0 }
}
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB