Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.3.11.110021

- Add matching pieces for coarse dirt, podzol, mycelium and clay.
- Craft coarse dirt and podzol slabs from three matching blocks placed diagonally.

## 0.3.10.110021

Expand Down
7 changes: 5 additions & 2 deletions docs/GAMEPLAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@ For raw stone, snow, decorative sandstone and mossy/cracked/chiseled stone brick
slabs, use two full blocks diagonally to make four slabs. Their full-block rows
already belong to native recipes, which remain unchanged.

For coarse dirt and podzol slabs, put three matching blocks diagonally in a
crafting table to make six slabs.

For decorative sandstone and mossy/cracked/chiseled stone brick stairs, use six
matching regular slabs in the stair pattern to make four stairs. Their full-block
stair patterns still produce vanilla's ordinary sandstone or stone brick stairs.

Horizontal and vertical step items can also be rotated one for one. Either
kind can be cut into corners. Soil steps use full dirt, coarse dirt, podzol,
mycelium or grass blocks because their horizontal slabs are outside this mod.
kind can be cut into corners. You can also make soil steps from two matching
full blocks placed diagonally.

Smooth stone has no obtainable full block item in Minecraft 1.10.2. Use
vanilla smooth stone slabs for its stairs and walls; the output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

/** Stable patterns and quantities, independent of Minecraft initialization. */
public enum CraftingPattern {
SLAB(6, "XXX"), VERTICAL_SLAB(6, "X", "X", "X"), STEP(4, "X ", " X"), SOIL_STEP(8, "X ", " X"),
SLAB(6, "XXX"), DIAGONAL_SLAB(6, "X ", " X ", " X"), VERTICAL_SLAB(6, "X", "X", "X"),
STEP(4, "X ", " X"), SOIL_STEP(8, "X ", " X"),
ROCK_STEP(12, "X ", " X ", " X"), CORNER(4, "XX"),
STAIRS(4, "X ", "XX ", "XXX"), WALL(6, "XX", "XX", "XX"), PANE(16, "XXX", "XXX"), ROTATE(1, "X");

Expand Down Expand Up @@ -54,4 +55,12 @@ public static boolean wildcardNativeCuts(String material) {
public static boolean rotateOnlySlab(String material) {
return material.equals("minecraft:stone") || material.equals("minecraft:snow") || wildcardNativeCuts(material);
}

public static CraftingPattern slabPattern(String material) {
// Grass Slabs' dirt recipe also matches these two dirt variants on legacy Minecraft.
if (material.equals("minecraft:dirt_coarse") || material.equals("minecraft:dirt_podzol")) {
return DIAGONAL_SLAB;
}
return rotateOnlySlab(material) ? STEP : SLAB;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ public static void register() {
// Keep native row recipes (including snow layers and wildcard decorative cuts). A diagonal pair provides
// the missing slab variants.
if (material.block("slab") == null) {
add(material, Shape.SLAB,
CraftingPattern.rotateOnlySlab(material.id) ? CraftingPattern.STEP : CraftingPattern.SLAB, full,
half);
add(material, Shape.SLAB, CraftingPattern.slabPattern(material.id), full, half);
}

ItemStack horizontal = Pieces.stack(Pieces.state(material.id, Shape.SLAB, 1), 1);
Expand Down