Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- wait 1 tick
- if {point::%uuid of player%} is not set:
- set {point::%uuid of player%} to 1
- set {points::%uuid of player%} to 0
- set {tensei::%uuid of player%} to 0
- set {furnace::%uuid of player%} to 0
- set {grandma::%uuid of player%} to 0
- set {farm::%uuid of player%} to 0
- set {factory::%uuid of player%} to 0
- set {mine::%uuid of player%} to 0
- set {miner::%uuid of player%} to 0
- set {portal::%uuid of player%} to 0
- set {witch::%uuid of player%} to 0
- set {meteor::%uuid of player%} to 0
- set {planet::%uuid of player%} to 0
- set {matter::%uuid of player%} to 0
- message "&7>>このサーバーでは待機時間の暇つぶし用に&a&lCookieAfker&7が導入されています"
- message "&a&lCookieAfker&bは_mIrAgEdayo_によって作られました。"
- send "&eダウンロードしたい方はこちらからどうぞ &ehttps://discord.gg/SbpZx7Q"
- on right click with chest:
- if name of player's tool is "&5家電ショップ":
- cancel event
- open chest with 6 rows named "&5家電製品ショップ" to player
- wait 1 tick
- set slot 0 of player's current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%uuid of player%}%"
- wait 5 tick
- set slot 8 of player's current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%uuid of player%}%"
- wait 5 tick
- set slot 19 of player's current inventory to glowing furnace named "&c&l強化かまど &7値段:1000クッキー" with lore "&7通常より強化されたかまどを設置" and "&7所持数: &e%{furnace::%uuid of player%}%" and "&7秒間獲得クッキー数 +1"
- wait 2 tick
- set slot 21 of player's current inventory to glowing cookie named "&f&lおばあちゃん &7値段:2000クッキー" with lore "&7一番安心する味" and "&7所持数: &e%{grandma::%uuid of player%}%" and "&7秒間獲得クッキー数 +2"
- wait 1 tick
- set slot 23 of player's current inventory to glowing wheat named "&a&lクッキー畑 &7値段:4000クッキー" with lore "&7クッキーの種でクッキーを栽培" and "&7所持数: &e%{farm::%uuid of player%}%" and "&7秒間獲得クッキー数 +4"
- wait 1 tick
- set slot 25 of player's current inventory to glowing crafting table named "&e&lクッキー工場 &7値段:8000クッキー" with lore "&7最新鋭の技術を使って高速でクッキーを生産" and "&7所持数: &e%{factory::%uuid of player%}%" and "&7秒間獲得クッキー数 +8"
- wait 1 tick
- set slot 29 of player's current inventory to glowing wooden pickaxe named "&b&lクッキー洞窟 &7値段:16000クッキー" with lore "&7大量のクッキーが埋蔵されている洞窟" and "&7所持数: &e%{mine::%uuid of player%}%" and "&7秒間獲得クッキー数 +16"
- wait 1 tick
- set slot 31 of player's current inventory to glowing diamond pickaxe named "&b&lクッキー自動採掘機 &7値段:32000クッキー" with lore "&7地中のクッキーを自動で探し採掘する" and "&7所持数: &e%{miner::%uuid of player%}%" and "&7秒間獲得クッキー数 +32"
- wait 1 tick
- set slot 33 of player's current inventory to glowing purple stained glass pane named "&5&lクッキーポータル &7値段:64000クッキー" with lore "&7亜空間から大量のクッキーが転送される" and "&7所持数: &e%{portal::%uuid of player%}%" and "&7秒間獲得クッキー数 +64"
- wait 1 tick
- set slot 37 of player's current inventory to glowing brewing stand named "&5&l世界クッキー研究所 &7値段:128000クッキー" with lore "&729世紀の技術を使用してクッキー大量生産" and "&7所持数: &e%{witch::%uuid of player%}%" and "&7秒間獲得クッキー数 +128"
- wait 1 tick
- set slot 39 of player's current inventory to glowing obsidian named "&4&lクッキーメテオ &7値段:256000クッキー" with lore "&7巨大なメテオからクッキーを抽出" and "&7所持数: &e%{meteor::%uuid of player%}%" and "&7秒間獲得クッキー数 +256"
- wait 1 tick
- set slot 41 of player's current inventory to glowing grass named "&6&lクッキー星 &7値段:512000クッキー" with lore "&7全てがクッキーで出来た巨大な星で採取" and "&7所持数: &e%{planet::%uuid of player%}%" and "&7秒間獲得クッキー数 +512"
- wait 1 tick
- set slot 43 of player's current inventory to glowing purple dye named "&5&lクッキーマター &7値段:1024000クッキー" with lore "&7マターを使って超速度でクッキーを生成" and "&7所持数: &e%{matter::%uuid of player%}%" and "&7秒間獲得クッキー数 +1024"
- every 1 second in "world":
- loop all players:
- add {point::%uuid of loop-player%} to {points::%uuid of loop-player%}
- on inventory click:
- if name of player's current inventory contains "&5家電製品ショップ":
- if clicked slot is 0:
- cancel event
- if clicked slot is 8:
- cancel event
- if clicked slot is 19:
- cancel event
- furnace(player)
- if clicked slot is 21:
- cancel event
- grandma(player)
- if clicked slot is 23:
- cancel event
- farm(player)
- if clicked slot is 25:
- cancel event
- factory(player)
- if clicked slot is 29:
- cancel event
- mine(player)
- if clicked slot is 31:
- cancel event
- miner(player)
- if clicked slot is 33:
- cancel event
- portal(player)
- if clicked slot is 37:
- cancel event
- witch(player)
- if clicked slot is 39:
- cancel event
- meteor(player)
- if clicked slot is 41:
- cancel event
- planet(player)
- if clicked slot is 43:
- cancel event
- matter(player)
- function furnace(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 1000:
- add 1 to {point::%{_u}%}
- add 1 to {furnace::%{_u}%}
- remove 1000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 19 of {_p}'s current inventory to glowing furnace named "&c&l強化かまど &7値段:1000クッキー" with lore "&7通常より強化されたかまどを設置" and "&7所持数: &e%{furnace::%{_u}%}%" and "&7秒間獲得クッキー数 +1"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function grandma(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 2000:
- add 2 to {point::%{_u}%}
- add 1 to {grandma::%{_u}%}
- remove 2000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 21 of {_p}'s current inventory to glowing cookie named "&f&lおばあちゃん &7値段:2000クッキー" with lore "&7一番安心する味" and "&7所持数: &e%{grandma::%{_u}%}%" and "&7秒間獲得クッキー数 +2"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function farm(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 4000:
- add 4 to {point::%{_u}%}
- add 1 to {farm::%{_u}%}
- remove 4000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 23 of {_p}'s current inventory to glowing wheat named "&a&lクッキー畑 &7値段:4000クッキー" with lore "&7クッキーの種でクッキーを栽培" and "&7所持数: &e%{farm::%{_u}%}%" and "&7秒間獲得クッキー数 +4"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function factory(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 8000:
- add 8 to {point::%{_u}%}
- add 1 to {factory::%{_u}%}
- remove 8000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 25 of {_p}'s current inventory to glowing crafting table named "&e&lクッキー工場 &7値段:8000クッキー" with lore "&7最新鋭の技術を使って高速でクッキーを生産" and "&7所持数: &e%{factory::%{_u}%}%" and "&7秒間獲得クッキー数 +8"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function mine(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 16000:
- add 16 to {point::%{_u}%}
- add 1 to {mine::%{_u}%}
- remove 16000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 29 of {_p}'s current inventory to glowing wooden pickaxe named "&b&lクッキー洞窟 &7値段:16000クッキー" with lore "&7大量のクッキーが埋蔵されている洞窟" and "&7所持数: &e%{mine::%{_u}%}%" and "&7秒間獲得クッキー数 +16"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function miner(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 32000:
- add 32 to {point::%{_u}%}
- add 1 to {miner::%{_u}%}
- remove 32000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 31 of {_p}'s current inventory to glowing diamond pickaxe named "&b&lクッキー自動採掘機 &7値段:32000クッキー" with lore "&7地中のクッキーを自動で探し採掘する" and "&7所持数: &e%{miner::%{_u}%}%" and "&7秒間獲得クッキー数 +32"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function portal(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 64000:
- add 64 to {point::%{_u}%}
- add 1 to {portal::%{_u}%}
- remove 64000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 33 of {_p}'s current inventory to glowing purple stained glass pane named "&5&lクッキーポータル &7値段:64000クッキー" with lore "&7亜空間から大量のクッキーが転送される" and "&7所持数: &e%{portal::%{_u}%}%" and "&7秒間獲得クッキー数 +64"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function witch(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 128000:
- add 128 to {point::%{_u}%}
- add 1 to {witch::%{_u}%}
- remove 128000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 37 of {_p}'s current inventory to glowing brewing stand named "&5&l世界クッキー研究所 &7値段:128000クッキー" with lore "&729世紀の技術を使用してクッキー大量生産" and "&7所持数: &e%{witch::%{_u}%}%" and "&7秒間獲得クッキー数 +128"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function meteor(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 256000:
- add 256 to {point::%{_u}%}
- add 1 to {meteor::%{_u}%}
- remove 256000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 39 of {_p}'s current inventory to glowing obsidian named "&4&lクッキーメテオ &7値段:256000クッキー" with lore "&7巨大なメテオからクッキーを抽出" and "&7所持数: &e%{meteor::%{_u}%}%" and "&7秒間獲得クッキー数 +256"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function planet(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 512000:
- add 512 to {point::%{_u}%}
- add 1 to {planet::%{_u}%}
- remove 512000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 41 of {_p}'s current inventory to glowing grass named "&6&lクッキー星 &7値段:512000クッキー" with lore "&7全てがクッキーで出来た巨大な星で採取" and "&7所持数: &e%{planet::%{_u}%}%" and "&7秒間獲得クッキー数 +512"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- function matter(p: player):
- set {_u} to uuid of {_p}
- if {points::%{_u}%} >= 1024000:
- add 1024 to {point::%{_u}%}
- add 1 to {matter::%{_u}%}
- remove 1024000 from {points::%{_u}%}
- set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
- set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
- set slot 43 of {_p}'s current inventory to glowing purple dye named "&5&lクッキーマター &7値段:1024000クッキー" with lore "&7マターを使って超速度でクッキーを生成" and "&7所持数: &e%{matter::%{_u}%}%" and "&7秒間獲得クッキー数 +1024"
- else:
- close {_p}'s inventory
- send "&cクッキーが足りません。" to {_p}
- command /resetcookie:
- permission:cookieafk.reset
- trigger:
- set {point::%uuid of player%} to 1
- set {points::%uuid of player%} to 0
- set {tensei::%uuid of player%} to 0
- set {furnace::%uuid of player%} to 0
- set {grandma::%uuid of player%} to 0
- set {farm::%uuid of player%} to 0
- set {factory::%uuid of player%} to 0
- set {mine::%uuid of player%} to 0
- set {miner::%uuid of player%} to 0
- set {portal::%uuid of player%} to 0
- set {witch::%uuid of player%} to 0
- set {meteor::%uuid of player%} to 0
- set {planet::%uuid of player%} to 0
- set {matter::%uuid of player%} to 0
- command /setcookieranking:
- trigger:
- set {pointr::%player%} to {point::%uuid of player%}
- set {pointsr::%player%} to {points::%uuid of player%}
- set {tenseir::%player%} to {tensei::%uuid of player%}
- every 1 seconds:
- loop all players:
- make loop-player execute "/setcookieranking"
- command /cookieranking:
- trigger:
- loop {pointsr::*}:
- add 1 to {_size}
- if {_low.to.high.list::%loop-value%} is not set:
- set {_low.to.high.list::%loop-value%} to loop-index
- else:
- set {_n} to 0
- loop {_size} times:
- set {_n} to {_n}+1
- {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
- set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
- stop loop
- wait 1 tick
- set {_n} to size of {_low.to.high.list::*}
- loop {_low.to.high.list::*}:
- set {_high.to.low.list::%{_n}%} to loop-value
- set {_n} to {_n}-1
- wait 1 tick
- set {_i} to 0
- send "&7&m-----------&8< &6クッキー数ランキング &8>&7&m-----------"
- loop {_high.to.low.list::*}:
- add 1 to {_topnumber}
- send "&7%{_topnumber}% 位 &a%loop-value% &8≫ &7%{pointsr::%loop-value%}% 個"
- add 1 to {_i}
- if {_topnumber} > 9: #this is top 10 you can change it
- stop
- send "&7&m---------------------------------------------------"
- command /cookiepersecondranking:
- trigger:
- loop {pointr::*}:
- add 1 to {_size}
- if {_low.to.high.list::%loop-value%} is not set:
- set {_low.to.high.list::%loop-value%} to loop-index
- else:
- set {_n} to 0
- loop {_size} times:
- set {_n} to {_n}+1
- {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
- set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
- stop loop
- wait 1 tick
- set {_n} to size of {_low.to.high.list::*}
- loop {_low.to.high.list::*}:
- set {_high.to.low.list::%{_n}%} to loop-value
- set {_n} to {_n}-1
- wait 1 tick
- set {_i} to 0
- send "&7&m-----------&8< &6クッキー生産数ランキング &8>&7&m-----------"
- loop {_high.to.low.list::*}:
- add 1 to {_topnumber}
- send "&7%{_topnumber}% 位 &a%loop-value% &8≫ &7%{pointr::%loop-value%}%個/s"
- add 1 to {_i}
- if {_topnumber} > 9: #this is top 10 you can change it
- stop
- send "&7&m---------------------------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement