Jump to content

/heal Skript?


NeOnIsBad

Recommended Posts

Heya! 

Perhaps you should try this:

set health of player to maximum health of player

That's what would be optimal for many occasions, but you can always use:

set health of player to 10

0.5 is the lowest (0 means dead, obviously), and 10 is regularly full health. You can always adjust an entity's health using the same syntax. For example:

set player's maximum health to 20

This code will simply double their regular health. You can always get complicated by using multiplication or other mathematics.

 

9 hours ago, NeOnIsBad said:

Hi does anyone know the /heal skript that will heal myself instantly back to full health? I'm complete noob at this pls help

command /heal [<player>]:
	permission: heal.player
	trigger:
    	if arg-1 is not set: # argument-1 is a "player" type, meaning you can only enter an online player, otherwise it will return an error
        	set health of player to 10
        else:
        	set health of arg-1 to 10
    	

Always feel free to contact me or continue this thread if you need more help.

❤️😄

 

image.png.e46e91961f1d6d4604a6e5f3dcb5a2bd.png

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