Im looking to make a working gui with buttons and clicks

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Chichi

Member
Sep 15, 2023
15
0
1
17
Hello, I have been working lately on a skript project and turns out I made 149 Skript errors in it. So I wanted to kick my computer but instead came here.
Im looking to make a clicker game :
Basically in my server, I want to have a glass block that when I right click it, it gives clicks so +1 when you start then when you left click it it opens a gui where with clicks you can buy more clicks per click : kinda hard to understand : Here is the skript I made if someone can help me asap I would be very happy
variables:
{%player%.Clicker} = 0
{%player%.Clicker.Button} = 0

on right click on *block:id*
player is holding nether star named "&7&lClicker Pass"
add {%player%.Clicker.Button} to {%player%.Clicker}

command /clickerstats:
trigger:
message "&6You have %{%player%.Clicker}% clicks!" to player
message "&6You have %{%player%.Clicker.Button}% Per Click!" to player

on left click on *block:id*
player is golding nether star named "&7&lClicker Pass"
open virtual chest inventory with size 6 named "&7Clicks Shop [Page:Clickers]" to player
format gui slot 1 of player with black stained glass pane named " "
format gui slot 2 of player with black stained glass pane named " "
format gui slot 3 of player with black stained glass pane named " "
format gui slot 4 of player with black stained glass pane named " "
format gui slot 5 of player with black stained glass pane named " "
format gui slot 6 of player with black stained glass pane named " "
format gui slot 7 of player with black stained glass pane named " "
format gui slot 8 of player with black stained glass pane named " "
format gui slot 9 of player with black stained glass pane named " "
format gui slot 10 of player with black stained glass pane named " "
format gui slot 18 of player with black stained glass pane named " "
format gui slot 19 of player with black stained glass pane named " "
format gui slot 27 of player with black stained glass pane named " "
format gui slot 28 of player with black stained glass pane named " "
format gui slot 36 of player with black stained glass pane named " "
format gui slot 37 of player with black stained glass pane named " "
format gui slot 45 of player with black stained glass pane named " "
format gui slot 46 of player with black stained glass pane named " "
format gui slot 47 of player with black stained glass pane named " "
format gui slot 48 of player with black stained glass pane named " "
format gui slot 49 of player with black stained glass pane named " "
format gui slot 50 of player with black stained glass pane named " "
format gui slot 51 of player with black stained glass pane named " "
format gui slot 52 of player with black stained glass pane named " "
format gui slot 53 of player with black stained glass pane named " "
format gui slot 54 of player with black stained glass pane named " "
format gui slot 11 of player with cyan dye named "&7Clicker +1" with lore "&8Costs 100 Clicks" to run:
remove 100 from {%player%.Clicker}
add 1 to {%player%.Clicker.Button}
format gui slot 12 of player with cyan dye named "&7Clicker +10" with lore "&8Costs 1000 Clicks" to run:
remove 1000 from {%player%.Clicker}
add 10 to {%player%.Clicker.Button}
format gui slot 13 of player with cyan dye named "&7Clicker +50" with lore "&8Costs 5k Clicks" to run:
remove 5000 from {%player%.Clicker}
add 50 to {%player%.Clicker.Button}
format gui slot 14 of player with cyan dye named "&7Clicker +250" with lore "&8Costs 25k Clicks" to run:
remove 25000 from {%player%.Clicker}
add 250 to {%player%.Clicker.Button}
format gui slot 15 of player with cyan dye named "&7Clicker +1000" with lore "&8Costs 100k Clicks" to run:
remove 100000 from {%player%.Clicker}
add 1000 to {%player%.Clicker.Button}
format gui slot 16 of player with cyan dye named "&7Clicker +10k" with lore "&8Costs 1m Clicks" to run:
remove 1000000 from {%player%.Clicker}
add 10000 to {%player%.Clicker.Button}
format gui slot 17 of player with cyan dye named "&7Clicker +50k" with lore "&8Costs 5m Clicks" to run:
remove 5000000 from {%player%.Clicker}
add 50000 to {%player%.Clicker.Button}
format gui slot 20 of player with cyan dye named "&7Clicker +250k" with lore "&8Costs 25m Clicks" to run:
remove 25000000 from {%player%.Clicker}
add 250000 to {%player%.Clicker.Button}
format gui slot 21 of player with cyan dye named "&7Clicker +1m" with lore "&8Costs 100m Clicks" to run:
remove 100000000 from {%player%.Clicker}
add 1000000 to {%player%.Clicker.Button}
format gui slot 22 of player with cyan dye named "&7Clicker +10m" with lore "&8Costs 1b Clicks" to run:
remove 1000000000 from {%player%.Clicker}
add 10000000 to {%player%.Clicker.Button}
format gui slot 23 of player with cyan dye named "&7Clicker +50m" with lore "&8Costs 5b Clicks" to run:
remove 5000000000 from {%player%.Clicker}
add 50000000 to {%player%.Clicker.Button}
format gui slot 24 of player with cyan dye named "&7Clicker +250m" with lore "&8Costs 25b Clicks" to run:
remove 25000000000 from {%player%.Clicker}
add 250000000 to {%player%.Clicker.Button}
format gui slot 25 of player with cyan dye named "&7Clicker +1b" with lore "&8Costs 100b Clicks" to run:
remove 100000000000 from {%player%.Clicker}
add 1000000000 to {%player%.Clicker.Button}
format gui slot 26 of player with cyan dye named "&7Clicker +10b" with lore "&8Costs 1T Clicks" to run:
remove 1000000000000 from {%player%.Clicker}
add 10000000000 to {%player%.Clicker.Button}
format gui slot 29 of player with cyan dye named "&7Clicker +50b" with lore "&8Costs 5T Clicks" to run:
remove 5000000000000 from {%player%.Clicker}
add 50000000000 to {%player%.Clicker.Button}
format gui slot 30 of player with cyan dye named "&7Clicker +250b" with lore "&8Costs 25T Clicks" to run:
remove 25000000000000 from {%player%.Clicker}
add 250000000000 to {%player%.Clicker.Button}
format gui slot 31 of player with cyan dye named "&7Clicker +500b" with lore "&8Costs 50T Clicks" to run:
remove 50000000000000 from {%player%.Clicker}
add 500000000000 to {%player%.Clicker.Button}
format gui slot 32 of player with cyan dye named "&7Clicker +1T" with lore "&8Costs 100T Clicks" to run:
remove 100000000000000 from {%player%.Clicker}
add 1000000000000 to {%player%.Clicker.Button}
format gui slot 33 of player with cyan dye named "&7Clicker +5T" with lore "&8Costs 500T Clicks" to run:
remove 500000000000000 from {%player%.Clicker}
add 5000000000000 to {%player%.Clicker.Button}
format gui slot 34 of player with cyan dye named "&7Clicker +10T" with lore "&8Costs 1 QI" to run:
remove 1000000000000000 from {%player%.Clicker}
add 10000000000000 to {%player%.Clicker.Button}
format gui slot 35 of player with cyan dye named "&7Clicker +25T" with lore "&8Costs 2.5 QI" to run:
remove 2500000000000000 from {%player%.Clicker}
add 25000000000000 to {%player%.Clicker.Button}
format gui slot 38 of player with cyan dye named "&7Clicker +50T" with lore "&8Costs 5 QI" to run:
remove 5000000000000000 from {%player%.Clicker}
add 50000000000000 to {%player%.Clicker.Button}
format gui slot 39 of player with cyan dye named "&7Clicker +100T" with lore "&8Costs 10 QI" to run:
remove 10000000000000000 from {%player%.Clicker}
add 100000000000000 to {%player%.Clicker.Button}
format gui slot 40 of player with cyan dye named "&7Clicker +250T" with lore "&8Costs 25 QI" to run:
remove 25000000000000000 from {%player%.Clicker}
add 250000000000000 to {%player%.Clicker.Button}
format gui slot 41 of player with cyan dye named "&7Clicker +500T" with lore "&8Costs 50 QI" to run:
remove 50000000000000000 from {%player%.Clicker}
add 500000000000000 to {%player%.Clicker.Button}
format gui slot 42 of player with cyan dye named "&7Clicker +750T" with lore "&8Costs 75 QI" to run:
remove 75000000000000000 from {%player%.Clicker}
add 750000000000000 to {%player%.Clicker.Button}
format gui slot 43 of player with cyan dye named "&7Clicker +1 QI" with lore "&8Costs 100 QI" to run:
remove 100000000000000000 from {%player%.Clicker}
add 1000000000000000 to {%player%.Clicker.Button}
format gui slot 44 of player with magenta glazed terracota named "Rebirth Page" with lore "&8 Will Release soon..."




