Hi guys, I tried to make heal pool in my factions koth region. My idea is:
if "%event-region%" contains "king":
set {.kothr.%player%} to true
on region leave:
if "%event-region%" contains "king":
set {.kothr.%player%} to false
- Check if player is in worldguard region "KingOfTheHill"
- If he/she is, check if player is standing on GOLD BLOCK.
- If player is standing on gold, give him potion effect
- I have one issue - I used string "ON WALKING ON <BLOCK>", which means that player can walk on gold block and get regeneration effect every time he walks on it. How do I make cooldown, or something like that which will not allow them to get effect ∞ times? Is there any other string, like - ON STANDING ON BLOCK, or something like that?
- SKRIPT:
if "%event-region%" contains "king":
set {.kothr.%player%} to true
on region leave:
if "%event-region%" contains "king":
set {.kothr.%player%} to false
on walking on gold block:
if {.kothr.%player%} is true:
apply regeneration 2 to player for 10 seconds
send "&8[&aKoTH ✪&8] &fApplied regeneration boost for &l10s&f."
wait 10 seconds
send "&8[&aKoTH ✪&8] &fRegeneration boost expired."
if {.kothr.%player%} is true:
apply regeneration 2 to player for 10 seconds
send "&8[&aKoTH ✪&8] &fApplied regeneration boost for &l10s&f."
wait 10 seconds
send "&8[&aKoTH ✪&8] &fRegeneration boost expired."