Data Packs Other

Icy destruction

  • Functions
  • Predicates
  • 2,735 views • 2 today
  • 71 downloads • 0 today
  • 12
  • 7
  • 1
SirUmbrella
Level 62 : High Grandmaster Crafter
120

What does this datapack do?



This datapack gives snowballs a new "ability". When a snowball passes a certain block, it can get different effects. These are also true for balls thrown by snowmen, so now unlucky ones can get some love.



Different effects
-Powdersnow: slow down the enemy
-Fire: set the enemy on fire.
-lava: explodes on impact
-Soul Fire: area damage



a snowball can get more than one effect if it passes through several buff-giving blocks


!If you found any bugs, please write a comment, so i can fix them!



If you use my pack in a video or in a stream, please give me credit! If you upload it somewhere, mention me and give a link to this website! Thank you!
(and Sorry for my bad English.. :3)
CompatibilityMinecraft 1.17
toMinecraft 1.18
Tags

  Have something to say?

xylo_datapacks
10/06/2022 7:04 pm
Level 60 : High Grandmaster Programmer
history
in the main function with
"execute as @e[​type=minecraft:marker,predicate=!adds:marker] at @s run function smc:effect"
you are targeting all marker, except the ones that are on an entity tagged with "effected".
This is a big issue since in "smc:effect" you are killing the marker.

This result in all markers being killed, even markers used in other datapacks that might need to like... not die.
so i suggest you add a tag to your markers so that the check is made on your markers only.
something like:

"execute as @e[​type=minecraft:marker,tag=yourTag,predicate=!adds:marker] at @s run function smc:effect"

(and when you summon your marker you add yourTag to them)
1

Welcome