command /clickergui:
permission: op
permission message: "&4You can't do this!"
trigger:
open virtual chest inventory with size 6 named "&7Clicks Shop [Page:Clickers]" to player
format gui slot 1 of player with black stained glass pane named " "
format gui slot 2 of player with black stained glass pane named " "
format gui slot 3 of player with black stained glass pane named " "
format gui slot 4 of player with black stained glass pane named " "
format gui slot 5 of player with black stained glass pane named " "
format gui slot 6 of player with black stained glass pane named " "
format gui slot 7 of player with black stained glass pane named " "
format gui slot 8 of player with black stained glass pane named " "
format gui slot 9 of player with black stained glass pane named " "
format gui slot 10 of player with black stained glass pane named " "
format gui slot 18 of player with black stained glass pane named " "
format gui slot 19 of player with black stained glass pane named " "
format gui slot 27 of player with black stained glass pane named " "
format gui slot 28 of player with black stained glass pane named " "
format gui slot 36 of player with black stained glass pane named " "
format gui slot 37 of player with black stained glass pane named " "
format gui slot 45 of player with black stained glass pane named " "
format gui slot 46 of player with black stained glass pane named " "
format gui slot 47 of player with black stained glass pane named " "
format gui slot 48 of player with black stained glass pane named " "
format gui slot 49 of player with black stained glass pane named " "
format gui slot 50 of player with black stained glass pane named " "
format gui slot 51 of player with black stained glass pane named " "
format gui slot 52 of player with black stained glass pane named " "
format gui slot 53 of player with black stained glass pane named " "
format gui slot 54 of player with black stained glass pane named " "
format gui slot 11 of player with cyan dye named "&7Clicker +1" with lore "&8Costs 100 Clicks" to run:
remove 100 from {%player%.Clicker}
add 1 to {%player%.Clicker.Button}
format gui slot 12 of player with cyan dye named "&7Clicker +10" with lore "&8Costs 1000 Clicks" to run:
remove 1000 from {%player%.Clicker}
add 10 to {%player%.Clicker.Button}
format gui slot 13 of player with cyan dye named "&7Clicker +50" with lore "&8Costs 5k Clicks" to run:
remove 5000 from {%player%.Clicker}
add 50 to {%player%.Clicker.Button}
format gui slot 14 of player with cyan dye named "&7Clicker +250" with lore "&8Costs 25k Clicks" to run:
remove 25000 from {%player%.Clicker}
add 250 to {%player%.Clicker.Button}
format gui slot 15 of player with cyan dye named "&7Clicker +1000" with lore "&8Costs 100k Clicks" to run:
remove 100000 from {%player%.Clicker}
add 1000 to {%player%.Clicker.Button}
format gui slot 16 of player with cyan dye named "&7Clicker +10k" with lore "&8Costs 1m Clicks" to run:
remove 1000000 from {%player%.Clicker}
add 10000 to {%player%.Clicker.Button}
format gui slot 17 of player with cyan dye named "&7Clicker +50k" with lore "&8Costs 5m Clicks" to run:
remove 5000000 from {%player%.Clicker}
add 50000 to {%player%.Clicker.Button}
format gui slot 20 of player with cyan dye named "&7Clicker +250k" with lore "&8Costs 25m Clicks" to run:
remove 25000000 from {%player%.Clicker}
add 250000 to {%player%.Clicker.Button}
format gui slot 21 of player with cyan dye named "&7Clicker +1m" with lore "&8Costs 100m Clicks" to run:
remove 100000000 from {%player%.Clicker}
add 1000000 to {%player%.Clicker.Button}
format gui slot 22 of player with cyan dye named "&7Clicker +10m" with lore "&8Costs 1b Clicks" to run:
remove 1000000000 from {%player%.Clicker}
add 10000000 to {%player%.Clicker.Button}
format gui slot 23 of player with cyan dye named "&7Clicker +50m" with lore "&8Costs 5b Clicks" to run:
remove 5000000000 from {%player%.Clicker}
add 50000000 to {%player%.Clicker.Button}
format gui slot 24 of player with cyan dye named "&7Clicker +250m" with lore "&8Costs 25b Clicks" to run:
remove 25000000000 from {%player%.Clicker}
add 250000000 to {%player%.Clicker.Button}
format gui slot 25 of player with cyan dye named "&7Clicker +1b" with lore "&8Costs 100b Clicks" to run:
remove 100000000000 from {%player%.Clicker}
add 1000000000 to {%player%.Clicker.Button}
format gui slot 26 of player with cyan dye named "&7Clicker +10b" with lore "&8Costs 1T Clicks" to run:
remove 1000000000000 from {%player%.Clicker}
add 10000000000 to {%player%.Clicker.Button}
format gui slot 29 of player with cyan dye named "&7Clicker +50b" with lore "&8Costs 5T Clicks" to run:
remove 5000000000000 from {%player%.Clicker}
add 50000000000 to {%player%.Clicker.Button}
format gui slot 30 of player with cyan dye named "&7Clicker +250b" with lore "&8Costs 25T Clicks" to run:
remove 25000000000000 from {%player%.Clicker}
add 250000000000 to {%player%.Clicker.Button}
format gui slot 31 of player with cyan dye named "&7Clicker +500b" with lore "&8Costs 50T Clicks" to run:
remove 50000000000000 from {%player%.Clicker}
add 500000000000 to {%player%.Clicker.Button}
format gui slot 32 of player with cyan dye named "&7Clicker +1T" with lore "&8Costs 100T Clicks" to run:
remove 100000000000000 from {%player%.Clicker}
add 1000000000000 to {%player%.Clicker.Button}
format gui slot 33 of player with cyan dye named "&7Clicker +5T" with lore "&8Costs 500T Clicks" to run:
remove 500000000000000 from {%player%.Clicker}
add 5000000000000 to {%player%.Clicker.Button}
format gui slot 34 of player with cyan dye named "&7Clicker +10T" with lore "&8Costs 1 QI" to run:
remove 1000000000000000 from {%player%.Clicker}
add 10000000000000 to {%player%.Clicker.Button}
format gui slot 35 of player with cyan dye named "&7Clicker +25T" with lore "&8Costs 2.5 QI" to run:
remove 2500000000000000 from {%player%.Clicker}
add 25000000000000 to {%player%.Clicker.Button}
format gui slot 38 of player with cyan dye named "&7Clicker +50T" with lore "&8Costs 5 QI" to run:
remove 5000000000000000 from {%player%.Clicker}
add 50000000000000 to {%player%.Clicker.Button}
format gui slot 39 of player with cyan dye named "&7Clicker +100T" with lore "&8Costs 10 QI" to run:
remove 10000000000000000 from {%player%.Clicker}
add 100000000000000 to {%player%.Clicker.Button}
format gui slot 40 of player with cyan dye named "&7Clicker +250T" with lore "&8Costs 25 QI" to run:
remove 25000000000000000 from {%player%.Clicker}
add 250000000000000 to {%player%.Clicker.Button}
format gui slot 41 of player with cyan dye named "&7Clicker +500T" with lore "&8Costs 50 QI" to run:
remove 50000000000000000 from {%player%.Clicker}
add 500000000000000 to {%player%.Clicker.Button}
format gui slot 42 of player with cyan dye named "&7Clicker +750T" with lore "&8Costs 75 QI" to run:
remove 75000000000000000 from {%player%.Clicker}
add 750000000000000 to {%player%.Clicker.Button}
format gui slot 43 of player with cyan dye named "&7Clicker +1 QI" with lore "&8Costs 100 QI" to run:
remove 100000000000000000 from {%player%.Clicker}
add 1000000000000000 to {%player%.Clicker.Button}
format gui slot 44 of player with magenta glazed terracota named "Rebirth Page" with lore "&8 Will Release soon..."
Also I don't want that when I buy clicks the numbers can go in the negatives
 
