Hi, Been trying to track this down. Looking at the WaterFluid, FlowableFluid and Fluid classes, I can see that that the code seems to point to onRandomTick() on the WaterFluid class, but that doesn't implement the method. It inherits from Fluid, which is just an empty method. So class and method is used to freeze the water? I want to modify it so that water under trees freezes too...
#Where is the code that freezes water?
6 messages · Page 1 of 1 (latest)
seems like it may be ServerLevel#tickPrecipitation (mojmaps)
Tks. Although, I can't find any code referring to tickPrecipitation. Think I'm using yarn maps. Not sure how to change or what that will do to my current mods code.
its called ServerWorld#tickIceAndSnow in yarn
u can use linkie to translate between them for future reference https://linkie.shedaniel.dev/mappings?namespace=mojang_raw&version=1.21.8&search=ServerLevel.tickPrecipitation&allowFields=false&translateMode=ns&translateAs=yarn
Thank you.