Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I already know how I override other vanilla blocks (same registry name as the block to replace and then register the block on my mod's turn).

But it doesn't work the same way for the air block, since it is a default value for the block registry, which can't be overridden once registered.

 

Why do I want to do that? Because I want to build a mod that adds a Oxygen mechanic to the air block. Is there some other workaround that is friendly for intermediate modders?

  • Author
3 minutes ago, Beethoven92 said:

How will those Oxygen mechanic reflect on gameplay?

At first I wanted to solve it with a TileEntity, but that would probably make Minecraft shit itself from vast amount of TileEntities in each chunk, so I'm thinking about some kind of "binary" blockstate that just says "here be oxygen" or "here be no oxygen", and depending on wheter you're in oxygenized air you either stay alive or slowly suffocate (like drowning in water).

I can try to adjust for realism later, but just as a proof of concept

Mmmm it seems to me that instead of messing with replacement of the vanilla air block, you could create your own custom "not oxygenized air" block (assuming vanilla air is the oxigenized one), and make that block generate in pockets in the world (replaceing air blocks), or whatever way you want it to generate in the world. I don not know if that solution is suitable for your needs though

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

  • Author
3 minutes ago, Beethoven92 said:

Mmmm it seems to me that instead of messing with replacement of the vanilla air block, you could create your own custom "not oxygenized air" block (assuming vanilla air is the oxigenized one), and make that block generate in pockets in the world (replaceing air blocks), or whatever way you want it to generate in the world. I don not know if that solution is suitable for your needs though

And if I want to also have a breath mechanic, so that oxygenized air becomes my deoxygenized one whenever something happens?

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.