Solved Custom Mobs

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

Status
Not open for further replies.

Cold

Member
May 1, 2022
29
0
1
Hello i need help with creating some sort of custom mobs. It would be really nice if you could see their health in tab.
 
I have searched up nametag and mobs in the docs search bar but didn’t exactly show me what I needed like how to make a nametag with hearts
 
This is a basic example of how this would work
use this logic and learn from it

Code:
command /zombieexample:
  permission: op
  trigger:
    spawn 1 zombie at plater
    set the display name of the last spawned zombie to "&8[&71&8] &7Zombie &c%health of last spawned zombie%/%max health of last spawned zombie%"
    equip last spawned zombie with a golden helmet

on damage:
  attacker is a player
  victim is a mob
  if name of victim contains "] Zombie ":
    set {_n} to name of victim
    set {_s::*} to {_n} split at "Zombie "
    set the display name of victim to "%{_s::1}%Zombie &c%health of victim%/%max health of victim%"
 
Thanks that helped a lot but how do I make a hologram instead if it’s a boss like: (&cZombie &4Boss &e25/25 ❤️) and make it really fast and have a diamond helmet and a diamond hoe in the hand and make it do 3 hearts of damage.
 
How do i make so the boss is immune to knockback?
[doublepost=1651469739,1651469638][/doublepost]And also I wanna make other mobs myself with custom abilities like laser eyes so there is particles shooted from the eyes and when it hits a player it does 5 hearts damage
 
for the laser you can either use the guardians thing or particles with vectors, for knockback immunity add the knockback resistance attribute using nbt (requires skbee)
 
Sorry late reply. But thanks for the help it worked and I got what I searched! Thanks have a great day sir!
 
Status
Not open for further replies.