Posted July 13, 20196 yr Is there any clean/non-ASM way of overriding the behavior of fire spread? The goal of the mod (or the relevant portion) is to prevent fire spread (similar to vanilla gamerule doFireTick false), but only within a specific region. It seems to me that the vanilla gamerule is implemented through a simple if statement in the updateTick method of the BlockFire class, and thus I'm struggling to come up with a way to implement this behavior through Forge. I'm open to hacky workarounds, but would like to avoid ASM if at all possible. Thanks in advance! Website: jdawg3636.com Discord: discord.gg/EKeM7Jz
July 13, 20196 yr If everything else fails, you can registry replace BlockFire. About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
July 13, 20196 yr Author 12 hours ago, Cadiboo said: If everything else fails, you can registry replace BlockFire. Got it - hoping not to resort to that. Currently considering using reflection to add behavior to updateTick method - still intrusive and suboptimal but it's the best I can think of atm. Any particular reason that anyone knows of that forge doesn't expose stuff like this through the event bus? I had considered submitting a PR but frankly I'm not super familiar with forge's patch system. Website: jdawg3636.com Discord: discord.gg/EKeM7Jz
July 13, 20196 yr 2 hours ago, jdawg3636 said: Any particular reason that anyone knows of that forge doesn't expose stuff like this through the event bus? Probably because no-one's needed it before. If you want it, submit a PR. There are instructions on how to do here (1.13+ instructions here). About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.