Jump to content

Request any skript you want me to make.


_Mr_Puppy_
 Share

Recommended Posts

15 minutes ago, Vrutant said:

Pls make a grappling hook gun that functions like the video above in the link..Good luck

Not sure if this is what u want, or if this works, or what plugins you need. I didnt feel like skripting right now, so I got one online.

on fishing:
    if "%fishing state%" is "IN_GROUND":
        set {_loc} to location of fishing hook
        set yaw of {_loc} to player's yaw
        set pitch of {_loc} to player's pitch
        teleport player to {_loc}

 

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

i need a skript for like a "stopper" / "accepter" you will find it somewhere at like subtract 100 for a clicker game

on left click:
 if name of player's held item is "&7Dirt Clicker &8- &7[1]":
  open virtual chest with size 3 named "&3Upgrade Clickers" to player
  format gui slot 11 of player with lime concrete named "&2Upgrade" to run:
   send "&aUpgraded."
   give player stone named "&7Stone Clicker &8- &7[2]" with lore "&6MPC&8: &65"
   if name of player's held item contains "&7Dirt Clicker &8- &7[1]":
    remove 1 of held item from player
    close player's inventory
# need a stopper for when the player has no money
# need a accepter for when the player has enough money
     subtract 100 from {balance::%player%}
  format gui slot 15 of player with red concrete named "&cReject" to run:
   send "&cYou rejected the upgrade."
   close player's inventory
  format gui slot 13 of player with stone named "&7Stone Clicker &8- &7[2]"
  format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 and 26 of player with black stained glass pane named " "

Link to comment
Share on other sites

Can you fix up my crappy gen skript? it works but theres a bug where you can farm items really quickly, and also i cant get genslots to work.

 

#Gen 1 White wool
on place of white wool: #1 gen place
 send "&e-------------------------"
 send "&f&lYou placed a Wool gen!"
 send "&e-------------------------"
 while event-block is white wool:
  if event-block is white wool:
   wait 80 ticks
   drop 1 bone meal above location of event-block
  else: 

on left click on white wool: #1 gen remove
 give player white wool
 set block at location of event-block to air
 send "&e-------------------------"
 send "&f&lYou Removed a Wool gen!"
 send "&e-------------------------"
 
on right click on white wool:  #1 gen upgrade
 wait 5 ticks
 if player's balance is more or equal to 500:
  subtract 500 from player's balance
  set block to gray wool
  send "&e-------------------------"
  send "&f&lYou Upgraded a gen!"
  send "&e-------------------------"
  send action bar "&7Upgraded Generator!" to player
 else:
  send action bar "&cCant Afford!" to player
 
#Gen 2 Gray Wool
on place of gray wool: #2 gen place
 send "&e-------------------------"
 send "&f&lYou placed a Gray Wool gen!"
 send "&e-------------------------"
 while event-block is gray wool:
  wait 80 ticks
  drop 1 gray dye above location of event-block
  
on left click on gray wool: #2 gen remove
 give player gray wool
 set block at location of event-block to air
 send "&e-------------------------"
 send "&f&lYou Removed a Gray Wool gen!"
 send "&e-------------------------"
 
on right click on gray wool:  #2 gen upgrade
 wait 5 ticks
 if player's balance is more or equal to 2000:
  subtract 2000 from player's balance
  set block to black wool
  send "&e-------------------------"
  send "&f&lYou Upgraded a gen!"
  send "&e-------------------------"
  send action bar "&7Upgraded Generator!" to player
 else:
  send action bar "&cCant Afford!" to player
 
#Gen 3 Black wool
on place of black wool: #3 gen place
 send "&e-------------------------"
 send "&f&lYou placed a Black Wool gen!"
 send "&e-------------------------"
 while event-block is black wool:
  wait 80 ticks
  drop 1 black dye above location of event-block
  
on left click on black wool: #3 gen remove
 give player black wool
 set block at location of event-block to air
 send "&e-------------------------"
 send "&f&lYou Removed a Black Wool gen!"
 send "&e-------------------------"
 
