Skip to content

Releases: cookieukw/MobsAndMates

v1.2.0

31 Oct 03:31

Choose a tag to compare

📦 Changelog

Date: October 31, 2025


🚀 Features

  • Added random name generator for villagers
  • Added color system for village chat
  • Registered villager names with specific colors
  • Added random color generator
  • Added dedicated function for villager message sending
  • Villagers now spawn randomly when creating a new map
  • Added function to strip color codes from names
  • Added villager cancel confirmation (villager_cancel_confirmation)
  • Added full villager armor system (helmet, chestplate, etc.)
  • Added custom armor textures and models
  • Added attachables for helmets and armors
  • Added villager armor listing
  • Added new animations for villagers

🧰 Improvements / Refactors

  • Simplified and cleaned up code (“strip code”)
  • Updated armor models and properties
  • Improved translations and chat messages
  • Removed unnecessary logs and custom textures (using vanilla instead)
  • Reorganized packages and dependencies

🧹 Chores

  • Set villagers to non-spawnable outside system
  • Replaced villager spawn egg
  • Removed unused items, textures, and attachables
  • Updated chestplate model and textures
  • Updated project packages

🐛 Fixes

  • Fixed issue where no entity was found for chat
  • Fixed incorrect function usage for villager messages
  • Fixed waiting coordinates issue
  • Fixed translation and action bugs
  • Fixed armor model and attachable issues

💬 TL;DR

Random names + color system 🔥
Villagers now wear full armor 🛡️
Cleaner code and smoother performance ⚡

v1.1.0

24 Oct 04:27

Choose a tag to compare

CHANGELOG — Advanced Villager & Building System

Version: v1.1.0
Date: October 24, 2025

This update is a full overhaul with new villager abilities, a player-driven building system, and major code cleanup and fixes.


🧱 Added

  • Player Building Preview System:

    • Players can create “Foundation Blocks” (e.g., mm:ground_house_placer).
    • Placing a foundation block triggers preview mode.
    • A marker entity (mm:build_marker.json) is spawned to track the state, persisting even after world reloads.
    • The updatePlayerPreviews loop fills the volume above the foundation with preview blocks (mm:green_block_preview or mm:red_block_preview) depending on whether the area is clear (checkAreaClear).
    • Interacting with a foundation block while the preview is green (clear) instantly places the structure using /structure load.
    • Breaking the foundation block cancels the preview and cleans up all preview blocks.
  • Villager Gradual Building System:

    • Added build_* intents (e.g., build_house).
    • Villagers now search for the nearest valid, clear foundation block (handleBuildAction).
    • When found, a persistent marker entity (mm:build_marker.json) is spawned.
    • Villagers automatically build structures on the next available foundation block.
    • The system is persistent even if chunks unload or players log off.
    • Upon completion, the foundation block is removed, the villager is freed, and the marker is destroyed.
  • New Villager Professions/Actions:

    • farm – harvest crops.
    • gather – collect wood, flowers, and miscellaneous items.
    • fish – catch fish, junk, and treasure.
    • smelt – return smelted ingots, glass, etc.
    • alchemy – gather potion ingredients.
    • craft – create simple crafted items.
    • raid – placeholder; acknowledges command but performs no action.
    • build – villager constructs a structure on the next available foundation block.
  • “Come Here” Action (come_here):

    • Added intent come_here; villager teleports near the player.
  • Dynamic Structure Configuration:

    • Building actions are now defined in an array (actionDetails.build) with individual foundation blocks, structure names, and sizes.
  • Marker Entities:

    • Added mm:build_marker.json to the Behavior Pack to handle persistent state.
  • Modular Code Structure:

    • Scripts are divided into multiple files (action-handler.js, conversation.js, entity-manager.js, player-build-preview.js) under modules/ and config/.

⚙️ Changed

  • Villager Behavior (villager.json):

    • Base health increased to 40.
    • Added minecraft:attack component (damage: 6).
    • Villagers now engage in combat autonomously.
    • Added minecraft:equippable for tools/weapons.
    • Inventory now open (private: false, type inventory).
    • Can pick up any item (can_pickup_any_item: true).
    • Can swim (avoid_water: false).
    • Vanilla profession logic preserved.
  • Preview Blocks (mm:green_block_preview, mm:red_block_preview):

    • Non-solid (collision_box: false).
    • Indestructible in survival.
    • Explosion-resistant.
    • Render method blend for transparency.
  • Explore Action:

    • Now locates structures with /locate structure and reports coordinates instead of random loot.
  • Translation System:

    • Removed JS translator module.
    • Uses Minecraft’s native translation system (player.sendMessage({ translate: "key" })).
  • Villager Build Action:

    • Changed from instant /structure load to the new gradual marker-based system.
  • Player Build Action:

    • Fills the entire structure volume with preview blocks instead of swapping block colors.
    • Foundation block is removed after successful construction.

🧩 Fixed

  • Villager conversation context in multiplayer (responses to wrong player fixed).
  • Corrected isValid usage (removed ()).
  • Equipment errors fixed via equippable component.
  • Behavior Pack schema errors corrected (dynamic_properties, format_version).
  • JS API errors related to removed classes (BlockLocation, Vector, etc.) fixed.
  • Player preview blocks now clean correctly after reconnecting.
  • Foundation block removed properly after construction.
  • Intent name inconsistencies (hunt vs caçar) corrected.
  • Excess debug logging in checkAreaClear removed.

🗑️ Removed

  • translator.js and lang/*.js files.
  • Duplicate/conflicting JSON definitions replaced.
  • Redundant blocks.json moved to Behavior Pack (material_instances).
  • Deprecated APIs (BlockLocation, Vector, etc.).
  • Temporary activePlayerPreviews map replaced by persistent marker entities.

Full Changelog: https://github.com/cookieukw/MobsAndMates/commits/v1.1.0

v1.0.0

22 Oct 15:53
794fb11

Choose a tag to compare

release