Modified Ghasts

  • 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 community!

    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!

squib

Member
Aug 26, 2025
2
0
1
Hey'all,

So long story short, I'm trying to make a custom entity using ghasts. I need to edit things like fireball damage, firing frequency, spawning/spawn rate, spawning in packs, and I also want to make it target blocks that were placed by players (I'll get more in depth with that in a bit because it's probably gonna have to be real complex to satisfy me). I have no idea how to do this, as I'm pretty new to skript. Help is much appreciated!

So far I've made a basic spawn function that summons a ghast with extra health:

command spawncustommob [<mob>]:
permission: op
trigger:
if arg-1 is set:
spawnmob(arg-1, player)
else:
send "&cError! Arguments not set." to player

function spawnmob(m: mob, p: player):
if {_m} = "chasmracete":
spawn 1 ghast at {_p}
set {_l} to last spawned entity
set max health of {_l} to 35
heal {_l}

As for the structure targeting mechanic, I want it to be really, really complex and unique. I understand if it's too hard or basically impossible, I just need something close enough.

The mob will target blocks ONLY placed by players. There has to be enough blocks placed in one area (or chunk) to trigger this. If a payer is seen however, the mob will prioritize them and shift its focus.