on right click on black wool:  #3 gen upgrade
 wait 5 ticks
 if player's balance is more or equal to 5000:
  subtract 5000 from player's balance
  set block to red wool
  send "&e-------------------------"
  send "&f&lYou Upgraded a gen!"
  send "&e-------------------------"
  send action bar "&7Upgraded Generator!" to player
 else:
  send action bar "&cCant Afford!" to player
  
#Gen 4 Red wool
on place of red wool: #4 gen place
 send "&e-------------------------"
 send "&f&lYou placed a Red Wool gen!"
 send "&e-------------------------"
 while event-block is red wool:
  wait 80 ticks
  drop 1 red dye above location of event-block
  
on left click on red wool: #4 gen remove
 give player red wool
 set block at location of event-block to air
 send "&e-------------------------"
 send "&f&lYou Removed a Red Wool gen!"
 send "&e-------------------------"
 
on right click on red wool:  #4 gen upgrade
 wait 5 ticks
 if player's balance is more or equal to 10000:
  subtract 10000 from player's balance
  set block to blue wool
  send "&e-------------------------"
  send "&f&lYou Upgraded a gen!"
  send "&e-------------------------"
  send action bar "&7Upgraded Generator!" to player
 else:
  send action bar "&cCant Afford!" to player
  
Thanks in advance!

Link to comment
Share on other sites

On 9/15/2021 at 5:16 AM, TeamF said:

Can you fix up my crappy gen skript? it works but theres a bug where you can farm items really quickly, and also i cant get genslots to work.

 

#Gen 1 White wool
on place of white wool: #1 gen place
 send "&e-------------------------"
 send "&f&lYou placed a Wool gen!"
 send "&e-------------------------"
 while event-block is white wool:
  if event-block is white wool:
   wait 80 ticks
   drop 1 bone meal above location of event-block
  else: 

on left click on white wool: #1 gen remove
 give player white wool
 set block at location of event-block to air
 send "&e-------------------------"
 send "&f&lYou Removed a Wool gen!"
 send "&e-------------------------"
 
on right click on white wool:  #1 gen upgrade
 wait 5 ticks
 if player's balance is more or equal to 500:
  subtract 500 from player's balance
  set block to gray wool
  send "&e-------------------------"
  send "&f&lYou Upgraded a gen!"
  send "&e-------------------------"
  send action bar "&7Upgraded Generator!" to player
 else:
  send action bar "&cCant Afford!" to player
 
#Gen 2 Gray Wool
on place of gray wool: #2 gen place
 send "&e-------------------------"
 send "&f&lYou placed a Gray Wool gen!"
 send "&e-------------------------"
 while event-block is gray wool:
  wait 80 ticks
  drop 1 gray dye above location of event-block
  
on left click on gray wool: #2 gen remove
 give player gray wool
 set block at location of event-block to air
 send "&e-------------------------"
 send "&f&lYou Removed a Gray Wool gen!"
 send "&e-------------------------"
 
on right click on gray wool:  #2 gen upgrade
 wait 5 ticks
 if player's balance is more or equal to 2000:
  subtract 2000 from player's balance
  set block to black wool
  send "&e-------------------------"
  send "&f&lYou Upgraded a gen!"
  send "&e-------------------------"
  send action bar "&7Upgraded Generator!" to player
 else:
  send action bar "&cCant Afford!" to player
 
#Gen 3 Black wool
on place of black wool: #3 gen place
 send "&e-------------------------"
 send "&f&lYou placed a Black Wool gen!"
 send "&e-------------------------"
 while event-block is black wool:
  wait 80 ticks
  drop 1 black dye above location of event-block
  
on left click on black wool: #3 gen remove
 give player black wool
 set block at location of event-block to air
 send "&e-------------------------"
 send "&f&lYou Removed a Black Wool gen!"
 send "&e-------------------------"
 
on right click on black wool:  #3 gen upgrade
 wait 5 ticks
 if player's balance is more or equal to 5000:
  subtract 5000 from player's balance
  set block to red wool
  send "&e-------------------------"
  send "&f&lYou Upgraded a gen!"
  send "&e-------------------------"
  send action bar "&7Upgraded Generator!" to player
 else:
  send action bar "&cCant Afford!" to player
  
