-
Posts
21 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by snnwer
-
-
try debugging the coordinates and broadcast a value after each check to see where the end is, aka
on player connect: send 1 if player's x-coordinate is smaller than 5125: send 2, player's x-coordinate if player's x-coordinate is bigger than -5125: #etc
-
On 11/27/2021 at 7:03 PM, Madlirex said:
Hi snnwer,
I need skript, when you will do command /playergroups admins add <player> it will add player’s uuid to one variable named “Adminsuuid” and his nick to other one named “Admins” and it will send you “Added (player) to admins”, when you will do command /playergroups admins list it will send to chat you list of the players what are in variable “Admins” and when you will do command /playergroups admins remove <player> it will remove player’s uuid from “Adminsuuid” and his nick from “Admins” and it will send you “Removed “player” from admins”. (I am making skripts for my server with plugin Skript)
sorry for late response,
i can do an even better one:
command admins [<offline player>]: permission: op trigger: if arg-1 isn't set: send "&7Current list of admins: &c%{groups::admins::*}%" else: {groups::admins::*} contains arg-1's uuid: remove arg-1's uuid from {groups::admins::*} send "&7Demoted &c%arg-1%" else: add arg-1's uuid to {groups::admins::*} send "&7Made &a%arg-1% &7admin"
-
Just now, nolando09 said:
Then why won't it work
try debugging the variables
-
20 minutes ago, nolando09 said:
I don't need you to make me anything, but if you could help me make my skript work or let me know what addons I need for it to work!
Pastebin: https://pastebin.com/RZ88U2F8
skUnity Parser shows 0 addons
-
15 hours ago, BOXEY said:
here you go for the base sword
options: clevel: %{catleve.%player%}% critdamage: 50 command metadatatest: trigger: set metadata tag "Hyperion" of player to iron sword named "&6Hyperion" with lore "&7Gear Score: &d615" and "&7Damage: &c+260" and "&7Strenght: &c+150" and "&7Intelligence: &a+350" and "&7Ferocity: &a+30" and " " and "&7Deals +&a50%&7 damage to" and "&7Withers. Grants &c+1 Damage" and "&7and &a+2 &bIntelligence" and "&7Per &cCatacombs&7 level" and " " and "&7You Catacombs level: &c{@clevel}" and " " and "&eRight-click to use your class abiltiy" and " " and "&8This item can be reforged" and "&6&lLEGENDARY DUNGEON SWORD" add (metadata tag "Hyperion" of player) to player #on right click: # if event-item = (metadata tag "Hyperion" of player): # send "a" on damage: if victim is a wither: if attacker is a player: attacker's tool = (metadata tag "Hyperion" of attacker) set {_s} to 150 set {_crit} to {@critdamage} set {_b} to 260 set {_d} to (260+5) * (1 + {_s}/100) * (1 + {_crit}/100) * (1+ ({_b}/2)/100) set damage to {_d} else: if attacker is a player: attacker's tool = (metadata tag "Hyperion" of attacker) set {_s} to 150 set {_crit} to {@critdamage} set {_d} to (260+5) * (1 + {_s}/100) * (1 + {_crit}/100) set damage to {_d}
put the catacombs level var up in the options
math
found here Strength | Hypixel SkyBlock Wiki | Fandom
cool
-
21 hours ago, ButterflyBullets said:
sure but actually make the sword
can you be more precise
-
16 hours ago, ButterflyBullets said:
k, make the Hyperion from hypixel skyblock, here is a pager for reference
ig this works
on damage: victim is a wither attacker is a player attacker's tool = iron sword uncolored attacker's tool's name = "hyperion" deal (final damage/2) to the victim
- 1
-
skUtilities can be used on 1.17, at least I used it
-
help
in Discussion
send code maybe
-
still open [i hope this gets merged]
- 1
-
9 hours ago, ButterflyBullets said:
alr thx, but can you explain that for idiots. Im pretty good at skript but not so smart, dumb it down a bit pls
on damage: name of attacker's tool contains "Vampirism I": add 0.5 to attacker's health every second in "world": loop all players: send action bar "&c%loop-player's health%/%loop-player's max health%❤ &a{defence::%player's uuid%}❈ Defence &b{mana::%player's uuid%}/{totalmana::%player's uuid%}✎ Intelligence" to loop-player add 1 to {mana::%loop-player's uuid%}
you can just shorten it into that, no need to simulate the player's health
-
command /repairall [<text>]: permission: op trigger: loop all items in player's inventory: loop-item's durability < loop-item's max durability repair loop-item
will probably work
-
there's no player in the death/damage event, only victim/attacker
there's no player in a periodical event, you're looping through the players so use loop-player
you probably did a typo with
loop-player's {health::%player's uuid%}
- 1
-
make an infinity gauntlet with a full gui, a snap, all six power stones, and each power stone having at least TWO abilities accurately depicting it as if it was straight from the movie. (Ex: Time Stone, rewind time ect.)
-
56 minutes ago, ButterflyBullets said:
yes ik this, but when somebody else has a whole skript alr made, its just makes a lot more sense to paste it then to write a whole new one, and I never claimed credit either. The person never specified anything exact as well so the obvious option is to paste a skript that sum1 else alr made, I would give credit but I don't know where to find it. If you do then pls tell em so I can credit them. I hope this clears everything up
this, possibly
-
3 hours ago, ButterflyBullets said:
alr:
# GEN SKRIPT (go to 2300) options: bluetored: 10000000 purpletoblue: 5000000 greentopurple: 2500000 yellowtogreen: 2000000 lbtoyellow: 1500000 whitetolb: 1000000 emeraldtowhite: 750000 diamondtoemerald: 500000 goldtodiamond: 400000 irontogold: 300000 coaltoiron: 250000 melontocoal: 100000 pumpkintomelon: 50000 haytopumpkin: 10000 command /genget <text> [<player>]: permission: gen.give permission message: &cNo permission! trigger: if arg-2 is set: set {_p} to arg-2 else: set {_p} to player if arg-1 is "white": give {_p} 1 white glazed terracotta named "&6&lWhite Gen" with lore "&7(Place To Use)" if arg-1 is "lightblue": give {_p} 1 light blue glazed terracotta named "&6&lLight Blue Gen" with lore "&7(Place To Use)" if arg-1 is "yellow": give {_p} 1 yellow glazed terracotta named "&6&lYellow Gen" with lore "&7(Place To Use)" if arg-1 is "green": give {_p} 1 lime glazed terracotta named "&6&lGreen Gen" with lore "&7(Place To Use)" if arg-1 is "purple": give {_p} 1 purple glazed terracotta named "&6&lPurple Gen" with lore "&7(Place To Use)" if arg-1 is "blue": give {_p} 1 blue glazed terracotta named "&6&lBlue Gen" with lore "&7(Place To Use)" if arg-1 is "red": give {_p} 1 red glazed terracotta named "&6&lRed Gen" with lore "&7(Place To Use)" if arg-1 is "emerald": give {_p} 1 emerald block named "&6&lEmerald Gen" with lore "&7(Place To Use)" if arg-1 is "diamond": give {_p} 1 diamond block named "&6&lDiamond Gen" with lore "&7(Place To Use)" if arg-1 is "gold": give {_p} 1 gold block named "&6&lGold Gen" with lore "&7(Place To Use)" if arg-1 is "iron": give {_p} 1 iron block named "&6&lIron Gen" with lore "&7(Place To Use)" if arg-1 is "coal": give {_p} 1 coal block named "&6&lCoal Gen" with lore "&7(Place To Use)" if arg-1 is "melon": give {_p} 1 melon named "&6&lMelon Gen" with lore "&7(Place To Use)" if arg-1 is "pumpkin": give {_p} 1 pumpkin named "&6&lPumpkin Gen" with lore "&7(Place To Use)" if arg-1 is "wheat": give {_p} 1 hay block named "&6&lWheat Gen" with lore "&7(Place To Use)" on place of emerald block or diamond block or gold block or iron block or coal block or melon or pumpkin or hay block or white glazed terracotta or light blue glazed terracotta or yellow glazed terracotta or lime glazed terracotta or purple glazed terracotta or blue glazed terracotta or red glazed terracotta: set {_p} to player set {_u} to player's uuid if {gc::%{_u}%} >= {gencap::%{_u}%}: cancel event send "&f" to {_p} send "&a&lGenerator &7» &aYou have reached the max generator limit" to {_p} send "&aTo upgrade this purchase a rank at &a/buy" to {_p} send "&f" to {_p} stop wait 2 ticks if event-block is a hay block: add location of event-block to {gens::%{_u}%::wheat::*} add 1 to {gc::%{_u}%} if event-block is a emerald block: add location of event-block to {gens::%{_u}%::emerald::*} add 1 to {gc::%{_u}%} if event-block is a diamond block: add location of event-block to {gens::%{_u}%::diamond::*} add 1 to {gc::%{_u}%} if event-block is a gold block: add location of event-block to {gens::%{_u}%::gold::*} add 1 to {gc::%{_u}%} if event-block is a iron block: add location of event-block to {gens::%{_u}%::iron::*} add 1 to {gc::%{_u}%} if event-block is a coal block: add location of event-block to {gens::%{_u}%::coal::*} add 1 to {gc::%{_u}%} if event-block is a melon: add location of event-block to {gens::%{_u}%::melon::*} add 1 to {gc::%{_u}%} if event-block is a pumpkin: add location of event-block to {gens::%{_u}%::pumpkin::*} add 1 to {gc::%{_u}%} if event-block is a white glazed terracotta: add location of event-block to {gens::%{_u}%::white::*} add 1 to {gc::%{_u}%} if event-block is a light blue glazed terracotta: add location of event-block to {gens::%{_u}%::lb::*} add 1 to {gc::%{_u}%} if event-block is a yellow glazed terracotta: add location of event-block to {gens::%{_u}%::yellow::*} add 1 to {gc::%{_u}%} if event-block is a lime glazed terracotta: add location of event-block to {gens::%{_u}%::lime::*} add 1 to {gc::%{_u}%} if event-block is a purple glazed terracotta: add location of event-block to {gens::%{_u}%::purple::*} add 1 to {gc::%{_u}%} if event-block is a blue glazed terracotta: add location of event-block to {gens::%{_u}%::blue::*} add 1 to {gc::%{_u}%} if event-block is a red glazed terracotta: add location of event-block to {gens::%{_u}%::red::*} add 1 to {gc::%{_u}%} on left click on emerald block or diamond block or gold block or iron block or coal block or pumpkin or hay block or melon or white glazed terracotta or light blue glazed terracotta or yellow glazed terracotta or lime glazed terracotta or purple glazed terracotta or blue glazed terracotta or red glazed terracotta: if player is not sneaking: if event-block is emerald block: if {gens::%player's uuid%::emerald::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::emerald::*} set event-block to air give player 1 emerald block named "&6&lEmerald Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is diamond block: if {gens::%player's uuid%::diamond::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::diamond::*} set event-block to air give player 1 diamond block named "&6&lDiamond Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is gold block: if {gens::%player's uuid%::gold::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::gold::*} set event-block to air give player 1 gold block named "&6&lGold Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is iron block: if {gens::%player's uuid%::iron::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::iron::*} set event-block to air give player 1 iron block named "&6&lIron Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is coal block: if {gens::%player's uuid%::coal::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::coal::*} set event-block to air give player 1 coal block named "&6&lCoal Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is pumpkin: if {gens::%player's uuid%::pumpkin::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::pumpkin::*} set event-block to air give player 1 pumpkin named "&6&lPumpkin Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is hay block: if {gens::%player's uuid%::wheat::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::wheat::*} set event-block to air give player 1 hay block named "&6&lWheat Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is melon: if {gens::%player's uuid%::melon::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::melon::*} set event-block to air give player 1 melon named "&6&lMelon Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is white glazed terracotta: if {gens::%player's uuid%::white::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::white::*} set event-block to air give player 1 white glazed terracotta named "&6&lWhite Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is light blue glazed terracotta: if {gens::%player's uuid%::lb::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::lb::*} set event-block to air give player 1 light blue glazed terracotta named "&6&lLight Blue Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is yellow glazed terracotta: if {gens::%player's uuid%::yellow::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::yellow::*} set event-block to air give player 1 yellow glazed terracotta named "&6&lYellow Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is lime glazed terracotta: if {gens::%player's uuid%::lime::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::lime::*} set event-block to air give player 1 lime glazed terracotta named "&6&lGreen Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is purple glazed terracotta: if {gens::%player's uuid%::purple::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::purple::*} set event-block to air give player 1 purple glazed terracotta named "&6&lPurple Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is blue glazed terracotta: if {gens::%player's uuid%::blue::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::blue::*} set event-block to air give player 1 blue glazed terracotta named "&6&lBlue Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else if event-block is red glazed terracotta: if {gens::%player's uuid%::red::*} contains location of event-block: play sound "entity.item.pickup" with volume 3 to the player remove 1 from {gc::%player's uuid%} remove location of event-block from {gens::%player's uuid%::red::*} set event-block to air give player 1 red glazed terracotta named "&6&lRed Gen" with lore "&7(Place To Use)" send action bar "&a&lGenerator &7» &aYou collected your Gen!" to player else: cancel event play sound "entity.villager.no" with volume 3 to the player send "&6&lGenerator &7» &eThis is not your generator!" on break of emerald block or diamond block or gold block or iron block or coal block or pumpkin or hay block or melon or white glazed terracotta or light blue glazed terracotta or yellow glazed terracotta or lime glazed terracotta or purple glazed terracotta or blue glazed terracotta or red glazed terracotta: cancel event command /globalbooster [<offline player>]: permission: "*" permission message: &cNo permission! trigger: set {_p} to arg-1 give {_p} 1 of nether star named "&6&lGlobal Booster" with lore "&e&o(Right-Click to Activate a Global Booster)" send "&eYou have been granted a &6&lGlobal Booster! &e&o(Right-Click to Activate a Global Booster)" to arg-1 on rightclick holding a nether star: if name of player's held item is "&6&lGlobal Booster": if {globalbooster} is false: remove held item from player's inventory set {globalbooster} to true broadcast "" broadcast "&6&lGlobal Booster &ehas been activated for 1 hour by &e%player%!" broadcast " &e&o(Drop Amount for Gens 2x)" broadcast "" set {globaltime} to 60 remove bossbar "globaloff" create bossbar title "&6&lGlobal Booster: &e%{globaltime}% &eMinutes" and id "global" for all players with progress 100 with colors yellow wait 1 hour broadcast "" broadcast "&6&lGlobal Booster &ehas expired, buy another one on &7/buy!" broadcast "" set {globalbooster} to false remove bossbar "global" else: send "&ePlease wait, there is currently a &6Global Booster &egoing on at this time!" command /globalboosteroff: permission: "*" permission message: &cNo permission! trigger: set {globalbooster} to false broadcast "" broadcast "&6&lGlobal Booster &ehas been disabled by &7%player%!" broadcast "" on load: if {globalbooster} is not set: set {globalbooster} to false every minute: if {globalbooster} is false: remove bossbar "global" create bossbar title "&6&lCheck out our server store &e&l/buy" and id "globaloff" for all players with progress 100 with colors yellow else if {globalbooster} is true: remove bossbar "global" remove 1 from {globaltime} create bossbar title "&6&lGlobal Booster: &e%{globaltime}%&e Minutes" and id "global" for all players with progress 100 with colors yellow on join: if {gencap::%player's uuid%} is not set: set {gencap::%player's uuid%} to 25 if {gc::%player's uuid%} is not set: set {gc::%player's uuid%} to 0 if {globalbooster} is false: remove bossbar "global" create bossbar title "&e&lStore &8• &e&n/buy" and id "globaloff" for all players with progress 100 with colors yellow else if {globalbooster} is true: remove bossbar "global" remove 1 from {globaltime} create bossbar title "&6&lGlobal Booster: &e%{globaltime}% &eMinutes" and id "global" for all players with progress 100 with colors yellow command /resetgen [<offline player>]: permission: op trigger: if arg-1 is set: set {_u} to arg-1's uuid send "&3&lAll gens for &b&l%arg-1% &3&lwere reset! &7(A relog for this player is recommended)" to player else: set {_u} to player's uuid send "&3&lAll gens for &b&l%player% &3&lwere reset! &7(A relog for this player is recommended)" to player loop {gens::%{_u}%::*}: loop {gens::%{_u}%::%loop-value%::*}: set block at location of loop-value-2 to air delete {gens::%{_u}%::%loop-value-1%::%loop-value-2%} delete {gens::%{_u}%::*} set {gc::%{_u}%} to 0 on left click on emerald block or diamond block or gold block or iron block or coal block or pumpkin or hay block or melon or white glazed terracotta or light blue glazed terracotta or yellow glazed terracotta or lime glazed terracotta or purple glazed terracotta or blue glazed terracotta or red glazed terracotta: if player is sneaking: set {_loc} to location of event-block if {gens::%player's uuid%::red::*} contains {_loc}: send action bar "&b&lGenerator &B» &fThis generator is already maxed out!" to player else if {gens::%player's uuid%::diamond::*} contains {_loc}: set {_price} to {@diamondtoemerald} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&6&lGenerator &7» &eYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::diamond::*} remove 1 from {gc::%player's uuid%} make console execute command "genget emerald %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::gold::*} contains {_loc}: set {_price} to {@goldtodiamond} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::gold::*} remove 1 from {gc::%player's uuid%} make console execute command "genget diamond %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::iron::*} contains {_loc}: set {_price} to {@irontogold} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&6&lGenerator &7» &eYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::iron::*} remove 1 from {gc::%player's uuid%} make console execute command "genget gold %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::coal::*} contains {_loc}: set {_price} to {@coaltoiron} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::coal::*} remove 1 from {gc::%player's uuid%} make console execute command "genget iron %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::melon::*} contains {_loc}: set {_price} to {@melontocoal} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::melon::*} remove 1 from {gc::%player's uuid%} make console execute command "genget coal %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::pumpkin::*} contains {_loc}: set {_price} to {@pumpkintomelon} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::pumpkin::*} remove 1 from {gc::%player's uuid%} make console execute command "genget melon %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::wheat::*} contains {_loc}: set {_price} to {@haytopumpkin} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGeneratoar &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::wheat::*} remove 1 from {gc::%player's uuid%} make console execute command "genget pumpkin %player%" set event-block to air send action bar "&a&lGenerator &7» &eYou ranked up your gen!" to player else if {gens::%player's uuid%::emerald::*} contains {_loc}: set {_price} to {@emeraldtowhite} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::emerald::*} remove 1 from {gc::%player's uuid%} make console execute command "genget white %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::white::*} contains {_loc}: set {_price} to {@whitetolb} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::white::*} remove 1 from {gc::%player's uuid%} make console execute command "genget lightblue %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::lb::*} contains {_loc}: set {_price} to {@lbtoyellow} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::lb::*} remove 1 from {gc::%player's uuid%} make console execute command "genget yellow %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::yellow::*} contains {_loc}: set {_price} to {@yellowtogreen} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::yellow::*} remove 1 from {gc::%player's uuid%} make console execute command "genget green %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::lime::*} contains {_loc}: set {_price} to {@greentopurple} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::lime::*} remove 1 from {gc::%player's uuid%} make console execute command "genget purple %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::purple::*} contains {_loc}: set {_price} to {@purpletoblue} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&a&lGenerator &7» &aYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::purple::*} remove 1 from {gc::%player's uuid%} make console execute command "genget blue %player%" set event-block to air send action bar "&a&lGenerator &7» &aYou ranked up your gen!" to player else if {gens::%player's uuid%::blue::*} contains {_loc}: set {_price} to {@bluetored} if player's balance < {_price}: if player's held item is air: play sound "entity.villager.no" with volume 3 to player send action bar "&6&lGenerator &7» &eYou need &7$%{_price}% &eto upgrade!" to player stop else: send action bar "&a&lGenerator &7» &aYou need to hold nothing in your hand to upgrade your gen!" to player stop remove {_price} from balance of player remove {_loc} from {gens::%player's uuid%::blue::*} remove 1 from {gc::%player's uuid%} make console execute command "genget red %player%" set event-block to air send action bar "&6&lGenerator &7» &aYou ranked up your gen!" to player else: cancel event send "&aThis is not your generator!" every 5 seconds: loop all players: if {globalbooster} is false: drop 1 emerald above {gens::%loop-player's uuid%::emerald::*} drop 1 diamond above {gens::%loop-player's uuid%::diamond::*} drop 1 gold ingot above {gens::%loop-player's uuid%::gold::*} drop 1 iron ingot above {gens::%loop-player's uuid%::iron::*} drop 1 coal above {gens::%loop-player's uuid%::coal::*} drop 1 melon slice above {gens::%loop-player's uuid%::melon::*} drop 1 pumpkin pie above {gens::%loop-player's uuid%::pumpkin::*} drop 1 wheat above {gens::%loop-player's uuid%::wheat::*} drop 1 light gray dye above {gens::%loop-player's uuid%::white::*} drop 1 light blue dye above {gens::%loop-player's uuid%::lb::*} drop 1 yellow dye above {gens::%loop-player's uuid%::yellow::*} drop 1 lime dye above {gens::%loop-player's uuid%::lime::*} drop 1 purple dye above {gens::%loop-player's uuid%::purple::*} drop 1 blue dye above {gens::%loop-player's uuid%::blue::*} drop 1 red dye above {gens::%loop-player's uuid%::red::*} if {globalbooster} is true: drop 2 emerald above {gens::%loop-player's uuid%::emerald::*} drop 2 diamond above {gens::%loop-player's uuid%::diamond::*} drop 2 gold ingot above {gens::%loop-player's uuid%::gold::*} drop 2 iron ingot above {gens::%loop-player's uuid%::iron::*} drop 2 coal above {gens::%loop-player's uuid%::coal::*} drop 2 melon slice above {gens::%loop-player's uuid%::melon::*} drop 2 pumpkin pie above {gens::%loop-player's uuid%::pumpkin::*} drop 2 wheat above {gens::%loop-player's uuid%::wheat::*} drop 2 light gray dye above {gens::%loop-player's uuid%::white::*} drop 2 light blue dye above {gens::%loop-player's uuid%::lb::*} drop 2 yellow dye above {gens::%loop-player's uuid%::yellow::*} drop 2 lime dye above {gens::%loop-player's uuid%::lime::*} drop 2 purple dye above {gens::%loop-player's uuid%::purple::*} drop 2 blue dye above {gens::%loop-player's uuid%::blue::*} drop 2 red dye above {gens::%loop-player's uuid%::red::*} command /sell: trigger: set {_multi} to 1 + {purchased_multi} set {_e} to number of all emerald in player's inventory set {_d} to number of all diamond in player's inventory set {_g} to number of all gold ingot in player's inventory set {_i} to number of all iron ingot in player's inventory set {_c} to number of all coal in player's inventory set {_m} to number of all melon slice in player's inventory set {_p} to number of all pumpkin pie in player's inventory set {_w} to number of all wheat in player's inventory set {_d1} to number of all light gray dye in player's inventory set {_d2} to number of all light blue dye in player's inventory set {_d3} to number of all yellow dye in player's inventory set {_d4} to number of all lime dye in player's inventory set {_d5} to number of all purple dye in player's inventory set {_d6} to number of all blue dye in player's inventory set {_d7} to number of all red dye in player's inventory remove all emerald, diamond, gold ingot, iron ingot, coal, melon slice, pumpkin pie, light gray dye, light blue dye, yellow dye, lime dye, purple dye, blue dye, red dye and wheat from player's inventory set {_9} to {_d1} * 225 * {_multi} set {_10} to {_d2} * 250 * {_multi} set {_11} to {_d3} * 275 * {_multi} set {_12} to {_d4} * 300 * {_multi} set {_13} to {_d5} * 325 * {_multi} set {_14} to {_d6} * 350 * {_multi} set {_15} to {_d7} * 375 * {_multi} set {_1} to {_e} * 200 * {_multi} set {_2} to {_d} * 175 * {_multi} set {_3} to {_g} * 150 * {_multi} set {_4} to {_i} * 125 * {_multi} set {_5} to {_c} * 100 * {_multi} set {_6} to {_m} * 75 * {_multi} set {_7} to {_p} * 50 * {_multi} set {_8} to {_w} * 25 * {_multi} play sound "block.note_block.chime" with volume 5 to player set {_total} to {_1} + {_2} + {_3} + {_4} + {_5} + {_6} + {_7} + {_8} + {_9} + {_10} + {_11} + {_12} + {_13} + {_14} + {_15} if {%player's uuid%.selltitle} is true: send title "&a&LSELL ALL" with subtitle "&aYou sold all items for &7$%{_total}% &7(/selltitle to toggle this message)" to player for 3 seconds add {_total} to player's balance command /selltitle <text>: trigger: if arg-1 is set: if arg-1 is "on": set {%player's uuid%.selltitle} to true send "&a&lGenPlots &8- &7The sell title is now &aon" else if arg-1 is "off": set {%player's uuid%.selltitle} to false send "&a&lGenPlots &8- &7The sell title is now &coff" else: send "&a&lGenPlots &8- &7TIncorrect arguments. &a/selltitle (on/off)" else if arg-1 is not set: if {%player's uuid%.selltitle} is true: set {%player's uuid%.selltitle} to false send "&a&lGenPlots &8- &7The sell title is now &coff" else if {%player's uuid%.selltitle} is false: set {%player's uuid%.selltitle} to true send "&a&lGenPlots &8- &7The sell title is now &aon" command /resetallgens: permission: op trigger: if executor is not console: send "&cFor safety reasons this command can only be executed through console!" to player stop loop {gens::*}: loop {gens::%loop-value-1%::*}: loop {gens::%loop-value-1%::%loop-value-2%::*}: set block at location of loop-value-3 to air delete {gens::%loop-value-1%::%loop-value-2%::%loop-value-3%} delete {gens::%loop-value%::*} delete {gens::*} delete {gc::*} delete {gencap::*} broadcast "&c&lEverything was reset!" kick all players due to "&cRelog due to generator reset!" Command /setgenslots [<player>] [<integer>]: permission: * permission message: &cNo! trigger: if arg-1 is not set: send "&aGenPlots &8- &7You need to specify a player." to player else: if arg-2 is not set: send "&aGenPlots &8- &7You need to specify a number" to player else: set {gencap::%arg-1's uuid%} to arg-2 send "&aGenerator &7| Your gen cap has been set to &6%arg-2%&7!" to arg-1 send "&aGenerator &7| You set &7%arg-1%&7's &7gen cap to &6%arg-2%&7!" to player # requires: Vault, TusKe, Skript
bro copying somebody's skript from a thread is easy, what's not is making an automatic gen skript that can do stuff automatically and so you'll only need to write in a couple of lines of the new generators and the upgrades are done
-
7 hours ago, BOXEY said:
command /queueV2: trigger: add player to {Variable2::*} loop {Variable2::*}: add 1 to {_n} if {_n} is 4: #code command /unqueueV2: trigger: remove player from {Variable2::*}
this should work
broo.
size of {variable::*}
-
you could use False and shit like that easily, just add extra lines ig
else:
if (("{@MobsCombat-Tag}" in lowercase) parsed as boolean) is true: -
yeah so i can probably do most of the things as long as it's not too complicated [aka. all squid game chapters lmfao]
good luck
edit:
every skript that i've done will be posted to my github rep, snnwer/requested-skripts
- 1
Hi, i need help with my script
in Discussion
Posted
and your code might not be even valid, because a coordinate cannot be bigger than x (let it be a number) and smaller than x at the same time