Jump to content
  • 0

How do i Change mob health


Catsrule3265

Question

5 answers to this question

Recommended Posts

  • 0

There is a plugin called Skript which you can do a lot of things with. You can use that to make it change a mob's health when it spawns in. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

  • 0
14 minutes ago, catsrule3265 said:

I dont know how to use skript 

So like here is an example of how you could do it

on spawn of zombie:
	set event-entity's max health to 5

This makes it when ever a zombie spawns, their max health gets set to 5.

Then to add this skript, first download the skript plugin and restart the server. Then in the file manager go to plugins > skript > scripts. In the scripts folder, make a file called like mobs.sk. It can be called anything but just has to end in .sk. Then paste the skript there and click save. Then in game do /sk reload mobs and now the skript should be working. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

  • 0
On 1/21/2021 at 4:47 PM, _Tarna_ said:

So like here is an example of how you could do it


on spawn of zombie:
	set event-entity's max health to 5

This makes it when ever a zombie spawns, their max health gets set to 5.

Then to add this skript, first download the skript plugin and restart the server. Then in the file manager go to plugins > skript > scripts. In the scripts folder, make a file called like mobs.sk. It can be called anything but just has to end in .sk. Then paste the skript there and click save. Then in game do /sk reload mobs and now the skript should be working. 

I don't think it worked I gave the enderman 200 health but I still kill them in 18-21 hits

Link to comment
Share on other sites

  • 0
1 hour ago, catsrule3265 said:

I don't think it worked I gave the enderman 200 health but I still kill them in 18-21 hits

Did you change the skript to enderman instead of zombie? also 200 health is 20 hearts. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...