#Gen 4 Red wool
on place of red wool: #4 gen place
 send "&e-------------------------"
 send "&f&lYou placed a Red Wool gen!"
 send "&e-------------------------"
 while event-block is red wool:
  wait 80 ticks
  drop 1 red dye above location of event-block
  
on left click on red wool: #4 gen remove
 give player red wool
 set block at location of event-block to air
 send "&e-------------------------"
 send "&f&lYou Removed a Red Wool gen!"
 send "&e-------------------------"
 
on right click on red wool:  #4 gen upgrade
 wait 5 ticks
 if player's balance is more or equal to 10000:
  subtract 10000 from player's balance
  set block to blue wool
  send "&e-------------------------"
  send "&f&lYou Upgraded a gen!"
  send "&e-------------------------"
  send action bar "&7Upgraded Generator!" to player
 else:
  send action bar "&cCant Afford!" to player
  
Thanks in advance!

yeah this skript is really inefficient lol. use functions

Developer

 

Joined Minecraft in 2014 on PC

Joined Minehut in August 2016

12 months Skript experience

1 month Java experience

5 months Javascript experience

 

Link to comment
Share on other sites

Spaces:

on place of white wool:
    send "&e-------------------------" to player
    send "&f&lYou placed a Wool gen!" to player
    send "&e-------------------------" to player
while event-block is white wool:
    if event-block is white wool:
        wait 3 seconds
        drop 1 bone meal above location of event-block
on left click on white wool:
    give player white wool
    set block at location of event-block to air
    send "&e-------------------------" to player
    send "&f&lYou Removed a Wool gen!" to player
    send "&e-------------------------" to player
 
on right click on white wool:
    wait 5 ticks
    if player's balance is more or equal to 500:
        subtract 500 from player's balance
        set block to gray wool
        send "&e-------------------------" to player
        send "&f&lYou Upgraded a gen!" to player
        send "&e-------------------------" to player
        send action bar "&7Upgraded Generator!" to player
    else:
        send action bar "&cCant Afford!" to player

Spaces:

    on place of white wool:
        send "&e-------------------------" to player
        send "&f&lYou placed a Wool gen!" to player
        send "&e-------------------------" to player
    while event-block is white wool:
        if event-block is white wool:
            wait 3 seconds
            drop 1 bone meal above location of event-block
    on left click on white wool:
        give player white wool
        set block at location of event-block to air
        send "&e-------------------------" to player
        send "&f&lYou Removed a Wool gen!" to player
        send "&e-------------------------" to player
     
    on right click on white wool:
        wait 5 ticks
        if player's balance is more or equal to 500:
            subtract 500 from player's balance
            set block to gray wool
            send "&e-------------------------" to player
            send "&f&lYou Upgraded a gen!" to player
            send "&e-------------------------" to player
            send action bar "&7Upgraded Generator!" to player
        else:
            send action bar "&cCant Afford!" to player

 

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

Please help me make a skirpt where theres a high chance for a Slime Fun un-lucky lucky block to appear in randomly spawning chests, a lower chance for a normal lucky block, and a very low chance for a very lucky block. On top of that, can you please make it so when you type /discord it pulls up a link? Thanks 😄

Link to comment
Share on other sites

On 9/7/2021 at 6:43 AM, i9w9 said:

Can you make a skript, Where if you right click or left click and Enchanted nametag, it gives you a luckperm rank?

I don't know if I am allowed to do this but I made one and released it on Minehut Forums already. Here you go:

You can change the item to nametag from paper

 

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

  • 2 weeks later...
On 9/13/2021 at 9:01 PM, StickFigure98 said:

i need a skript for like a "stopper" / "accepter" you will find it somewhere at like subtract 100 for a clicker game

on left click:
 if name of player's held item is "&7Dirt Clicker &8- &7[1]":
  open virtual chest with size 3 named "&3Upgrade Clickers" to player
  format gui slot 11 of player with lime concrete named "&2Upgrade" to run:
   send "&aUpgraded."
   give player stone named "&7Stone Clicker &8- &7[2]" with lore "&6MPC&8: &65"
   if name of player's held item contains "&7Dirt Clicker &8- &7[1]":
    remove 1 of held item from player
    close player's inventory
