How can i make a snowball freeze the mob it hits

Started by Shadowfemb on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i make a snowball freeze the mob it hits

Hi! I'm new to Mcreator, this is my first post so srry if something isn't tagged right or something like that.

I'm making a mod where one of the features is that vanilla snowballs deal freezing damage like powder snow, can that be made on Mcreator?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes! There's a new function…
Sat, 11/04/2023 - 15:43

Yes! There's a new function you can find in entity management called 'Set number of ticks (entity) has been frozen for,' which essentially applies a freezing status effect. 

Powder snow only starts dealing damage if an entity has been stuck in it for long enough, so setting this to a high value will make the game think the entity has been in powder snow for a long time, and the effect will then gradually wear off, taking longer to do so the larger the number you provide it, and dealing no damage once it gets low enough. 

This should also display the frost overlay and cause entities to shiver, you should be able to pretty easily add this on to a 'when projectile hits living entity' procedure.

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the info! Another…
Sat, 11/04/2023 - 16:17

Thanks for the info! Another question, where is this 'when projectile hits living entity' procedure, i can't seem to be able to find it

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i cant find either,…
Mon, 01/29/2024 - 05:30

i cant find either, Mindthemoods will you please help. 

Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's not a procedure, its a…
Fri, 08/09/2024 - 14:59

It's not a procedure, its a trigger, found in the trrigger section of the proectile page. It triggers the procedure.