Hello, I have been working lately on a skript project and turns out I made 149 Skript errors in it. So I wanted to kick my computer but instead came here.
Im looking to make a clicker game :
Basically in my server, I want to have a glass block that when I right click it, it gives clicks so +1 when you start then when you left click it it opens a gui where with clicks you can buy more clicks per click : kinda hard to understand : Here is the skript I made if someone can help me asap I would be very happy
variables:
{%player%.Clicker} = 0
{%player%.Clicker.Button} = 0

on right click on *block:id*
player is holding nether star named "&7&lClicker Pass"
add {%player%.Clicker.Button} to {%player%.Clicker}

command /clickerstats:
trigger:
message "&6You have %{%player%.Clicker}% clicks!" to player
message "&6You have %{%player%.Clicker.Button}% Per Click!" to player

on left click on *block:id*
player is golding nether star named "&7&lClicker Pass"
open virtual chest inventory with size 6 named "&7Clicks Shop [Page:Clickers]" to player
format gui slot 1 of player with black stained glass pane named " "
format gui slot 2 of player with black stained glass pane named " "
format gui slot 3 of player with black stained glass pane named " "
format gui slot 4 of player with black stained glass pane named " "
format gui slot 5 of player with black stained glass pane named " "
format gui slot 6 of player with black stained glass pane named " "
format gui slot 7 of player with black stained glass pane named " "
format gui slot 8 of player with black stained glass pane named " "
format gui slot 9 of player with black stained glass pane named " "
format gui slot 10 of player with black stained glass pane named " "
format gui slot 18 of player with black stained glass pane named " "
format gui slot 19 of player with black stained glass pane named " "
format gui slot 27 of player with black stained glass pane named " "
format gui slot 28 of player with black stained glass pane named " "
format gui slot 36 of player with black stained glass pane named " "
format gui slot 37 of player with black stained glass pane named " "
format gui slot 45 of player with black stained glass pane named " "
format gui slot 46 of player with black stained glass pane named " "
format gui slot 47 of player with black stained glass pane named " "
format gui slot 48 of player with black stained glass pane named " "
format gui slot 49 of player with black stained glass pane named " "
format gui slot 50 of player with black stained glass pane named " "
format gui slot 51 of player with black stained glass pane named " "
format gui slot 52 of player with black stained glass pane named " "
format gui slot 53 of player with black stained glass pane named " "
format gui slot 54 of player with black stained glass pane named " "
format gui slot 11 of player with cyan dye named "&7Clicker +1" with lore "&8Costs 100 Clicks" to run:
remove 100 from {%player%.Clicker}
add 1 to {%player%.Clicker.Button}
format gui slot 12 of player with cyan dye named "&7Clicker +10" with lore "&8Costs 1000 Clicks" to run:
remove 1000 from {%player%.Clicker}
add 10 to {%player%.Clicker.Button}
format gui slot 13 of player with cyan dye named "&7Clicker +50" with lore "&8Costs 5k Clicks" to run:
remove 5000 from {%player%.Clicker}
add 50 to {%player%.Clicker.Button}
format gui slot 14 of player with cyan dye named "&7Clicker +250" with lore "&8Costs 25k Clicks" to run:
remove 25000 from {%player%.Clicker}
add 250 to {%player%.Clicker.Button}
format gui slot 15 of player with cyan dye named "&7Clicker +1000" with lore "&8Costs 100k Clicks" to run:
remove 100000 from {%player%.Clicker}
add 1000 to {%player%.Clicker.Button}
format gui slot 16 of player with cyan dye named "&7Clicker +10k" with lore "&8Costs 1m Clicks" to run:
remove 1000000 from {%player%.Clicker}
add 10000 to {%player%.Clicker.Button}
format gui slot 17 of player with cyan dye named "&7Clicker +50k" with lore "&8Costs 5m Clicks" to run:
remove 5000000 from {%player%.Clicker}
add 50000 to {%player%.Clicker.Button}
format gui slot 20 of player with cyan dye named "&7Clicker +250k" with lore "&8Costs 25m Clicks" to run:
remove 25000000 from {%player%.Clicker}
add 250000 to {%player%.Clicker.Button}
format gui slot 21 of player with cyan dye named "&7Clicker +1m" with lore "&8Costs 100m Clicks" to run:
remove 100000000 from {%player%.Clicker}
add 1000000 to {%player%.Clicker.Button}
format gui slot 22 of player with cyan dye named "&7Clicker +10m" with lore "&8Costs 1b Clicks" to run:
remove 1000000000 from {%player%.Clicker}
add 10000000 to {%player%.Clicker.Button}
format gui slot 23 of player with cyan dye named "&7Clicker +50m" with lore "&8Costs 5b Clicks" to run:
remove 5000000000 from {%player%.Clicker}
add 50000000 to {%player%.Clicker.Button}
format gui slot 24 of player with cyan dye named "&7Clicker +250m" with lore "&8Costs 25b Clicks" to run:
remove 25000000000 from {%player%.Clicker}
add 250000000 to {%player%.Clicker.Button}
format gui slot 25 of player with cyan dye named "&7Clicker +1b" with lore "&8Costs 100b Clicks" to run:
remove 100000000000 from {%player%.Clicker}
add 1000000000 to {%player%.Clicker.Button}
format gui slot 26 of player with cyan dye named "&7Clicker +10b" with lore "&8Costs 1T Clicks" to run:
remove 1000000000000 from {%player%.Clicker}
add 10000000000 to {%player%.Clicker.Button}
format gui slot 29 of player with cyan dye named "&7Clicker +50b" with lore "&8Costs 5T Clicks" to run:
remove 5000000000000 from {%player%.Clicker}
add 50000000000 to {%player%.Clicker.Button}
format gui slot 30 of player with cyan dye named "&7Clicker +250b" with lore "&8Costs 25T Clicks" to run:
remove 25000000000000 from {%player%.Clicker}
add 250000000000 to {%player%.Clicker.Button}
format gui slot 31 of player with cyan dye named "&7Clicker +500b" with lore "&8Costs 50T Clicks" to run:
remove 50000000000000 from {%player%.Clicker}
add 500000000000 to {%player%.Clicker.Button}
format gui slot 32 of player with cyan dye named "&7Clicker +1T" with lore "&8Costs 100T Clicks" to run:
remove 100000000000000 from {%player%.Clicker}
add 1000000000000 to {%player%.Clicker.Button}
format gui slot 33 of player with cyan dye named "&7Clicker +5T" with lore "&8Costs 500T Clicks" to run:
remove 500000000000000 from {%player%.Clicker}
add 5000000000000 to {%player%.Clicker.Button}
format gui slot 34 of player with cyan dye named "&7Clicker +10T" with lore "&8Costs 1 QI" to run:
remove 1000000000000000 from {%player%.Clicker}
add 10000000000000 to {%player%.Clicker.Button}
format gui slot 35 of player with cyan dye named "&7Clicker +25T" with lore "&8Costs 2.5 QI" to run:
remove 2500000000000000 from {%player%.Clicker}
add 25000000000000 to {%player%.Clicker.Button}
format gui slot 38 of player with cyan dye named "&7Clicker +50T" with lore "&8Costs 5 QI" to run:
remove 5000000000000000 from {%player%.Clicker}
add 50000000000000 to {%player%.Clicker.Button}
format gui slot 39 of player with cyan dye named "&7Clicker +100T" with lore "&8Costs 10 QI" to run:
remove 10000000000000000 from {%player%.Clicker}
add 100000000000000 to {%player%.Clicker.Button}
format gui slot 40 of player with cyan dye named "&7Clicker +250T" with lore "&8Costs 25 QI" to run:
remove 25000000000000000 from {%player%.Clicker}
add 250000000000000 to {%player%.Clicker.Button}
format gui slot 41 of player with cyan dye named "&7Clicker +500T" with lore "&8Costs 50 QI" to run:
remove 50000000000000000 from {%player%.Clicker}
add 500000000000000 to {%player%.Clicker.Button}
format gui slot 42 of player with cyan dye named "&7Clicker +750T" with lore "&8Costs 75 QI" to run:
remove 75000000000000000 from {%player%.Clicker}
add 750000000000000 to {%player%.Clicker.Button}
format gui slot 43 of player with cyan dye named "&7Clicker +1 QI" with lore "&8Costs 100 QI" to run:
remove 100000000000000000 from {%player%.Clicker}
add 1000000000000000 to {%player%.Clicker.Button}
format gui slot 44 of player with magenta glazed terracota named "Rebirth Page" with lore "&8 Will Release soon..."




