Immunity to Suffocation

Started by Joe Wrench on

Topic category: Feature requests and ideas for MCreator

Active 1 year ago
Joined Jul 2019
Points:
653

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
Immunity to Suffocation

I think you should be able to make entities immune to suffocation like you can to drowning and attacks. I was trying to make a technical entity, like an area effect cloud or marker armor stand, and was able to make it immune to just about everything except suffocation in blocks. Including this as well would make it possible to make more versatile entities.

Active 5 months ago
Joined Feb 2021
Points:
731

User statistics:

  • Modifications: 0
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 190
Put this in your mob's code …
Sun, 02/26/2023 - 07:15

Put this in your mob's code 

if (source == DamageSource.IN_WALL)
return false;
Active 19 hours ago
Joined Feb 2018
Points:
1973

User statistics:

  • Modifications: 1
  • Forum topics: 161
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 784
You can do it with this…
Sun, 02/26/2023 - 19:30

You can do it with this Plugin.

Active 15 hours ago
Joined Nov 2019
Points:
742

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 33
VuFlub where exactly i have…
Fri, 12/22/2023 - 18:32

VuFlub where exactly i have to put this code?

Active 5 days ago
Joined Mar 2023
Points:
171

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
in the hurt(DamageSource…
Sun, 07/21/2024 - 20:03

in the hurt(DamageSource source, float amount) bracket