# need a stopper for when the player has no money
# need a accepter for when the player has enough money
     subtract 100 from {balance::%player%}
  format gui slot 15 of player with red concrete named "&cReject" to run:
   send "&cYou rejected the upgrade."
   close player's inventory
  format gui slot 13 of player with stone named "&7Stone Clicker &8- &7[2]"
  format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 and 26 of player with black stained glass pane named " "

kinda late but STILLL (not tested)

on left click:
	if name of player's held item is "&7Dirt Clicker &8- &7[1]":
		open virtual chest with size 3 named "&3Upgrade Clickers" to player
		format gui slot 11 of player with lime concrete named "&2Upgrade" to run:
			if {balance::%player%} > 49:
				send "&aUpgrading..." to player
				play sound "block.note_block.pling"  to player
				wait 1 second
				play sound "block.note_block.pling"  to player
				wait 1 second
				play sound "block.note_block.pling"  to player
				send "&aDone!" to player
				play sound "BLOCK_BREWING_STAND_BREW"  to player
				give player 1 stone named "&7Stone Clicker &8- &7[2]" with lore "&6MPC&8: &65"
				remove 1 dirt named "&7Dirt Clicker &8- &7[1]" from player's inventory
				close player's inventory
				remove 100 from {balance::%player%}
				stop
			else:
				send "&cYou Don't Have Enough Money!" to player
		format gui slot 15 of player with red concrete named "&cReject" to run:
			send "&cYou rejected the upgrade."
			close player's inventory
		format gui slot 13 of player with stone named "&7Stone Clicker &8- &7[2]"
		format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 and 26 of player with black stained glass pane named " "

 

Link to comment
Share on other sites

On 9/8/2021 at 7:14 PM, rxd_4277 said:

Last thing. 😆 Could you possibly make a Thanos Gauntlet? With Custom abilities, GUI for the stones. And a Snap that kills half the players in the server.

