Calculus-Master / DifficultRaids

A Minecraft Mod that enhances the difficulty of Raids.
1 stars 1 forks source link

Players are able to skip the raid and get rewards directly #22

Open NattoCB opened 3 months ago

NattoCB commented 3 months ago

there is a feature in vanilla... if there is no raiders joined into the wave, that wave would be directly marked as success, and go into the next wave.

so, if a player catches the bad omen and go to a place that cannot summon any raiders (e.g. location y >= 300, only with a dirt pillar, a bed, and a villager), he will directly win the raid

NattoCB commented 3 months ago

a possible solution i think, to add a tick check before spawning the rewards, e.g. if the tick <= 3 60 20, do not generate rewards

or override the tick method of Raid class if possible, to fetch the joinRaid's result (a boolean) and check it in the spawnGroup function. if no raiders were spawned, then stop this raid and mark it to failed, inactive