Started by
Da Jacob
on
Topic category: Help with Minecraft modding (Java Edition)
i want to make a mod abaut infection, but i dont nhou how to make mobs apper os syrten days
like day 1 that mob and 3 that and that, like a phaze1 or 2. i nhou thats possible because "infectum" by kiakkers make it.
Edited by Da Jacob on Sat, 10/01/2022 - 17:30
make a GLOBAL_WORLD variable, make a procedure with a "when player wakes up" preset, and make it change the variable by adding 1. then make it check what number the variable is at. depending on what the number is, from 1 to the maximum phase of your choosing, make it progressively more difficult by making more mobs spawn the higher the variable is. let the variable run infinitely, and when it reaches the final phase, make it check if the variable is above what it was back in the previous phase.
you could also make it not change the variable if it's at the final phase, which would reduce lag.
i jast wana say- thank you so mach!
onysly i don't no haw to pay you back for that!
so, if you need some help- jast coment me!
If you stages that aren't dependent on the days, make a logic gamerule for each stage, and set the corresponding gamerule to true (and the previous on to false each stage if you want,) in however you want it to be triggered (Phases of the moon, etc). Then on spawning conditions of the monsters you want to spawn, check to see if the gamerule for the phase(s) you want it to spawn in are true. But this EXTREAMLY painful to do if you want the stages to change increase each day/night.
oh, thank's for help, i didin't wantet to o that, becose i orledy have a phaze system, but if the full mob aploud (becose is styl in beta) meybe i use it!
but enyways, thank you for help! (and sorry for my bad englend)