Releases: cookieukw/MobsAndMates
Releases · cookieukw/MobsAndMates
v1.2.0
📦 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
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
updatePlayerPreviewsloop fills the volume above the foundation with preview blocks (mm:green_block_previewormm: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.
- Players can create “Foundation Blocks” (e.g.,
-
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.
- Added
-
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.
- Added intent
-
Dynamic Structure Configuration:
- Building actions are now defined in an array (
actionDetails.build) with individual foundation blocks, structure names, and sizes.
- Building actions are now defined in an array (
-
Marker Entities:
- Added
mm:build_marker.jsonto the Behavior Pack to handle persistent state.
- Added
-
Modular Code Structure:
- Scripts are divided into multiple files (
action-handler.js,conversation.js,entity-manager.js,player-build-preview.js) undermodules/andconfig/.
- Scripts are divided into multiple files (
⚙️ Changed
-
Villager Behavior (
villager.json):- Base health increased to 40.
- Added
minecraft:attackcomponent (damage: 6). - Villagers now engage in combat autonomously.
- Added
minecraft:equippablefor tools/weapons. - Inventory now open (
private: false, typeinventory). - 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
blendfor transparency.
- Non-solid (
-
Explore Action:
- Now locates structures with
/locate structureand reports coordinates instead of random loot.
- Now locates structures with
-
Translation System:
- Removed JS translator module.
- Uses Minecraft’s native translation system (
player.sendMessage({ translate: "key" })).
-
Villager Build Action:
- Changed from instant
/structure loadto the new gradual marker-based system.
- Changed from instant
-
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
isValidusage (removed()). - Equipment errors fixed via
equippablecomponent. - 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 (
huntvscaçar) corrected. - Excess debug logging in
checkAreaClearremoved.
🗑️ Removed
translator.jsandlang/*.jsfiles.- Duplicate/conflicting JSON definitions replaced.
- Redundant
blocks.jsonmoved to Behavior Pack (material_instances). - Deprecated APIs (
BlockLocation,Vector, etc.). - Temporary
activePlayerPreviewsmap replaced by persistent marker entities.
Full Changelog: https://github.com/cookieukw/MobsAndMates/commits/v1.1.0