Multiplayer
Jump to navigation
Jump to search
Multiplayer support in Matcha Flavoured was added in 1.10 and extended in 1.12.2, largely by the community contributor Linkershim.[1] The developer designed the pack with "a small group of friends playing together" in mind rather than large servers.[2]
Per-player systems
- Hearts: each player's maximum health and minimum hearts are stored per player. Deaths and milestone advancements only affect the player concerned. Before 1.12.2, heart loss was tracked per world.[3] One of the chat messages for lowered minimum hearts ("Armies gather beneath the Earth...") is sent to all players.
- Difficulty is a world setting. On Normal, the first player whose minimum hearts fall to 5 switches the whole world to Hard. A new world set to Hard is put on Normal when the first player joins, except in Hardcore.[4][5] See Difficulty.
- Ender Dragon: each player who kills the dragon for the first time earns an amalgamated pith, even if the first killer is offline, and the safe surface applies to everyone.
- Joining players: every second, the pack checks for players who have not been set up for the current version. New players get their scoreboards, and players from older versions have their recipe unlocks reset (up to 1.12.5, reward advancements were revoked too). Both are given 10,000 experience levels.[6][7] Game rules such as keep inventory are set once per world, when the first player joins; see Death#Keeping items.[8]
- Anvil experience: using an anvil sets only that player's level to 10,000, and nothing removes it later. Up to 1.12.6-alpha, the window in which anvil levels were kept ran on one 31-second timer shared by all players, so one player's inventory changes could extend another's, and ending it removed every player's exemption at once.[9][10] See Anvil#Experience.
- Equipment effects such as bloodrage, Anemos, electrum and adamant apply only to the player concerned since fixes in 1.12.1-alpha. Since 1.12.3 the Wither effect's heart timer is per player too (in 1.12.2 each second a player was withered, every online player's count went up).[11] Since 1.12.6-alpha the timers of divinity and shakudo regeneration are kept for each player too, starting when that player puts the armor on; before, one timer per bonus was shared by the whole server.[12][13]
Sleeping
Main article: Sleeping
Vanilla sleep skipping is disabled (players_sleeping_percentage is 200). Instead, while anyone sleeps, time advances by (sleeping players ÷ players in the overworld)² × 300 ticks every tick, and the action bar shows how many players are sleeping. A player who goes to bed at night wakes in the morning; sleeping in the day skips half a day.[14][15] This dynamic sleep was written by milo256.
Known issues
- On Purpur servers keep inventory is handled per dimension and has to be set manually in each.[16]
- 1.12 fixed severe lag caused by electrum, adamant and shakudo armor on servers.
History
| 1.10 | Multiplayer support added: crystal hearts, anvils, anvil experience and amber earrings fixed for multiplayer; player update tracking. |
|---|---|
| 1.12 | Fixed armor performance issues in multiplayer. |
| 1.12.1-alpha | Clay fetishes work for all players; bloodrage, Anemos, adamant and electrum apply only to their user. |
| 1.12.2 | Heart loss is per player. Multiplayer improvements by Linkershim; dynamic multiplayer sleep by milo256. |
| 1.12.3 | The Wither heart effect no longer spreads to all players.[17] |
| 1.12.4 | Fixed multiplayer sleep: players who went to bed after another player was already asleep were not counted, so time passed more slowly than it should (see Sleeping).[18] |
| 1.12.6-alpha | Divinity and shakudo regeneration run on a timer for each player instead of server-wide timers. Players joining on a newer version no longer have their reward advancements revoked, only their recipe unlocks. |
| 1.12.7-beta | Anvil experience no longer uses a timer shared by all players; using an anvil sets the player's level to 10,000, which is kept.[19] |
References
- ↑ Matcha Flavoured 1.12.2 release notes
- ↑ Matcha Flavoured 1.12.2 release notes: "I made this imagining a small group of friends playing together."
- ↑
heart container/hpdown.mcfunction - ↑
setup/disallow hard on first load.mcfunction - ↑
heart container/decrease minimum hearts.mcfunction - ↑
setup/player update check loop.mcfunction - ↑
setup/update this player.mcfunction - ↑
setup/first load.mcfunction - ↑
xp handling/give levels.mcfunction - ↑
anvil xp/remove xp.mcfunction - ↑
wither/effect.mcfunction - ↑
enchantment effects/divinity.mcfunction - ↑
regeneration/apply.mcfunction - ↑
sleeping/calculate sleep rate.mcfunction - ↑
sleeping/calculate sleep duration.mcfunction - ↑
README.md - ↑
wither/effect.mcfunction - ↑ Matcha Flavoured 1.12.4 release notes: "Multiplayer Sleep speed"
- ↑ Matcha Flavoured 1.12.7-beta release notes: "this should fix some XP bugs esp on servers"
| About the pack | |
|---|---|
| Getting started | |
| Releases | |
| Development | |
| This wiki | |
Category: