Jump to content

Recommended Posts

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?

Posted
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

Posted

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

Posted
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.

Announcements



×
×
  • Create New...

Important Information

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