Replacing Air

Started by HastyLumbago on

Topic category: Help with modding (Java Edition)

Last seen on 01:55, 13. Dec 2022
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replacing Air

OK, so I'm building an overhaul mod, and one of the things I need to do is replace all the air blocks with a similar block which causes drowning effects.

Alternatively, I could build a sort of character class which drowns in Air by default, and which can only breathe in a second type of air emitted in a radius around special blocks, since that is the behavior that I eventually actually want once I add later content to the mod, but I thought it would be simpler to start to just make a replacement block for Air.

In the block interface, however, I can't find any value for whether a given block is breathable. So how would I go about achieving this effect?

Ideally, I also need water drowning to be distinct from air asphyxiation, so that things like the turtle cap or potions of water breathing don't negate the air drowning effect, but that other items can.