Skip to content

Commit

Permalink
Add a post to picket fence corners, verbump
Browse files Browse the repository at this point in the history
Also rotated the picket fence textures 90° to
fit the posts better.

The post allows me to remove the BlockMixin that
I had to eliminate the visual issues from placing
torches on picket fences.

The mixin caused an incompatibility with the
optimization mod Lithium, so I just removed it.
  • Loading branch information
Juuxel committed Feb 7, 2020
1 parent 6d3db40 commit f9e62b9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 63 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G -XX:+UseG1GC
kotlin.code.style = official

# Adorn
mod-version = 1.7.0
mod-version = 1.7.1
local-build = false

# Minecraft
Expand Down
27 changes: 0 additions & 27 deletions src/main/java/juuxel/adorn/mixin/BlockMixin.java

This file was deleted.

19 changes: 13 additions & 6 deletions src/main/kotlin/juuxel/adorn/block/PicketFenceBlock.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package juuxel.adorn.block

import juuxel.adorn.util.buildShapeRotationsFromNorth
import juuxel.adorn.util.mergeIntoShapeMap
import juuxel.adorn.util.mergeShapeMaps
import net.minecraft.block.Block
import net.minecraft.block.BlockState
Expand Down Expand Up @@ -105,14 +106,20 @@ class PicketFenceBlock(settings: Settings) : Block(settings), Waterloggable {
val WATERLOGGED: BooleanProperty = Properties.WATERLOGGED

private val STRAIGHT_OUTLINE_SHAPES = buildShapeRotationsFromNorth(0, 0, 7, 16, 16, 9)
private val CORNER_OUTLINE_SHAPES = mergeShapeMaps(
buildShapeRotationsFromNorth(0, 0, 7, 9, 16, 9),
buildShapeRotationsFromNorth(7, 0, 9, 9, 16, 16)
private val CORNER_OUTLINE_SHAPES = mergeIntoShapeMap(
mergeShapeMaps(
buildShapeRotationsFromNorth(0, 0, 7, 9, 16, 9),
buildShapeRotationsFromNorth(7, 0, 9, 9, 16, 16)
),
PlatformBlock.POST_SHAPE
)
private val STRAIGHT_COLLISION_SHAPES = buildShapeRotationsFromNorth(0, 0, 7, 16, 24, 9)
private val CORNER_COLLISION_SHAPES = mergeShapeMaps(
buildShapeRotationsFromNorth(0, 0, 7, 9, 24, 9),
buildShapeRotationsFromNorth(7, 0, 9, 9, 24, 16)
private val CORNER_COLLISION_SHAPES = mergeIntoShapeMap(
mergeShapeMaps(
buildShapeRotationsFromNorth(0, 0, 7, 9, 24, 9),
buildShapeRotationsFromNorth(7, 0, 9, 9, 24, 16)
),
createCuboidShape(6.0, 0.0, 6.0, 10.0, 24.0, 10.0)
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,6 @@
"down": { "texture": "#tex", "cullface": "down" }
}
},
{
"from": [5, 0, 7],
"to": [7, 16, 8],
"faces": {
"north": { "texture": "#tex" },
"south": { "texture": "#tex" },
"west": { "texture": "#tex" },
"east": { "texture": "#tex" },
"up": { "texture": "#tex", "cullface": "up" },
"down": { "texture": "#tex", "cullface": "down" }
}
},
{
"from": [8, 0, 9],
"to": [9, 16, 11],
"faces": {
"north": { "texture": "#tex" },
"south": { "texture": "#tex" },
"west": { "texture": "#tex" },
"east": { "texture": "#tex" },
"up": { "texture": "#tex", "cullface": "up" },
"down": { "texture": "#tex", "cullface": "down" }
}
},
{
"from": [8, 0, 13],
"to": [9, 16, 15],
Expand All @@ -55,7 +31,7 @@
},
{
"from": [0, 3, 8],
"to": [8, 6, 9],
"to": [6, 6, 9],
"faces": {
"north": { "texture": "#tex" },
"south": { "texture": "#tex" },
Expand All @@ -67,7 +43,7 @@
},
{
"from": [0, 9, 8],
"to": [8, 12, 9],
"to": [6, 12, 9],
"faces": {
"north": { "texture": "#tex" },
"south": { "texture": "#tex" },
Expand All @@ -78,7 +54,7 @@
}
},
{
"from": [7, 3, 9],
"from": [7, 3, 10],
"to": [8, 6, 16],
"faces": {
"north": { "texture": "#tex" },
Expand All @@ -90,7 +66,7 @@
}
},
{
"from": [7, 9, 9],
"from": [7, 9, 10],
"to": [8, 12, 16],
"faces": {
"north": { "texture": "#tex" },
Expand All @@ -100,6 +76,18 @@
"up": { "texture": "#tex" },
"down": { "texture": "#tex" }
}
},
{
"from": [6, 0, 6],
"to": [10, 16, 10],
"faces": {
"north": { "texture": "#tex" },
"south": { "texture": "#tex" },
"west": { "texture": "#tex" },
"east": { "texture": "#tex" },
"up": { "texture": "#tex", "cullface": "up" },
"down": { "texture": "#tex", "cullface": "down" }
}
}
]
}
Binary file modified src/main/resources/assets/adorn/textures/block/picket_fence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/main/resources/mixins.adorn.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"mixins": [
"fluidloggable.FluidloggableMixin",
"fluidloggable.FluidUtilMixin",
"BlockMixin",
"BlockEntityMixin",
"BubbleColumnBlockMixin",
"EntityMixin",
Expand Down

0 comments on commit f9e62b9

Please sign in to comment.