AllYourBlocks / ChunkWars

Chunk Wars is a team-based attack-defend minigame for Minecraft. You play in an arena of different Chunks, all carefully handcrafted to replicate different Minecraft biomes and structures as closely as possible. Along with your team you will face everything that vanilla Minecraft can throw at you. Your goal is to be the last team standing.
https://www.planetminecraft.com/project/chunk-wars-1487425
GNU General Public License v3.0
2 stars 0 forks source link

Advancements need to be reset before the game starts #176

Closed AllYourBlocks closed 7 months ago

AllYourBlocks commented 1 year ago

Advancements need to be reset before the game starts - and before players can sleep.

Currently, there is a situation where a player can set their spawn in the Puzzle, and get the Sweet Dreams Advancement, and then not get that Advancement again at the start of the game when they need to sleep in their bed.

Ensuring there is a readout in chat helps to make sure that this vital game step is not missed by a player.

It is possible that there are other Advancements that could be triggered either now or in the future by other lobby elements, e.g. Puzzle, Sumo, Museum, and Options, (either now or in the future), and therefore I'd like a full reset on all Advancements for all players prior to the start of the game.

Should this be as soon as players are teleported, or are being teleported to their starting houses in the arena, within a single tick?

@slipcor Thoughts on the best timing for this?

slipcor commented 7 months ago

We actually cleared it too late... when the dragon roar happens, which is AFTER people slept in the bed most certainly... so now it is moved to the proper time, in pregame, when we are teleported to arena, that specific time, where we start the countdown, where we reset the random arena and things like that

AllYourBlocks commented 7 months ago

Tested and working, thank you!