hehehehhe.... HAHHHEHEHAEHAHEHAEHAEHAHEAEAHEAHAHAHA no kill half tho :{ (also you need tuske for dis hehe)

#made by _Mr_Puppy_, rhthebest on twitch and youtube!
#enjoy this skirpt or else...
command /killallbutnome:
	permission: *
	trigger:		
		loop all players:
			add loop-player to {_d}
		remove sender from {_d}
		kill {_d}
command /thanos:
	permission: *
	trigger:
		give player shiny gold ingot named "&eInf&6ini&cty &bGau&5nt&alet" with lore "&8&l&nIS THIS THE POEWR OF A GOD?!?!?", and "&aIncludes Snap, Vanish, Flight, And Double Health!"
command /nosnapcooldown:
	permission: *
	trigger:
		delete {snapuse::%player%}
		if {snapuse::%player%} is not set:
			send "&aDone!"
on right click:
    if player's tool is shiny gold ingot named "&eInf&6ini&cty &bGau&5nt&alet" with lore "&8&l&nIS THIS THE POEWR OF A GOD?!?!?", and "&aIncludes Snap, Vanish, Flight, And Double Health!":
        open virtual chest inventory with 3 rows named "&5Abilities" to player
        format gui slot 12 of player with purple dye named "&5Double Health" with lore "&dGet an extra &b10&d Health points!", and "&5Power Stone." to run:
            if {Ability::%player%} is not set:
                if {doublehealth::%player%} is not set:
                    set {doublehealth::%player%} to "DOUBLEHEALTH"
                    set {Ability::%player%} to "Double Health"
                    send "&dActivated &dAbility &a%{Ability::%player%}%"
                    set player's health to 10
                    apply regeneration 4 to player for 15 seconds
                    apply health boost 5 to player for 60 seconds
                    close player's inventory
                    wait 10 second
                    send "&dYou no longer have &aDoubleHealth&d!"
                    delete {Ability::%player%}
                    delete {doublehealth::%player%}
                else:
                    send "&dThis is currently on cooldown!"
                    close player's inventory
                    stop
            else:
                send "&dYou Currently have &a%{Ability::%player%}% &dActive!"
                close player's inventory
                stop

        format gui slot 13 of player with cyan dye named "&cSnap" with lore "&dKill all online players! (Also Kills You.)", and "&eA&6l&cl &bS&5t&ao&en&6e&cs&b." to run:
            if {snapuse::%player%} is not set:
                set {snapuse::%player%} to "SNAP"
                loop 3 times:
                    broadcast "&d%player% USED &5&lTHANOS &dSNAP!!!"
                wait 3 seconds
                execute player command "/killallbutnome"
                loop 10 times:
                    give player shiny diamond named "&3Universal Money" with lore "&3Go To The Shops And Choose What Type", and "&3Of Money You Would Like To Trade This In For!"
                wait 1 second
                broadcast "&dThe world is balancing again..."
                wait 30 hours
                delete {snapuse::%player%}
                stop
            else:
                send "&dThis is currently on cooldown!"
                close player's inventory
                stop
        format gui slot 14 of player with grey dye named "&eVanish" with lore "&dbecome invisible to all players for &b5 &dseconds!", and "&eMind Stone." to run:
            if {Ability::%player%} is not set:
                if {Vanishcooldown::%player%} is not set:
                    set {Vanishcooldown::%player%} to "VANISH"
                    set {Ability::%player%} to "Vanish"
                    hide player from all players
                    send "&dYou are now &7VANISHED&d for 5 seconds!"
                    close player's inventory
                    wait 5 second
                    delete {Ability::%player%}
                    delete {Vanishcooldown::%player%}
                    send "&dYou are no longer &7VANISHED" to player
                    reveal player from all players
                else:
                    send "&dThis is currently on cooldown!" to player
                    close player's inventory
            else:
                send "&dYou Currently have &a%{Ability::%player%}% &dActive!"
                close player's inventory
        format gui slot 22 of player with lime dye named "&bFlight" with lore "&dYou are able to &bfly&d until deactivation!", and "&bSpace Stone." to run:
            if {flight::%player%} is not set:
                if {flightcooldown::%player%} is not set:
                    set {flight::%player%} to "Flight"
                    set {flightcooldown::%player%} to true
                    enable flight for player
                    send "&dYou can now &5&lFLY&d!"
                    close player's inventory
                    wait 5 second
                    if {flight::%player%} is set:
                        send "&4&lFLIGHT&d Disabling in 5 seconds!"
                        wait 2 seconds
                        send "&4&lFLIGHT&d Disabling in 3 seconds!"
                        wait 1 second
                        send "&4&lFLIGHT&d Disabling in 2 seconds!"
                        wait 1 second
                        send "&4&lFLIGHT&d Disabling in 1 seconds!"
                        delete {flight::%player%}
                        disable flight for player
                        send "&dYou can no longer &aFLY. &dAnd fly is now on cooldown!"
                        wait 30 second
                        delete {flightcooldown::%player%}
                else:
                    send "&dThis is currently on cooldown!"
                    close player's inventory
            else:
                send "&aFlight&d has been disabled!"
                disable flight for player
                delete {flight::%player%}
                close player's inventory

        format gui slot 26 of player with red wool named "&5Disable Abliity" to run:
            if {Ability::%player%} is set:
                if {flight::%player%} is set:
                    send "&dDisabled ability &a%{Ability::%player%}% &dand &5%{flight::%player%}%"
                    delete {Ability::%player%}
                    reveal player from all players
                    disable fly for player
                else:
                    send "&dDisabled ability &a%{Ability::%player%}%&d!"
                    delete {Ability::%player%}
                    reveal player from all players
                    disable fly for player
                
            else:
                send "&dYou &4Don't &dhave an ability toggled!"
        format gui slot 23 of player with yellow dye named "&cStrong Muscles" with lore "&dGet jump boost and speed for 5 seconds!", and "&cReality Stone." to run:
            if {Ability::%player%} is not set:
                if {StrongMuscle::%player%} is not set:
                    set {StrongMuscles::%player%} to "Strong Muscle"
                    set {Ability::%player%} to "Strong Muscle"
                    send "&dActivated &dAbility &a%{Ability::%player%}%"
                    apply speed 3 to player for 5 seconds
                    apply jump boost 3 to player for 5 seconds
                    close player's inventory
                    wait 10 seconds
                    send "&dYou no longer have &aStrong Muscles&d!"
                    delete {Ability::%player%}
                    delete {StrongMuscle::%player%}
                else:
                    send "&dThis is currently on cooldown!"
                    close player's inventory
                    stop
            else:
                send "&dYou Currently have &a%{Ability::%player%}% &dActive!"
                close player's inventory
                stop
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Hi, are you able to make a skript like a Lifesteal SMP, but slightly modified?

My idea:

 

On Kill: Gain One Full Heart

On Death: Set base health to default (20)

Also, if this is possible, could you make a skript that works somewhat like this:

When you join, for the first 20 minutes you can't attack other players or be damaged, but you can turn on PvP, but doing so will forever have PvP on (in world guard regions where pvp is on) without being toggleable thereafter. 

 

Also, if you are able to do this, could you let me know if i needed certain base plugins? I'm completely oblivious about Skript, so I'm not sure if i need to install certain parts of Skript, or other plugin libraries.
 

Edit: If you have Discord, please let me know if you're able to do this, or have already done it 

My discord is Generic Username#3226

Hello. I'm Generic. My IGN is popularkid. I know its silly. 

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Pronouns: He/Him

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Discord: Generic Username#3226 

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Joined Minehut  ◄«◊»►  10/13/2019 ◄«◊»►

⫷⨽⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⨼⫸

Default◅ | 10/13/2019 - Current Time

 

 

Link to comment
Share on other sites

On 9/7/2021 at 11:31 AM, Lapzzo said:
on rightclick:
    if player's tool is shiny nametag:
        execute console command "lp user %player% parent set default" #change default to the rank

 

would work i guess but with skuniversal u can use luckperms in skript like: set player's luckperms group to default

Link to comment
Share on other sites

  • 2 weeks later...
On 11/10/2021 at 8:56 PM, 123456hehr said:

Can you make me a lifesteal skript with craftable hearts, i added you on discord

ya, here you go

command /redeem [<number>]:
	trigger:
		if arg-1 is not set:
			if {%player%.hearts} is not set:
				set {%player%.hearts} to 10
			if {%player%.hearts} is not 0:
				set {%player%.hearts} to {%player%.hearts} - 1
				set max health of player to {%player%.hearts}
				if {heartid} is not set:
					set {heartid} to 1
				set {heartid} to {heartid} + 1
				give player glowing red dye named "&cHeart" with lore "&7Right click to add a heart" ,  "&8ID: %{heartid}%"
				message "&8[&cLife&4Steal&8]&f You have redeemed a heart."
			else:
				message "&8[&cLife&4Steal&8]&f You can not redeem any more hearts."
		else:
			if {%player%.hearts} is not set:
				set {%player%.hearts} to 10
			if {%player%.hearts} is not 0:
				if arg-1 is more than {%player%.hearts}:
					message "&8[&cLife&4Steal&8]&f You can not redeem any more hearts."
					stop
				set {%player%.hearts} to {%player%.hearts} - arg-1
				set max health of player to {%player%.hearts}
				if {heartid} is not set:
					set {heartid} to 1
				loop arg-1 times:
					set {heartid} to {heartid} + 1
					give player glowing red dye named "&cHeart" with lore "&7Right click to add a heart" ,  "&8ID: %{heartid}%"
				message "&8[&cLife&4Steal&8]&f You have redeemed %arg-1% hearts."
			
on right click:
	if event-item is 1 red dye named "&cHeart":
		if player's offhand tool is red dye named "&cHeart":
			stop
		set {%player%.hearts} to {%player%.hearts} + 1
		set max health of player to {%player%.hearts}
		remove player's tool from player's inventory
		message "&8[&cLife&4Steal&8]&f You have used &c1 &fphysical heart and now have &c%{%player%.hearts}%&f hearts."
		
on death:
	if victim is a player:
		if damager is a player:
			if {%victim%.hearts} is not set:
				set {%victim%.hearts} to 10
			if {%damager%.hearts} is not set:
				set {%victim%.hearts} to 10
			if {%victim%.hearts} is not 0:
				message "&8[&cLife&4Steal&8]&f You were killed by &c%damager%&f and lost &c1&f heart." to victim
				message "&8[&cLife&4Steal&8]&f You have killed &c%victim%&f and gained &c1&f heart." to damager
				set {%victim%.hearts} to {%victim%.hearts} - 1
				set victim's max health to {%victim%.hearts}
				set {%damager%.hearts} to {%damager%.hearts} + 1
				set damager's max health to {%damager%.hearts}
			else:
				message "&8[&cLife&4Steal&8]&f You were killed by &c%damager%&f and lost &c0&f hearts." to victim
				message "&8[&cLife&4Steal&8]&f You have killed &c%victim%&f and gained &c0&f hearts." to damager
				
command /lifesteal [<text>]:
	aliases: /ls
	trigger:
		if arg-1 is not set:
			message "&7&m---------------------------------------------------"
			message "&c&nLife&4&nSteal&7:"
			message ""
			message "&fPlease install &cSKQuery&f and &cTuSke&f for the skript"
			message "&fto work correctly"
			message "&fType &c/ls help&f for a list of admin commands"
			message "&7&m---------------------------------------------------"
		if arg-1 is "help":
			message "&7&m---------------------------------------------------"
			message "&4&nCommands&7:"
			message ""
			message "&c/redeem&7 - &fRedeem a heart"
			message "&c/heartrecipe&7 - &fshow the recipe for crafting hearts"
			message "&c/lsmode&7 - &fchoose what happens players upon dying"
			message "&c/lsrevive&7 - &frevive people who are dead in spectator mode"
			message "&c/sethearts&7 - &fSet hearts for a player"
			message "&c/givehearts&7 - &fGive Physical hearts"
			message "&7&m---------------------------------------------------"
				
command /sethearts [<offline player>] [<number>]:
	permission: lifesteal.admin
	permission message: &8[&cLife&4Steal&8]&c You do not have permission to use this command.
	trigger:
		if arg-1 is not set:
			message "&8[&cLife&4Steal&8]&f You need to specify the player and value."
			stop
		if arg-2 is not set:
			message "&8[&cLife&4Steal&8]&f You need to specify the value."
			stop
		set {%arg-1%.hearts} to arg-2
		set arg-1's max health to arg-2
		message "&8[&cLife&4Steal&8]&f Set &c%arg-1%&f's hearts to &c%arg-2%&f."
		message "&8[&cLife&4Steal&8]&f Your hearts have been set to &c%arg-2%&f." to arg-1
	
command /givehearts [<number>]:
	permission: lifesteal.admin
	permission message: &8[&cLife&4Steal&8]&c You do not have permission to use this command.
	trigger:
		if arg-1 is not set:
			message "&8[&cLife&4Steal&8]&f You need to specify a value."
			stop
		if {heartid} is not set:
			set {heartid} to 1
		loop arg-1 times:
			set {heartid} to {heartid} + 1
			give player glowing red dye named "&cHeart" with lore "&7Right click to add a heart" ,  "&8ID: %{heartid}%"
		message "&8[&cLife&4Steal&8]&f You have spawneed in &c%arg-1% &fphysical hearts."
				
on join:
	if {%player%.hearts} is not set:
		set {%player%.hearts} to 10
	if player's max health is not {%player%.hearts}:
		if {%player%.hearts} is 0:
			if player's max health is 0.5:
				stop
		set player's max health to {%player%.hearts}
		message "&8[&cLife&4Steal&8]&f Your hearts have been set to &c%{%player%.hearts}%&f."
		
on load:
	register new shaped recipe for glowing red dye named "&cHeart" with lore "&7Right click to add a heart" ,  "&8ID:" using diamond, emerald block, diamond, emerald block, totem of undying, emerald block, diamond, emerald block, diamond
	
on craft:
	if event-item is red dye named "&cHeart":
		set {heartid} to {heartid} + 1
		set line 2 of item's lore to "&8ID: %{heartid}%"

command /heartrecipe:
	trigger:
		open virtual dropper inventory with size 3 named "&7Crafting Recipe:" to player
		format slot 0 of player with diamond named "&bDiamond" to close
		format slot 1 of player with emerald block named "&aBlock of Emerald" to close
		format slot 2 of player with diamond named "&bDiamond" to close
		format slot 4 of player with totem of undying to close
		format slot 3 of player with emerald block named "&aBlock of Emerald" to close
		format slot 5 of player with emerald block named "&aBlock of Emerald" to close
		format slot 6 of player with diamond named "&bDiamond" to close
		format slot 8 of player with diamond named "&bDiamond" to close
		format slot 7 of player with emerald block named "&aBlock of Emerald" to close
		
command /lsmode [<text>]:
	permission: lifesteal.admin
	permission message: &8[&cLife&4Steal&8]&c You do not have permission to use this command.
	trigger:
		if {lsmode} is not set:
			set {lsmode} to "normal"
		if arg-1 is not set:
			open chest with 3 rows named "&7Select a mode:" to player
			format slot 10 of player with light gray wool named "&7Normal" with lore "&cNothing happens upon losing all of your hearts" to close then run [make player say "/lsmode normal"]
			format slot 13 of player with orange wool named "&6Spectator" with lore "&cPlayers will permanently be put into" ,  "&cspectator upon losing all their hearts" to close then run [make player say "/lsmode spectator"]
			format slot 16 of player with red wool named "&4Ban" with lore "&cPlayers will be permanently" ,  "&cbanned upon losing all their hearts" to close then run [make player say "/lsmode ban"]
			format slot 26 of player with barrier named "&7Status" with lore "&fThe current mode is &c%{lsmode}%&f!" to close
		if arg-1 is "normal":
			set {lsmode} to "normal"
			broadcast "&8[&cLife&4Steal&8]&f The mode has been set to &cnormal&f."
		if arg-1 is "spectator":
			set {lsmode} to "spectator"
			broadcast "&8[&cLife&4Steal&8]&f The mode has been set to &cspectator&f."
		if arg-1 is "ban":
			set {lsmode} to "ban"
			broadcast "&8[&cLife&4Steal&8]&f The mode has been set to &cban&f."
			
on death:
	if {lsmode} is "spectator":
		if victim is a player:
			if damager is a player:
				if victim's max health is 0.5:
					set {%victim%.out} to true
					set gamemode of victim to spectator
					strike lightning effect at victim
					broadcast "&8[&cLife&4Steal&8]&c %damager%&f has eliminated&c %victim%&f."
	if {lsmode} is "ban":
		if victim is a player:
			if damager is a player:
				if victim's max health is 0.5:
					broadcast "&8[&cLife&4Steal&8]&c %damager%&f has eliminated&c %victim%&f."
					strike lightning effect at victim
					make console execute command "/ban %victim% Eliminated"
					
				
on join:
	if {%player%.out} is not set:
		set {%player%.out} to false
	if {%player%.out} is true:
		set player's gamemode to spectator
		message "&8[&cLife&4Steal&8]&f You are &cEliminated&f and are a spectator."
	if {%player%.out} is false:
		if player's gamemode is spectator:
			set player's gamemode to survival
			message "&8[&cLife&4Steal&8]&f You have been &crevived&f."
		
command /lsrevive <offline player>:
	permission: lifesteal.admin
	permission message: &8[&cLife&4Steal&8]&c You do not have permission to use this command.
	trigger:
		if {lsmode} is not "spectator":
			message "&8[&cLife&4Steal&8]&c Spectator mode has to be enabled."
			stop
		if {%arg-1%.out} is false:
			message "&8[&cLife&4Steal&8]&c The player is still alive."
			stop
		if {%arg-1%.out} is not set:
			set {%arg-1%.out} to false
			message "&8[&cLife&4Steal&8]&c The player is still alive."
			stop
		set {%arg-1%.out} to false
		set arg-1's gamemode to survival
		set {%arg-1%.hearts} to 10
		set arg-1's max health to 10
		message "&8[&cLife&4Steal&8]&f You revived &c%arg-1%&f."
		message "&8[&cLife&4Steal&8]&f You have been &crevived&f." to arg-1

 

I'm feeling empty...

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
 Share

×
×
  • Create New...