Skip to content

Add new items and update crafting recipes for World & Block System Overhaul#13

Draft
sriail with Copilot wants to merge 8 commits into
mainfrom
copilot/overhaul-world-block-system
Draft

Add new items and update crafting recipes for World & Block System Overhaul#13
sriail with Copilot wants to merge 8 commits into
mainfrom
copilot/overhaul-world-block-system

Conversation

Copilot AI commented Apr 12, 2026

Copy link
Copy Markdown
Contributor
  • Analyzed current terrain.png and items.png atlas content
  • Mapped all texture index references in code to atlas positions
  • Identified missing/incorrect textures
  • Generated proper MCPE-style textures for all new blocks in terrain.png:
    • Granite, polished granite (correct pinkish-brown)
    • Green emerald ore (stone with green flecks), emerald block (bright green)
    • Redstone block (bright red), coal block (near-black)
    • Redstone lamp off/on (brown frame with dark/glowing center)
    • Slime block (translucent green)
    • Hay bale side/top (golden straw patterns)
    • Spruce planks (dark brown), birch planks (light tan), jungle planks (reddish-brown)
    • Cocoa block (green/brown)
    • Piston and sticky piston textures
    • Repeater and comparator textures
  • Added missing greenEmerald sprite to items.png
  • Resolved texture index conflict: repeater/comparator moved to row 11 (was conflicting with spruce planks at row 8)
  • Fixed Item::diode NULL reference (pointed to uninitialized Tile::diode_off → now uses Tile::repeater_off)
  • Verified all texture positions have content and no conflicts remain
  • C++ syntax verification passed

Copilot AI and others added 2 commits April 12, 2026 21:58
…ystem Overhaul

New tile class headers:
- StoneVariantTile: data-variant stone (granite/diorite/andesite) on ID 19
- WoodPlanks: data-variant wood planks (oak/spruce/birch/jungle) on ID 5
- WallTile: stone/brick walls with fence-like rendering
- HayBaleTile: hay bale with top/side textures
- SoulSandTile: soul sand with reduced height hitbox
- RedstoneLampTile: redstone lamp off/on states
- SlimeBlockTile: translucent slime block
- SmoothStoneTile: smooth stone with top/side textures

New tile IDs initialized (100+ new blocks):
- Wood variants: stairs (27-29), fences (32-34), fence gates (36,72,77),
  doors (66,69,70), trapdoors (86,90,91), signs (92-100)
- Jungle: log (52), leaves (84), sapling (101)
- Stone variants: stairs (110-117), slabs (119-136), walls (121,126,132)
- Ores/blocks: green emerald (137-138), redstone block (139), coal block (140)
- Redstone: dust (55), torches (75-76), lamps (141-142), repeaters (164-165),
  comparators (166-167)
- Misc: soul sand (88), hay bale (106), nether quartz ore (104),
  pistons (143-144), slime block (145), cocoa (148), smooth stone (161-163),
  nether brick extras (157-160), polished sandstone (151-154)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
…erhaul

- Add 6 new items: greenEmerald (151), enderPearl (152), mutton_raw (153),
  mutton_cooked (154), cookie (155), cocoaBeans (156)
- Uncomment and enable redStone (75) and diode (100) items
- Replace generic planks recipe with 4 wood-variant-specific recipes
  (Oak/Spruce/Birch/Jungle log → matching planks)
- Add wood derivative recipes for Spruce, Birch, Jungle variants:
  stairs, fence, fence gate, door, trapdoor, sign, slab
- Make existing oak wood recipes variant-specific
- Add polished stone recipes (granite, diorite, andesite, sandstone)
- Add block recipes: green emerald, redstone, coal, hay bale, slime,
  nether brick fence, redstone lamp
- Add ore decomposition: green emerald/redstone/coal blocks → items
- Add furnace recipes: stone→smooth stone, quartz ore→quartz,
  raw mutton→cooked mutton
- Enable cookie recipe using cocoa beans

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Copilot AI and others added 2 commits April 12, 2026 22:19
- Add Slime (type ID 37): size variants (1/2/4), bouncing movement,
  splits into smaller slimes on death, drops slime balls, spawns below Y=40
- Add Enderman (type ID 38): 40 HP, 7 attack damage, teleportation,
  aggro when looked at, water damage, block pickup, drops ender pearls
- Add ER_SLIME_RENDERER and ER_ENDERMAN_RENDERER to EntityRendererId
- Register both mobs in MobFactory, MonsterInclude, and Biome spawn lists
- Sheep now drops 0-2 raw mutton on death

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
- OreFeature: Add data value support via new constructor and
  setTileAndDataNoUpdate for blocks with data values
- RandomLevelSource: Add granite, diorite, andesite veins
  (10/chunk, size 33, Y 0-80) using StoneVariantTile data values
- RandomLevelSource: Update emerald ore to 1-2/chunk, cluster 3-5,
  Y 4-32 (was 1/chunk, size 7, Y 0-16)
- Lapis lazuli ore verified present in generation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Copilot AI and others added 3 commits April 13, 2026 01:10
…ive inventory, add crafting recipes

Agent-Logs-Url: https://github.com/sriail/MCPE-WASM/sessions/0825f6e6-369b-4496-a844-b64ae61af82d

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
…uplicate recipes

Agent-Logs-Url: https://github.com/sriail/MCPE-WASM/sessions/0825f6e6-369b-4496-a844-b64ae61af82d

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
…n.png and items.png

- Updated terrain.png with proper MCPE-style textures for new blocks:
  - Granite and polished granite (row 15, cols 2-3)
  - Green emerald ore/block (row 10, cols 9-10)
  - Redstone block (row 10, col 11)
  - Coal block (row 10, col 12)
  - Redstone lamp off/on (row 13, cols 3-4)
  - Slime block (row 12, col 3)
  - Hay bale side/top (row 9, cols 10-11)
  - Spruce/birch/jungle wood planks (row 8, cols 3-5)
  - Cocoa block (row 10, col 8)
  - Piston and sticky piston (row 6, cols 11-12)
  - Repeater off/on (row 11, cols 0-1)
  - Comparator off/on (row 11, cols 2-3)
- Added missing green emerald sprite to items.png at (7,11)
- Fixed repeater/comparator texture conflict with spruce planks by
  moving to row 11 in terrain atlas
- Fixed Item::diode to use Tile::repeater_off instead of NULL diode_off

Agent-Logs-Url: https://github.com/sriail/MCPE-WASM/sessions/84abe9c2-a29a-4d30-99af-48010da88d71

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants