Jump to content

Recommended Posts

Posted

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

Posted

If everything else fails, you can registry replace BlockFire.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Posted
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

Posted
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 WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.