Small fixes
This commit is contained in:
parent
a89b2d7d18
commit
abefc062ee
9 changed files with 25 additions and 26 deletions
|
@ -43,7 +43,7 @@ public class EndPortalBlock extends NetherPortalBlock implements IRenderTypeable
|
||||||
public static final IntProperty PORTAL = BlockProperties.PORTAL;
|
public static final IntProperty PORTAL = BlockProperties.PORTAL;
|
||||||
|
|
||||||
public EndPortalBlock() {
|
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
|
@Override
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class LayerOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
private float clampCoverage(float value) {
|
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) {
|
private int clampCenter(int value) {
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
{
|
{
|
||||||
"variants": {
|
"variants": {
|
||||||
"axis=x": {
|
"axis=x": { "model": "betterend:block/end_portal" },
|
||||||
"model": "betterend:block/end_portal_ax"
|
"axis=z": { "model": "betterend:block/end_portal", "y": 90 }
|
||||||
},
|
|
||||||
"axis=z": {
|
|
||||||
"model": "betterend:block/end_portal_az"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"defaultMaterial": "betterend:glow_all"
|
||||||
|
}
|
|
@ -8,8 +8,8 @@
|
||||||
"from": [ 0, 0, 6 ],
|
"from": [ 0, 0, 6 ],
|
||||||
"to": [ 16, 16, 10 ],
|
"to": [ 16, 16, 10 ],
|
||||||
"faces": {
|
"faces": {
|
||||||
"north": { "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" }
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal", "tintindex": 0 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -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" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -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 |
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Loading…
Add table
Add a link
Reference in a new issue