Ensar1342 Posted October 26, 2023 Share Posted October 26, 2023 (edited) Hi i wanted to ask if you guys can help me with this skirpt so if the player enters the radius 2.6 of {_li} and leaves, he gets healed until it despawns but i dont know how to do it so he dosent get healed. if name of player's held item is "<##3cff00>Healing Orb": if player is sneaking: remove 1 lime dye named "<##3cff00>Healing Orb" from player's inventory drop 1 of lime dye named "<##3cff00>Healing Orb" 1.5 block infront player's location set {_li} to last dropped item play sound "block.beacon.activate" at volume 1 and pitch 1 at player for all players in radius 5 around {_li} drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor1", rainbowMode false, scan true, height 0, radius 2.6, ringCount 40, ringDensity 20, visibleRange 100 drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor2", rainbowMode false, scan true, height 0, radius 2.3, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor3", rainbowMode false, scan true, height 0, radius 2, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor4", rainbowMode false, scan true, height 0, radius 1.7, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor5", rainbowMode false, scan true, height 0, radius 1.4, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor6", rainbowMode false, scan true, height 0, radius 1.1, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor7", rainbowMode false, scan true, height 0, radius 0.8, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor8", rainbowMode false, scan true, height 0, radius 0.6, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor9", rainbowMode false, scan true, height 0, radius 0.3, ringCount 40, ringDensity 20, visibleRange 100 drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor10", rainbowMode false, scan true, height 0, radius 0, ringCount 40, ringDensity 20, visibleRange 100 wait 2.5 seconds loop all players in radius 2.6 of {_li}: chance of 60%: loop 4 times: heal loop-player by 1 hearts send "&aTest 1" to loop-player wait 2 seconds chance of 30%: loop 4 times: heal loop-player by 1.5 hearts send "&aTest 2" to loop-player wait 2 seconds chance of 10%: loop 4 times: heal loop-player by 2 hearts send "&aTest 3" to loop-player wait 2 seconds play sound "block.beacon.ambient" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} wait 5 seconds play sound "block.beacon.ambient" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} wait 5 seconds play sound "block.beacon.ambient" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} wait 5 seconds play sound "block.beacon.ambient" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} wait 4.2 seconds play sound "block.beacon.deactivate" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} stopeffect "%player%.healingfloor1" stopeffect "%player%.healingfloor2" stopeffect "%player%.healingfloor3" stopeffect "%player%.healingfloor4" stopeffect "%player%.healingfloor5" stopeffect "%player%.healingfloor6" stopeffect "%player%.healingfloor7" stopeffect "%player%.healingfloor8" stopeffect "%player%.healingfloor9" stopeffect "%player%.healingfloor10" clear last dropped item stop else: send player title "&4You are not" with subtitle "&4&lSneaking" for 5 seconds Edited October 26, 2023 by Ensar1342 Link to comment Share on other sites More sharing options...
DuckyProgrammer Posted October 26, 2023 Share Posted October 26, 2023 Moved to Minehut -> Skript -> Discussion. Please use the right forum when making a thread. No rank - 2017-2021 Minehut Tester - 2021-2023 Minehut Volunteer Moderator - 2023-Current Report a player/server: Report Player / Server Create a support ticket: Submit a request Did I help you? If so, feel free to give me a like! Link to comment Share on other sites More sharing options...
DanRub Posted October 30, 2023 Share Posted October 30, 2023 Hey, you dont even have event in your skript, how can it possibly work, second thing, your spacing is stucked by 1 in line 2.. Link to comment Share on other sites More sharing options...
Ensar1342 Posted October 31, 2023 Author Share Posted October 31, 2023 wait i am sending you the complete skript sorry i forgot and its the right spacing its buggy here on right click: if name of player's held item is "<##3cff00>Healing Orb": if player is sneaking: remove 1 lime dye named "<##3cff00>Healing Orb" from player's inventory drop 1 of lime dye named "<##3cff00>Healing Orb" 1.5 block infront player's location set {_li} to last dropped item play sound "block.beacon.activate" at volume 1 and pitch 1 at player for all players in radius 5 around {_li} drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor1", rainbowMode false, scan true, height 0, radius 2.6, ringCount 40, ringDensity 20, visibleRange 100 drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor2", rainbowMode false, scan true, height 0, radius 2.3, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor3", rainbowMode false, scan true, height 0, radius 2, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor4", rainbowMode false, scan true, height 0, radius 1.7, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor5", rainbowMode false, scan true, height 0, radius 1.4, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor6", rainbowMode false, scan true, height 0, radius 1.1, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor7", rainbowMode false, scan true, height 0, radius 0.8, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor8", rainbowMode false, scan true, height 0, radius 0.6, ringCount 40, ringDensity 20, visibleRange 100 wait 2 ticks drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor9", rainbowMode false, scan true, height 0, radius 0.3, ringCount 40, ringDensity 20, visibleRange 100 drawWarpRings style 1, particle "redstone", RGB 0, 255, 0, center {_li}, id "%player%.healingfloor10", rainbowMode false, scan true, height 0, radius 0, ringCount 40, ringDensity 20, visibleRange 100 wait 2.5 seconds loop all players in radius 2.6 of {_li}: chance of 60%: loop 4 times: heal loop-player by 1 hearts send "&aChance 10" to loop-player play sound "block.beacon.ambient" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} wait 5 seconds chance of 30%: loop 4 times: heal loop-player by 1.5 hearts send "&aChance 10" to loop-player play sound "block.beacon.ambient" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} wait 5 seconds chance of 10%: loop 4 times: heal loop-player by 2 hearts send "&aChance 10" to loop-player play sound "block.beacon.ambient" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} wait 5 seconds play sound "block.beacon.deactivate" at volume 1 and pitch 1 at {_li} for all players in radius 3 around {_li} stopeffect "%player%.healingfloor1" stopeffect "%player%.healingfloor2" stopeffect "%player%.healingfloor3" stopeffect "%player%.healingfloor4" stopeffect "%player%.healingfloor5" stopeffect "%player%.healingfloor6" stopeffect "%player%.healingfloor7" stopeffect "%player%.healingfloor8" stopeffect "%player%.healingfloor9" stopeffect "%player%.healingfloor10" clear last dropped item stop else: send player title "&4You are not" with subtitle "&4&lSneaking" for 5 seconds Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now