command /clickergui:
permission: op
permission message: "&4You can't do this!"
trigger:
open virtual chest inventory with size 6 named "&7Clicks Shop [Page:Clickers]" to player
format gui slot 1 of player with black stained glass pane named " "
format gui slot 2 of player with black stained glass pane named " "
format gui slot 3 of player with black stained glass pane named " "
format gui slot 4 of player with black stained glass pane named " "
format gui slot 5 of player with black stained glass pane named " "
format gui slot 6 of player with black stained glass pane named " "
format gui slot 7 of player with black stained glass pane named " "
format gui slot 8 of player with black stained glass pane named " "
format gui slot 9 of player with black stained glass pane named " "
format gui slot 10 of player with black stained glass pane named " "
format gui slot 18 of player with black stained glass pane named " "
format gui slot 19 of player with black stained glass pane named " "
format gui slot 27 of player with black stained glass pane named " "
format gui slot 28 of player with black stained glass pane named " "
format gui slot 36 of player with black stained glass pane named " "
format gui slot 37 of player with black stained glass pane named " "
format gui slot 45 of player with black stained glass pane named " "
format gui slot 46 of player with black stained glass pane named " "
format gui slot 47 of player with black stained glass pane named " "
format gui slot 48 of player with black stained glass pane named " "
format gui slot 49 of player with black stained glass pane named " "
format gui slot 50 of player with black stained glass pane named " "
format gui slot 51 of player with black stained glass pane named " "
format gui slot 52 of player with black stained glass pane named " "
format gui slot 53 of player with black stained glass pane named " "
format gui slot 54 of player with black stained glass pane named " "
format gui slot 11 of player with cyan dye named "&7Clicker +1" with lore "&8Costs 100 Clicks" to run:
remove 100 from {%player%.Clicker}
add 1 to {%player%.Clicker.Button}
format gui slot 12 of player with cyan dye named "&7Clicker +10" with lore "&8Costs 1000 Clicks" to run:
remove 1000 from {%player%.Clicker}
add 10 to {%player%.Clicker.Button}
format gui slot 13 of player with cyan dye named "&7Clicker +50" with lore "&8Costs 5k Clicks" to run:
remove 5000 from {%player%.Clicker}
add 50 to {%player%.Clicker.Button}
format gui slot 14 of player with cyan dye named "&7Clicker +250" with lore "&8Costs 25k Clicks" to run:
remove 25000 from {%player%.Clicker}
add 250 to {%player%.Clicker.Button}
format gui slot 15 of player with cyan dye named "&7Clicker +1000" with lore "&8Costs 100k Clicks" to run:
remove 100000 from {%player%.Clicker}
add 1000 to {%player%.Clicker.Button}
format gui slot 16 of player with cyan dye named "&7Clicker +10k" with lore "&8Costs 1m Clicks" to run:
remove 1000000 from {%player%.Clicker}
add 10000 to {%player%.Clicker.Button}
format gui slot 17 of player with cyan dye named "&7Clicker +50k" with lore "&8Costs 5m Clicks" to run:
remove 5000000 from {%player%.Clicker}
add 50000 to {%player%.Clicker.Button}
format gui slot 20 of player with cyan dye named "&7Clicker +250k" with lore "&8Costs 25m Clicks" to run:
remove 25000000 from {%player%.Clicker}
add 250000 to {%player%.Clicker.Button}
format gui slot 21 of player with cyan dye named "&7Clicker +1m" with lore "&8Costs 100m Clicks" to run:
remove 100000000 from {%player%.Clicker}
add 1000000 to {%player%.Clicker.Button}
format gui slot 22 of player with cyan dye named "&7Clicker +10m" with lore "&8Costs 1b Clicks" to run:
remove 1000000000 from {%player%.Clicker}
add 10000000 to {%player%.Clicker.Button}
format gui slot 23 of player with cyan dye named "&7Clicker +50m" with lore "&8Costs 5b Clicks" to run:
remove 5000000000 from {%player%.Clicker}
add 50000000 to {%player%.Clicker.Button}
format gui slot 24 of player with cyan dye named "&7Clicker +250m" with lore "&8Costs 25b Clicks" to run:
remove 25000000000 from {%player%.Clicker}
add 250000000 to {%player%.Clicker.Button}
format gui slot 25 of player with cyan dye named "&7Clicker +1b" with lore "&8Costs 100b Clicks" to run:
remove 100000000000 from {%player%.Clicker}
add 1000000000 to {%player%.Clicker.Button}
format gui slot 26 of player with cyan dye named "&7Clicker +10b" with lore "&8Costs 1T Clicks" to run:
remove 1000000000000 from {%player%.Clicker}
add 10000000000 to {%player%.Clicker.Button}
format gui slot 29 of player with cyan dye named "&7Clicker +50b" with lore "&8Costs 5T Clicks" to run:
remove 5000000000000 from {%player%.Clicker}
add 50000000000 to {%player%.Clicker.Button}
format gui slot 30 of player with cyan dye named "&7Clicker +250b" with lore "&8Costs 25T Clicks" to run:
remove 25000000000000 from {%player%.Clicker}
add 250000000000 to {%player%.Clicker.Button}
format gui slot 31 of player with cyan dye named "&7Clicker +500b" with lore "&8Costs 50T Clicks" to run:
remove 50000000000000 from {%player%.Clicker}
add 500000000000 to {%player%.Clicker.Button}
format gui slot 32 of player with cyan dye named "&7Clicker +1T" with lore "&8Costs 100T Clicks" to run:
remove 100000000000000 from {%player%.Clicker}
add 1000000000000 to {%player%.Clicker.Button}
format gui slot 33 of player with cyan dye named "&7Clicker +5T" with lore "&8Costs 500T Clicks" to run:
remove 500000000000000 from {%player%.Clicker}
add 5000000000000 to {%player%.Clicker.Button}
format gui slot 34 of player with cyan dye named "&7Clicker +10T" with lore "&8Costs 1 QI" to run:
remove 1000000000000000 from {%player%.Clicker}
add 10000000000000 to {%player%.Clicker.Button}
format gui slot 35 of player with cyan dye named "&7Clicker +25T" with lore "&8Costs 2.5 QI" to run:
remove 2500000000000000 from {%player%.Clicker}
add 25000000000000 to {%player%.Clicker.Button}
format gui slot 38 of player with cyan dye named "&7Clicker +50T" with lore "&8Costs 5 QI" to run:
remove 5000000000000000 from {%player%.Clicker}
add 50000000000000 to {%player%.Clicker.Button}
format gui slot 39 of player with cyan dye named "&7Clicker +100T" with lore "&8Costs 10 QI" to run:
remove 10000000000000000 from {%player%.Clicker}
add 100000000000000 to {%player%.Clicker.Button}
format gui slot 40 of player with cyan dye named "&7Clicker +250T" with lore "&8Costs 25 QI" to run:
remove 25000000000000000 from {%player%.Clicker}
add 250000000000000 to {%player%.Clicker.Button}
format gui slot 41 of player with cyan dye named "&7Clicker +500T" with lore "&8Costs 50 QI" to run:
remove 50000000000000000 from {%player%.Clicker}
add 500000000000000 to {%player%.Clicker.Button}
format gui slot 42 of player with cyan dye named "&7Clicker +750T" with lore "&8Costs 75 QI" to run:
remove 75000000000000000 from {%player%.Clicker}
add 750000000000000 to {%player%.Clicker.Button}
format gui slot 43 of player with cyan dye named "&7Clicker +1 QI" with lore "&8Costs 100 QI" to run:
remove 100000000000000000 from {%player%.Clicker}
add 1000000000000000 to {%player%.Clicker.Button}
format gui slot 44 of player with magenta glazed terracota named "Rebirth Page" with lore "&8 Will Release soon..."
Also I don't want that when I buy clicks the numbers can go in the negatives
One word.

