How to disable the hearts particle when entity is hit [1.20.1]

Started by FeriOxi on

Topic category: Help with modding (Java Edition)

Last seen on 00:50, 7. Sep 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to disable the hearts particle when entity is hit [1.20.1]
Thu, 07/18/2024 - 18:22 (edited)

I am creating a sword that deals a lot of damage but when I hit the mob i want to kill it spawns A LOT of hearts particle

Edited by FeriOxi on Thu, 07/18/2024 - 18:22
Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
set the damage of the sword…
Thu, 07/18/2024 - 01:32

set the damage of the sword to a low number, then in the triggers tab add a procedure for the trigger "when living entity is hit with tool"

procedure: https://imgur.com/a/Zi6Vn44

(set the level amplifiers of the potion effects to the number you want of course)

Last seen on 00:50, 7. Sep 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
unfortunately this wont work…
Thu, 07/18/2024 - 03:34

unfortunately this wont work for me since the sword's damage changes based on the player stats

https://imgur.com/a/34S2rKk

Last seen on 00:14, 4. Sep 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can't the effect level just…
Thu, 07/18/2024 - 04:10

can't the effect level just also be of strength variable and I think you can manually spawn the particles in with the particle procedure also based on your strength and other variables

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could do that based on…
Thu, 07/18/2024 - 11:58

You could do that based on the stats the level amplifier changes, because I don't think there Is aother way of removing particles from vanilla entities

Last seen on 00:50, 7. Sep 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But isn't the max level…
Thu, 07/18/2024 - 16:59

But isn't the max level amplifier 255? (in my mod mobs can have more than 500 hp)

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes but every level deals 3…
Thu, 07/18/2024 - 17:10

yes but every level deals 3 hp of damage, so it's enough, and if it isn't just give the effect two times

Last seen on 00:50, 7. Sep 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can't I just execute a…
Thu, 07/18/2024 - 18:18

can't I just execute a command that removes every partical in an area?

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I Guess, but then if there…
Thu, 07/18/2024 - 18:26

I Guess, but then if there are other particles they Will be removed, like if you are in the nether after you attack you won't see the ambience particles for some time, but I mean, It's your mod, do what you want

Last seen on 00:50, 7. Sep 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok thanks a lot for your help
Thu, 07/18/2024 - 18:27

Ok thanks a lot for your help

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Thu, 07/18/2024 - 18:29

You're welcome