tModLoader

tModLoader

No Lava Lava Slimes
11 則留言
moss 2024 年 9 月 27 日 上午 2:37 
i am the same with code on my own hobby projects, so understandable! have a nice day :>
RblDiver  [作者] 2024 年 9 月 26 日 下午 3:07 
That is indeed a distinct possibility (highly probable imo). I'll admit I don't exactly know C#, mostly just fumbling around until something appears to work well enough. Essentially, I did an override on the HitEffect function, which inside the original has the bit to spawn the bit of lava. My override says, no, turn that tile's liquid amount to 0. So my guess is the game runs the original first, spawning lava, then runs mine, despawning lava.

Unfortunately that means I have no idea how to prevent your issue from happening moss, sorry.
moss 2024 年 9 月 25 日 下午 7:20 
hi! i have encountered some errors with this mod- it seems like when a slime dies directly on a furniture / platform or any other lava-breakable object, it still breaks the object even though no lava spawns.
Is it possible that with this implementation the lava is still spawning but is being deleted in the same frame? It seems like the game still recognizes lava there for a moment.
A_Potitonear 2024 年 6 月 25 日 下午 3:20 
El mejor mod que he visto, gracias
Altus 2024 年 4 月 15 日 下午 10:31 
Thank you for this. I haven't been able to find a working version of this mod since tMod 1.4 released. Kudos!
RblDiver  [作者] 2024 年 4 月 10 日 下午 1:28 
Update appears to be working so new version published, please let me know if you encounter errors.
RblDiver  [作者] 2024 年 4 月 10 日 上午 9:48 
Note, initial test in a master getfixedboi world seemed to work, but testing in a regular expert world is not working. Apologies, will work on it when I can.
Willow 2024 年 4 月 9 日 下午 12:06 
ahh i understand no worries!
RblDiver  [作者] 2024 年 4 月 9 日 上午 11:16 
I suppose you could try it on the server side. I never do multiplayer so don't know how it'd work; took me a while to even figure out where the lava spawning appeared to occur in the first place :P
Willow 2024 年 4 月 9 日 上午 12:52 
i wonder if its possible to make this a server side mod, there's a search category for server side mods and so far nobody has ever made one for some reason
RblDiver  [作者] 2024 年 4 月 8 日 下午 5:28 
A note, I have this as version 0.1 because, while it appears to function as intended (aka lava slimes aren't spawning lava), there could be unintended consequences I'm not yet aware of.

(Implementation details, I'm overriding HitEffect, so it may be that other things which rely on this will be messed up (like no gore spawning etc), which is why this is still an early version until I can play and see what's going on.)