itsKimo Posted October 2, 2021 Share Posted October 2, 2021 (edited) I got bored and made a clicker game. decided to share it. heres the playing part right click on sign: if line 1 of event-block is "clicker": set first line of event-block to "&7[&6Clicker&7]" set third line of event-block to "&6Click to Teleport" right click on sign: if line 1 of event-block is "&7[&6Clicker&7]": teleport player to world "clicker" if player's world is "clicker": wait 10 tick send "&aTeleported." to player else: wait 1 second send "&cYou were not teleported, there was an issue!" to player world change: event-world is "clicker": set slot 0 of player to cookie named "&6Clicker" right click: player's tool is a cookie named "&6Clicker": set {clicks::%player's uuid%} to 0 if {clicks::%player's uuid%} is not set set {multi.%player's uuid%} to 1 if {multi.%player's uuid%} is not set add 1 * {multi.%player's uuid%} to {clicks::%player's uuid%} send action bar "&6Clicks: &e%formatNum({clicks::%player's uuid%})%" to player while player is online: wait 1 tick if {clicks::%player's uuid%} >= 100: if {multi.%player's uuid%} is equal to 1 or 0: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true if {clicks::%player's uuid%} >= 250: if {multi.%player's uuid%} is equal to 2: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true if {clicks::%player's uuid%} >= 500: if {multi.%player's uuid%} is equal to 3: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true if {clicks::%player's uuid%} >= 1000: if {multi.%player's uuid%} is equal to 4: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true if {clicks::%player's uuid%} >= 2500: if {multi.%player's uuid%} is equal to 5: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true if {clicks::%player's uuid%} >= 5000: if {multi.%player's uuid%} is equal to 6: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true if {clicks::%player's uuid%} >= 7500: if {multi.%player's uuid%} is equal to 7: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true if {clicks::%player's uuid%} >= 10000: if {multi.%player's uuid%} is equal to 8: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true inventory click: event-inventory = (metadata tag "clickerGUI" of player): cancel event event-slot is red wool: send "&cYou do not have enough clicks!" to player close player's inventory stop index of event-slot = 4 {multi.%player's uuid%} is equal to 1 or 0: {clicks::%player's uuid%} >= 100: add 1 to {multi.%player's uuid%} delete {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player delete {ready.%player%} close player's inventory {multi.%player's uuid%} is equal to 2: {clicks::%player's uuid%} >= 250: add 1 to {multi.%player's uuid%} delete {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player delete {ready.%player%} close player's inventory {multi.%player's uuid%} is equal to 3: {clicks::%player's uuid%} >= 500: add 1 to {multi.%player's uuid%} delete {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player delete {ready.%player%} close player's inventory {multi.%player's uuid%} is equal to 4: {clicks::%player's uuid%} >= 1000: add 1 to {multi.%player's uuid%} delete {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player delete {ready.%player%} close player's inventory {multi.%player's uuid%} is equal to 5: {clicks::%player's uuid%} >= 2500: add 1 to {multi.%player's uuid%} delete {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player delete {ready.%player%} close player's inventory {multi.%player's uuid%} is equal to 6: {clicks::%player's uuid%} >= 5000: add 1 to {multi.%player's uuid%} delete {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player delete {ready.%player%} close player's inventory {multi.%player's uuid%} is equal to 7: {clicks::%player's uuid%} >= 7500: add 1 to {multi.%player's uuid%} delete {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player delete {ready.%player%} close player's inventory {multi.%player's uuid%} is equal to 8: {clicks::%player's uuid%} >= 10000: add 1 to {multi.%player's uuid%} delete {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player delete {ready.%player%} close player's inventory left click: player's tool is a cookie named "&6Clicker": set metadata tag "clickerGUI" of player to chest inventory with 1 row named "&6&lClicker" set slot 0,1,2,6,7 and 8 of metadata tag "clickerGUI" of player to black stained glass pane named "&0" {multi.%player's uuid%} is equal to 1 or 0: {clicks::%player's uuid%} >= 100: set slot 4 of metadata tag "clickerGUI" of player to green wool named "&aUpgrade Clicker" with lore "&7Costs: &a100 Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c100 Clicks" {multi.%player's uuid%} is equal to 2: {clicks::%player's uuid%} >= 250: set slot 4 of metadata tag "clickerGUI" of player to green wool named "&aUpgrade Clicker" with lore "&7Costs: &a250 Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c250 Clicks" {multi.%player's uuid%} is equal to 3: {clicks::%player's uuid%} >= 500: set slot 4 of metadata tag "clickerGUI" of player to green wool named "&aUpgrade Clicker" with lore "&7Costs: &a500 Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c500 Clicks" {multi.%player's uuid%} is equal to 4: {clicks::%player's uuid%} >= 1000: set slot 4 of metadata tag "clickerGUI" of player to green wool named "&aUpgrade Clicker" with lore "&7Costs: &a1000 Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c1000 Clicks" {multi.%player's uuid%} is equal to 5: {clicks::%player's uuid%} >= 2500: set slot 4 of metadata tag "clickerGUI" of player to green wool named "&aUpgrade Clicker" with lore "&7Costs: &a2500 Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c2500 Clicks" {multi.%player's uuid%} is equal to 6: {clicks::%player's uuid%} >= 5000: set slot 4 of metadata tag "clickerGUI" of player to green wool named "&aUpgrade Clicker" with lore "&7Costs: &a5000 Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c5000 Clicks" {multi.%player's uuid%} is equal to 7: {clicks::%player's uuid%} >= 7500: set slot 4 of metadata tag "clickerGUI" of player to green wool named "&aUpgrade Clicker" with lore "&7Costs: &a7500 Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c7500 Clicks" {multi.%player's uuid%} is equal to 8: {clicks::%player's uuid%} >= 10000: set slot 4 of metadata tag "clickerGUI" of player to green wool named "&aUpgrade Clicker" with lore "&7Costs: &a10000 Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c10000 Clicks" open (metadata tag "clickerGUI" of player) to player and now heres a little scoreboard thing for you to use function clickBar(p: player): set {_u} to {_p}'s uuid toggle {_p}'s scoreboard to on set {_w} to number of all players in world "clicker" set title of {_p}'s scoreboard to "&b&lCLICKER &8| &7(&b%{_w}%&7/&b%maximum amount of players%&7)" set line 15 of {_p}'s scoreboard to "" set line 14 of {_p}'s scoreboard to "&b&lYOU" set line 13 of {_p}'s scoreboard to "" set line 12 of {_p}'s scoreboard to "&7| &bClicks: &7%formatNum({clicks::%{_u}%} ? 0)%" set line 11 of {_p}'s scoreboard to "&7| &bMulti: &7%formatNum({multi.%{_u}%} ? 0)%" set line 10 of {_p}'s scoreboard to "&7| &bRebirths: &7%formatNum({rebirths::%{_u}%} ? 0)%" function sideBar(p: player): set {_u} to {_p}'s uuid toggle {_p}'s scoreboard to on set title of {_p}'s scoreboard to "&b&lServer &8| &7(&b%number of all players%&7/&b%maximum amount of players%&7)" set line 15 of {_p}'s scoreboard to "" set line 14 of {_p}'s scoreboard to "&b&lYOU" set line 13 of {_p}'s scoreboard to "" set line 12 of {_p}'s scoreboard to "&7| &bSomething: &7" set line 11 of {_p}'s scoreboard to "&7| &bSomething: &7" set line 10 of {_p}'s scoreboard to "" function formatNum(n: number) :: text: set {_data} to "QT,18|Q,15|T,12|B,9|M,6|k,3" loop split {_data} at "|": set {_s::*} to split loop-value at "," {_n} >= 10 ^ {_s::2} parsed as number return "%{_n} / 10 ^ {_s::2} parsed as number%%{_s::1}%" return "%{_n}%" on join: while player is online: wait 1 tick if player's world = "clicker": clickBar(player) else if player's world = "world": sideBar(player) the format function isnt mine, but it was used in the code so I decided to put it in and as a little bonus here is a voidspawn skript on join: while player is online: wait 1 tick if player's world = "clicker": player's y-coordinate < 60: teleport player to world "clicker" else if player's world = "world": player's y-coordinate < 60: teleport player to world "world" please dont respond with hate, I don't care also fyi this is used on MY server it's called Staple so please if you ever join it dont think I stole this from this post since its mine credit me if used and if you have any errors hit me up on discord Kimo#4363 (reply to this post before adding me with ur username (no tag) so ill know) edit: totally forgot but since theres a rebirth variable, might aswell make a rebirth skript to go with it, here it is command rebirth: trigger: set {rebirthprice.%player's uuid%} to 1000 if {rebirthprice.%player's uuid%} is not set set metadata tag "rebirthGUI" of player to chest with 1 row named "&d&lRebirth" set slot 0,1,2,6,7 and 8 of metadata tag "rebirthGUI" of player to black stained glass pane named "&0" set slot 4 of metadata tag "rebirthGUI" of player to nether star named "&dRebirth" with lore "&7This will cost you: &d%formatNum({rebirthprice.%player's uuid%})%&d Multi" open (metadata tag "rebirthGUI" of player) to player inventory click: event-inventory = (metadata tag "rebirthGUI" of player): cancel event index of event-slot = 4: set {rebirthprice.%player's uuid%} to 1000 if {rebirthprice.%player's uuid%} is not set {multi.%player's uuid%} >= {rebirthprice.%player's uuid%}: set {multi.%player's uuid%} to 500 delete {clicks::%player's uuid%} add 1 to {rebirths::%player's uuid%} add 500 to {rebirthprice.%player's uuid%} send "&a%player% &ahas successfully &d&lrebirthed!" to all players in world "clicker" play sound "block.note_block.pling" to player else: send "&cYou do not have enough multi!" to player close player's inventory Enjoy! Edited October 2, 2021 by itsKimo Link to comment Share on other sites More sharing options...
itsKimo Posted October 2, 2021 Author Share Posted October 2, 2021 yeah yeah I know it could have easily been a lot more shorter and efficient if I just used vars for prices and added to those vars but. who doesn't like a nice long skript am i right Link to comment Share on other sites More sharing options...
itsKimo Posted October 2, 2021 Author Share Posted October 2, 2021 (edited) right click: player's tool is a cookie named "&6Clicker": set {clicks::%player's uuid%} to 0 if {clicks::%player's uuid%} is not set set {multi.%player's uuid%} to 1 if {multi.%player's uuid%} is not set add 1 * {multi.%player's uuid%} to {clicks::%player's uuid%} send action bar "&6Clicks: &e%formatNum({clicks::%player's uuid%})%" to player while player is online: wait 1 tick set {upgradeprice.%player's uuid%} to 250 if {upgradeprice.%player's uuid%} is not set if {clicks::%player's uuid%} >= {upgradeprice.%player's uuid%}: if {ready.%player%} is not set: send action bar "&aYou are ready to upgrade! &7&o(left click)" to player send "&aYou are ready to upgrade! &7&o(left click)" to player play sound "block.note_block.pling" to player set {ready.%player%} to true inventory click: event-inventory = (metadata tag "clickerGUI" of player): cancel event set {upgradeprice.%player's uuid%} to 250 if {upgradeprice.%player's uuid%} is not set event-slot is not red wool or lime wool or black stained glass pane: stop event-slot is red wool: send "&cYou do not have enough clicks!" to player close player's inventory stop index of event-slot = 4: {clicks::%player's uuid%} >= {upgradeprice.%player's uuid%}: add 1 * {rebirths::%player's uuid%} to {multi.%player's uuid%} if {rebirths::%player's uuid%} is greater than or equal to 1 add 1 to {multi.%player's uuid%} if {rebirths::%player's uuid%} is not greater than or equal to 1 remove {upgradeprice.%player's uuid%} from {clicks::%player's uuid%} send "&aSuccessfully upgraded." to player play sound "block.note_block.pling" to player add 250 * {rebirths::%player's uuid%} to {upgradeprice.%player's uuid%} if {rebirths::%player's uuid%} is greater than or equal to 1 add 250 to {upgradeprice.%player's uuid%} if {rebirths::%player's uuid%} is not greater than or equal to 1 delete {ready.%player%} close player's inventory command rebirth: trigger: set {rebirthprice.%player's uuid%} to 250 if {rebirthprice.%player's uuid%} is not set set metadata tag "rebirthGUI" of player to chest with 1 row named "&d&lRebirth" set slot 0,1,2,6,7 and 8 of metadata tag "rebirthGUI" of player to black stained glass pane named "&0" set slot 4 of metadata tag "rebirthGUI" of player to nether star named "&dRebirth" with lore "&7This will cost you: &d%formatNum({rebirthprice.%player's uuid%})%&d Multi" open (metadata tag "rebirthGUI" of player) to player inventory click: event-inventory = (metadata tag "rebirthGUI" of player): cancel event index of event-slot = 4: set {rebirthprice.%player's uuid%} to 250 if {rebirthprice.%player's uuid%} is not set {multi.%player's uuid%} >= {rebirthprice.%player's uuid%}: set {multi.%player's uuid%} to 100 delete {clicks::%player's uuid%} add 1 to {rebirths::%player's uuid%} add 250 to {rebirthprice.%player's uuid%} send "&a%player% &ahas successfully &d&lrebirthed!" to all players in world "clicker" play sound "block.note_block.pling" to player else: send "&cYou do not have enough multi!" to player close player's inventory left click: player's tool is a cookie named "&6Clicker": set metadata tag "clickerGUI" of player to chest inventory with 1 row named "&6&lClicker" set slot 0,1,2,6,7 and 8 of metadata tag "clickerGUI" of player to black stained glass pane named "&0" set {upgradeprice.%player's uuid%} to 250 if {upgradeprice.%player's uuid%} is not set {clicks::%player's uuid%} >= {upgradeprice.%player's uuid%}: set slot 4 of metadata tag "clickerGUI" of player to lime wool named "&aUpgrade Clicker" with lore "&7Costs: &a%formatNum({upgradeprice.%player's uuid%})%&a Clicks" else: set slot 4 of metadata tag "clickerGUI" of player to red wool named "&cUpgrade Clicker" with lore "&7Costs: &c%formatNum({upgradeprice.%player's uuid%})%&c Clicks" open (metadata tag "clickerGUI" of player) to player i re-did it and made it more efficient because yea Edited October 2, 2021 by itsKimo Link to comment Share on other sites More sharing options...
VoltMan12 Posted April 17, 2022 Share Posted April 17, 2022 Does not work how do we even get it? Link to comment Share on other sites More sharing options...
Swacco Posted April 24, 2022 Share Posted April 24, 2022 On 4/17/2022 at 6:01 PM, VoltMan12 said: Does not work how do we even get it? you go to a world named clicker if you dont have one just rename "clicker" to "world" Link to comment Share on other sites More sharing options...
EcseBecse Posted September 9, 2022 Share Posted September 9, 2022 Hi i will now test it but, can you please write your discord name? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now