I have a mob skript that has a billion hp and how can i make it say 1 b instend of 1000000000 the code:
command /devp:
trigger:
open chest inventory with 3 rows named "&cDev Panel" to player
wait 1 tick
set slot 0 of player's current inventory to stone named "&aZombie"
on inventory click:
if name of event-inventory is "&cDev Panel":
if index of event-slot is 0:
summon zombie at location of player
set max health of last spawned mob to 10000
set health of last spawned entity to 10000
set {_mhp} to maximum health of last spawned entity
set {_hp} to health of last spawned entity
set display name of last spawned mob to "&cZombie &a%{_hp}%&f/&a%{_mhp}%"
cancel event
on damage of zombie:
if display name of victim contains "&cZombie ":
set {_hp} to health of victim
set {_mhp} to maximum health of victim
set display name of victim to "&cZombie &a%{_hp}%&f/&a%{_mhp}%"
command /devp:
trigger:
open chest inventory with 3 rows named "&cDev Panel" to player
wait 1 tick
set slot 0 of player's current inventory to stone named "&aZombie"
on inventory click:
if name of event-inventory is "&cDev Panel":
if index of event-slot is 0:
summon zombie at location of player
set max health of last spawned mob to 10000
set health of last spawned entity to 10000
set {_mhp} to maximum health of last spawned entity
set {_hp} to health of last spawned entity
set display name of last spawned mob to "&cZombie &a%{_hp}%&f/&a%{_mhp}%"
cancel event
on damage of zombie:
if display name of victim contains "&cZombie ":
set {_hp} to health of victim
set {_mhp} to maximum health of victim
set display name of victim to "&cZombie &a%{_hp}%&f/&a%{_mhp}%"