SkEditor.
 
  • Like
Reactions: xWires
Hello, I have been working lately on a skript project and turns out I made 149 Skript errors in it. So I wanted to kick my computer but instead came here.
Im looking to make a clicker game :
Basically in my server, I want to have a glass block that when I right click it, it gives clicks so +1 when you start then when you left click it it opens a gui where with clicks you can buy more clicks per click : kinda hard to understand : Here is the skript I made if someone can help me asap I would be very happy
variables:
{%player%.Clicker} = 0
{%player%.Clicker.Button} = 0

on right click on *block:id*
player is holding nether star named "&7&lClicker Pass"
add {%player%.Clicker.Button} to {%player%.Clicker}

command /clickerstats:
trigger:
message "&6You have %{%player%.Clicker}% clicks!" to player
message "&6You have %{%player%.Clicker.Button}% Per Click!" to player

on left click on *block:id*
player is golding nether star named "&7&lClicker Pass"
open virtual chest inventory with size 6 named "&7Clicks Shop [Page:Clickers]" to player
format gui slot 1 of player with black stained glass pane named " "
format gui slot 2 of player with black stained glass pane named " "
format gui slot 3 of player with black stained glass pane named " "
format gui slot 4 of player with black stained glass pane named " "
format gui slot 5 of player with black stained glass pane named " "
format gui slot 6 of player with black stained glass pane named " "
format gui slot 7 of player with black stained glass pane named " "
format gui slot 8 of player with black stained glass pane named " "
format gui slot 9 of player with black stained glass pane named " "
format gui slot 10 of player with black stained glass pane named " "
format gui slot 18 of player with black stained glass pane named " "
format gui slot 19 of player with black stained glass pane named " "
format gui slot 27 of player with black stained glass pane named " "
format gui slot 28 of player with black stained glass pane named " "
format gui slot 36 of player with black stained glass pane named " "
format gui slot 37 of player with black stained glass pane named " "
format gui slot 45 of player with black stained glass pane named " "
format gui slot 46 of player with black stained glass pane named " "
format gui slot 47 of player with black stained glass pane named " "
format gui slot 48 of player with black stained glass pane named " "
format gui slot 49 of player with black stained glass pane named " "
format gui slot 50 of player with black stained glass pane named " "
format gui slot 51 of player with black stained glass pane named " "
format gui slot 52 of player with black stained glass pane named " "
format gui slot 53 of player with black stained glass pane named " "
format gui slot 54 of player with black stained glass pane named " "
format gui slot 11 of player with cyan dye named "&7Clicker +1" with lore "&8Costs 100 Clicks" to run:
remove 100 from {%player%.Clicker}
add 1 to {%player%.Clicker.Button}
format gui slot 12 of player with cyan dye named "&7Clicker +10" with lore "&8Costs 1000 Clicks" to run:
remove 1000 from {%player%.Clicker}
add 10 to {%player%.Clicker.Button}
format gui slot 13 of player with cyan dye named "&7Clicker +50" with lore "&8Costs 5k Clicks" to run:
remove 5000 from {%player%.Clicker}
add 50 to {%player%.Clicker.Button}
format gui slot 14 of player with cyan dye named "&7Clicker +250" with lore "&8Costs 25k Clicks" to run:
remove 25000 from {%player%.Clicker}
add 250 to {%player%.Clicker.Button}
format gui slot 15 of player with cyan dye named "&7Clicker +1000" with lore "&8Costs 100k Clicks" to run:
remove 100000 from {%player%.Clicker}
add 1000 to {%player%.Clicker.Button}
format gui slot 16 of player with cyan dye named "&7Clicker +10k" with lore "&8Costs 1m Clicks" to run:
remove 1000000 from {%player%.Clicker}
add 10000 to {%player%.Clicker.Button}
format gui slot 17 of player with cyan dye named "&7Clicker +50k" with lore "&8Costs 5m Clicks" to run:
remove 5000000 from {%player%.Clicker}
add 50000 to {%player%.Clicker.Button}
format gui slot 20 of player with cyan dye named "&7Clicker +250k" with lore "&8Costs 25m Clicks" to run:
remove 25000000 from {%player%.Clicker}
add 250000 to {%player%.Clicker.Button}
format gui slot 21 of player with cyan dye named "&7Clicker +1m" with lore "&8Costs 100m Clicks" to run:
remove 100000000 from {%player%.Clicker}
add 1000000 to {%player%.Clicker.Button}
format gui slot 22 of player with cyan dye named "&7Clicker +10m" with lore "&8Costs 1b Clicks" to run:
remove 1000000000 from {%player%.Clicker}
add 10000000 to {%player%.Clicker.Button}
format gui slot 23 of player with cyan dye named "&7Clicker +50m" with lore "&8Costs 5b Clicks" to run:
remove 5000000000 from {%player%.Clicker}
add 50000000 to {%player%.Clicker.Button}
format gui slot 24 of player with cyan dye named "&7Clicker +250m" with lore "&8Costs 25b Clicks" to run:
remove 25000000000 from {%player%.Clicker}
add 250000000 to {%player%.Clicker.Button}
format gui slot 25 of player with cyan dye named "&7Clicker +1b" with lore "&8Costs 100b Clicks" to run:
remove 100000000000 from {%player%.Clicker}
add 1000000000 to {%player%.Clicker.Button}
format gui slot 26 of player with cyan dye named "&7Clicker +10b" with lore "&8Costs 1T Clicks" to run:
remove 1000000000000 from {%player%.Clicker}
add 10000000000 to {%player%.Clicker.Button}
format gui slot 29 of player with cyan dye named "&7Clicker +50b" with lore "&8Costs 5T Clicks" to run:
remove 5000000000000 from {%player%.Clicker}
add 50000000000 to {%player%.Clicker.Button}
format gui slot 30 of player with cyan dye named "&7Clicker +250b" with lore "&8Costs 25T Clicks" to run:
remove 25000000000000 from {%player%.Clicker}
add 250000000000 to {%player%.Clicker.Button}
format gui slot 31 of player with cyan dye named "&7Clicker +500b" with lore "&8Costs 50T Clicks" to run:
remove 50000000000000 from {%player%.Clicker}
add 500000000000 to {%player%.Clicker.Button}
format gui slot 32 of player with cyan dye named "&7Clicker +1T" with lore "&8Costs 100T Clicks" to run:
remove 100000000000000 from {%player%.Clicker}
add 1000000000000 to {%player%.Clicker.Button}
format gui slot 33 of player with cyan dye named "&7Clicker +5T" with lore "&8Costs 500T Clicks" to run:
remove 500000000000000 from {%player%.Clicker}
add 5000000000000 to {%player%.Clicker.Button}
format gui slot 34 of player with cyan dye named "&7Clicker +10T" with lore "&8Costs 1 QI" to run:
remove 1000000000000000 from {%player%.Clicker}
add 10000000000000 to {%player%.Clicker.Button}
format gui slot 35 of player with cyan dye named "&7Clicker +25T" with lore "&8Costs 2.5 QI" to run:
remove 2500000000000000 from {%player%.Clicker}
add 25000000000000 to {%player%.Clicker.Button}
format gui slot 38 of player with cyan dye named "&7Clicker +50T" with lore "&8Costs 5 QI" to run:
remove 5000000000000000 from {%player%.Clicker}
add 50000000000000 to {%player%.Clicker.Button}
format gui slot 39 of player with cyan dye named "&7Clicker +100T" with lore "&8Costs 10 QI" to run:
remove 10000000000000000 from {%player%.Clicker}
add 100000000000000 to {%player%.Clicker.Button}
format gui slot 40 of player with cyan dye named "&7Clicker +250T" with lore "&8Costs 25 QI" to run:
remove 25000000000000000 from {%player%.Clicker}
add 250000000000000 to {%player%.Clicker.Button}
format gui slot 41 of player with cyan dye named "&7Clicker +500T" with lore "&8Costs 50 QI" to run:
remove 50000000000000000 from {%player%.Clicker}
add 500000000000000 to {%player%.Clicker.Button}
format gui slot 42 of player with cyan dye named "&7Clicker +750T" with lore "&8Costs 75 QI" to run:
remove 75000000000000000 from {%player%.Clicker}
add 750000000000000 to {%player%.Clicker.Button}
format gui slot 43 of player with cyan dye named "&7Clicker +1 QI" with lore "&8Costs 100 QI" to run:
remove 100000000000000000 from {%player%.Clicker}
add 1000000000000000 to {%player%.Clicker.Button}
format gui slot 44 of player with magenta glazed terracota named "Rebirth Page" with lore "&8 Will Release soon..."




