Minecraft Data Packs / Other

Icy destruction

  • check_circle Functions
  • check_circle Predicates
  • 2,470 views, 1 today
  • 65 downloads, 0 today
  • 11
  • 4
  • 1
SirUmbrella's Avatar SirUmbrella
Level 60 : High Grandmaster Crafter
115

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

Create an account or sign in to comment.

1
10/06/2022 7:04 pmhistory
Level 58 : Grandmaster Programmer
xylo_datapacks
xylo_datapacks's Avatar
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)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome