fireball that doesn't deal block damage

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Aug 26, 2020
14
0
1
30
I want to be able to shoot fireballs out of a bow but the fireballs keep breaking blocks and I don't want to turn off mobgriefing, is their a way to change that


the code im using

on leftclick with bow:
if name of player's tool is "<##00cbc5>Khryselakatos":
if {comet.%player%} is true:
cancel event
make player shoot a large fireball
add "{ExplosionPower:2}" to nbt of last spawned large fireball
damage tool of player by 1
 
mob griefing is already set to true i want creepers to break blocks but i dont want fireballs to break blocks
Code:
on leftclick with bow:
if name of player's tool is "<##00cbc5>Khryselakatos":
if {comet.%player%} is true:
cancel event
make player shoot a large fireball
add "{ExplosionPower:2}" to nbt of last spawned large fireball
set metadata value "something" of last spawned fireball to true
damage tool of player by 1
on explosion:
  if metadata value "something" of event-entity is true:
    cancel event
    loop all entities in radius 4 around event-entity:
      make player damage loop-entity by 5
[doublepost=1619183207,1619183176][/doublepost]please use code blocks
The [+] and code
 
Status
Not open for further replies.