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.
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.