command /clickergui:
permission: op
permission message: "&4You can't do this!"
trigger:
open virtual chest inventory with size 6 named "&7Clicks Shop [Page:Clickers]" to player
format gui slot 1 of player with black stained glass pane named " "
format gui slot 2 of player with black stained glass pane named " "
format gui slot 3 of player with black stained glass pane named " "
format gui slot 4 of player with black stained glass pane named " "
format gui slot 5 of player with black stained glass pane named " "
format gui slot 6 of player with black stained glass pane named " "
format gui slot 7 of player with black stained glass pane named " "
format gui slot 8 of player with black stained glass pane named " "
format gui slot 9 of player with black stained glass pane named " "
format gui slot 10 of player with black stained glass pane named " "
format gui slot 18 of player with black stained glass pane named " "
format gui slot 19 of player with black stained glass pane named " "
format gui slot 27 of player with black stained glass pane named " "
format gui slot 28 of player with black stained glass pane named " "
format gui slot 36 of player with black stained glass pane named " "
format gui slot 37 of player with black stained glass pane named " "
format gui slot 45 of player with black stained glass pane named " "
format gui slot 46 of player with black stained glass pane named " "
format gui slot 47 of player with black stained glass pane named " "
format gui slot 48 of player with black stained glass pane named " "
format gui slot 49 of player with black stained glass pane named " "
format gui slot 50 of player with black stained glass pane named " "
format gui slot 51 of player with black stained glass pane named " "
format gui slot 52 of player with black stained glass pane named " "
format gui slot 53 of player with black stained glass pane named " "
format gui slot 54 of player with black stained glass pane named " "
format gui slot 11 of player with cyan dye named "&7Clicker +1" with lore "&8Costs 100 Clicks" to run:
remove 100 from {%player%.Clicker}
add 1 to {%player%.Clicker.Button}
format gui slot 12 of player with cyan dye named "&7Clicker +10" with lore "&8Costs 1000 Clicks" to run:
remove 1000 from {%player%.Clicker}
add 10 to {%player%.Clicker.Button}
format gui slot 13 of player with cyan dye named "&7Clicker +50" with lore "&8Costs 5k Clicks" to run:
remove 5000 from {%player%.Clicker}
add 50 to {%player%.Clicker.Button}
format gui slot 14 of player with cyan dye named "&7Clicker +250" with lore "&8Costs 25k Clicks" to run:
remove 25000 from {%player%.Clicker}
add 250 to {%player%.Clicker.Button}
format gui slot 15 of player with cyan dye named "&7Clicker +1000" with lore "&8Costs 100k Clicks" to run:
remove 100000 from {%player%.Clicker}
add 1000 to {%player%.Clicker.Button}
format gui slot 16 of player with cyan dye named "&7Clicker +10k" with lore "&8Costs 1m Clicks" to run:
remove 1000000 from {%player%.Clicker}
add 10000 to {%player%.Clicker.Button}
format gui slot 17 of player with cyan dye named "&7Clicker +50k" with lore "&8Costs 5m Clicks" to run:
remove 5000000 from {%player%.Clicker}
add 50000 to {%player%.Clicker.Button}
format gui slot 20 of player with cyan dye named "&7Clicker +250k" with lore "&8Costs 25m Clicks" to run:
remove 25000000 from {%player%.Clicker}
add 250000 to {%player%.Clicker.Button}
format gui slot 21 of player with cyan dye named "&7Clicker +1m" with lore "&8Costs 100m Clicks" to run:
remove 100000000 from {%player%.Clicker}
add 1000000 to {%player%.Clicker.Button}
format gui slot 22 of player with cyan dye named "&7Clicker +10m" with lore "&8Costs 1b Clicks" to run:
remove 1000000000 from {%player%.Clicker}
add 10000000 to {%player%.Clicker.Button}
format gui slot 23 of player with cyan dye named "&7Clicker +50m" with lore "&8Costs 5b Clicks" to run:
remove 5000000000 from {%player%.Clicker}
add 50000000 to {%player%.Clicker.Button}
format gui slot 24 of player with cyan dye named "&7Clicker +250m" with lore "&8Costs 25b Clicks" to run:
remove 25000000000 from {%player%.Clicker}
add 250000000 to {%player%.Clicker.Button}
format gui slot 25 of player with cyan dye named "&7Clicker +1b" with lore "&8Costs 100b Clicks" to run:
remove 100000000000 from {%player%.Clicker}
add 1000000000 to {%player%.Clicker.Button}
format gui slot 26 of player with cyan dye named "&7Clicker +10b" with lore "&8Costs 1T Clicks" to run:
remove 1000000000000 from {%player%.Clicker}
add 10000000000 to {%player%.Clicker.Button}
format gui slot 29 of player with cyan dye named "&7Clicker +50b" with lore "&8Costs 5T Clicks" to run:
remove 5000000000000 from {%player%.Clicker}
add 50000000000 to {%player%.Clicker.Button}
format gui slot 30 of player with cyan dye named "&7Clicker +250b" with lore "&8Costs 25T Clicks" to run:
remove 25000000000000 from {%player%.Clicker}
add 250000000000 to {%player%.Clicker.Button}
format gui slot 31 of player with cyan dye named "&7Clicker +500b" with lore "&8Costs 50T Clicks" to run:
remove 50000000000000 from {%player%.Clicker}
add 500000000000 to {%player%.Clicker.Button}
format gui slot 32 of player with cyan dye named "&7Clicker +1T" with lore "&8Costs 100T Clicks" to run:
remove 100000000000000 from {%player%.Clicker}
add 1000000000000 to {%player%.Clicker.Button}
format gui slot 33 of player with cyan dye named "&7Clicker +5T" with lore "&8Costs 500T Clicks" to run:
remove 500000000000000 from {%player%.Clicker}
add 5000000000000 to {%player%.Clicker.Button}
format gui slot 34 of player with cyan dye named "&7Clicker +10T" with lore "&8Costs 1 QI" to run:
remove 1000000000000000 from {%player%.Clicker}
add 10000000000000 to {%player%.Clicker.Button}
format gui slot 35 of player with cyan dye named "&7Clicker +25T" with lore "&8Costs 2.5 QI" to run:
remove 2500000000000000 from {%player%.Clicker}
add 25000000000000 to {%player%.Clicker.Button}
format gui slot 38 of player with cyan dye named "&7Clicker +50T" with lore "&8Costs 5 QI" to run:
remove 5000000000000000 from {%player%.Clicker}
add 50000000000000 to {%player%.Clicker.Button}
format gui slot 39 of player with cyan dye named "&7Clicker +100T" with lore "&8Costs 10 QI" to run:
remove 10000000000000000 from {%player%.Clicker}
add 100000000000000 to {%player%.Clicker.Button}
format gui slot 40 of player with cyan dye named "&7Clicker +250T" with lore "&8Costs 25 QI" to run:
remove 25000000000000000 from {%player%.Clicker}
add 250000000000000 to {%player%.Clicker.Button}
format gui slot 41 of player with cyan dye named "&7Clicker +500T" with lore "&8Costs 50 QI" to run:
remove 50000000000000000 from {%player%.Clicker}
add 500000000000000 to {%player%.Clicker.Button}
format gui slot 42 of player with cyan dye named "&7Clicker +750T" with lore "&8Costs 75 QI" to run:
remove 75000000000000000 from {%player%.Clicker}
add 750000000000000 to {%player%.Clicker.Button}
format gui slot 43 of player with cyan dye named "&7Clicker +1 QI" with lore "&8Costs 100 QI" to run:
remove 100000000000000000 from {%player%.Clicker}
add 1000000000000000 to {%player%.Clicker.Button}
format gui slot 44 of player with magenta glazed terracota named "Rebirth Page" with lore "&8 Will Release soon..."
Also I don't want that when I buy clicks the numbers can go in the negatives
Your code is way too long for a relatively simple inventory. One thing you can do is:
Code:
format slot 1, 2, 3 and 4 of {example} with.. etc
Also functions. If you hadn't read the docs to learn about relatively basic things such as functions, there's not much point asking on the forums for help when you can easily go to the docs and find the same information that any beginner Skripter (Given they read the docs) could relay to you.
 
  • Like
Reactions: Doodle