# v0.4.0-beta (2025-03-02)

{% hint style="warning" %}
**IMPORTANT:** This version is **not** backwards-compatible with previous versions of the mod.
{% endhint %}

## How to update

1. (Optional) Back up your world
2. With the old mod version installed, open your save. For each companion: a. Retrieve any items you want to keep from your companion's inventory. b. Use the command `/kill <COMPANION_NAME>` to remove your companion from the world.
3. Exit the world. You may now update your mod version.
4. (Optional) This mod may have previously added a `MetropolizeData` folder to your `.minecraft/mods/`folder. You may delete this.

## New features

* Talos can now use furnaces!
  * This involves adding coal and ore from his inventory into relevant furnaces
  * A new command, `USE_FURNACE` has been added to align with this behavior.
* Talos will now avoid destroying village structures for resources
* Talos' data has moved to a resource pack format! This will enable us to better support additional companions in the future.
  * To modify Talos' skin, you can now [create a resource pack](https://minecraft.fandom.com/wiki/Tutorials/Creating_a_resource_pack) with a custom PNG with the path: `/assets/mtz_companions/skins/talos.png`
  * Previously, this mod may have added a `MetropolizeData` folder to your `.minecraft/mods/`folder. This may be deleted.
* Talos will now craft, place, and clean up a crafting table if none are available

### Companions now subclass `Player`

This brings Talos' code functionality much closer to parity with the vanilla Player and will make it *far* easier for us to implement new interactions in the future! Furthermore, this will improve our ability to make Talos compatible with other player-targeting mods.

* Hostile mobs (e.g. zombies, creepers) will now target Talos without being damaged first
* Equipment (pickaxes, swords, etc.) used by Talos will now degrade
* Talos now deals variable damage based on attack timing (although he doesn't make the greatest use of it yet)
* The "Keep Inventory" setting in the mod config has been removed. Talos now obeys the KeepInventory **GameRule**.
  * To override this and force `KeepInventory=true` for companions but not players, modify the setting in the `mtz-companions-server.toml` file in your /serverconfig/ folder.
* Companions are still excluded from sleeping requirements to skip nights. However, this can now be toggled via a setting in `mtz-companions-server.toml`.
* Talos now occasionally triggers advancements, which are announced publicly.
* Creepers will now target Talos
* Talos will now attack (and run away from) creepers
* In a dedicated server, setting `pvp=false` will now prevent players from damaging Talos
  * For single-player and LAN worlds, see the **Command Changes** section

### Commands

* All commands have been consolidated under the `/mtz` prefix.
  * For example, `/mtz_command_companion` is now `/mtz command_companion`.
* `/mtz pvp <true | false>`: A new command to manually disable damaging companions. No more smacking Talos when fighting zombies together!
* `/mtz view_inventory <COMPANION_NAME>`: Allows you to remotely view a companion's inventory. You will not be able to modify it.
* For consistency, `/mtz summon` has been added for summoning companions. The existing vanilla command will continue to work.

## Bugfixes

* Fixed a bug where Talos would cease to tick when respawning very far from the player
* Fixed a bug where animals could no longer enter boats
* Fixed a bug where Talos would be unable to exit the bed
* Fixed a visual bug where Talos would be rendered with holes in his arms
