Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- wait 1 tick
- give chest named "&5家電ショップ" to player
- 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 "&a&lCookieAfker&bは_mIrAgEdayo_によって作られました。"
- send "&eダウンロードしたい方はこちら &ehttps://discord.gg/SbpZx7Q"
- every 1 second in "world":
- loop all players:
- add {point::%uuid of loop-player%} to {points::%uuid of loop-player%}
- set action bar of loop-player to "&e&n所持クッキー数&a: &5&l%{points::%uuid of loop-player%}% &e&n秒間獲得クッキー数&a: &5&l%{point::%uuid of loop-player%}%"
- 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"
- 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}
- every seconds:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&6&l&oCookie"
- set score "&2&l&o" in sidebar of loop-player to 0
- set score "&9-----&2&l&oステータス&9-----" in sidebar of loop-player to -1
- set score "&e&n所持クッキー数" in sidebar of loop-player to -2
- set score "&5&l%{points::%uuid of loop-player%}%" in sidebar of loop-player to -3
- set score "&e&n秒間獲得クッキー数" in sidebar of loop-player to -4
- set score "&5&l%{point::%uuid of loop-player%}%" in sidebar of loop-player to -5
- command /cookieplus <player> <number>:
- permission: mirage.skripts
- trigger:
- add arg-2 to {points::%uuid of arg-1%}
- message "&7[&e&l❄&b&lCookieSystem&e&l❄&7] &b&l≫%arg-2%のクッキーを貰いました。"
- command /cookieremove <player> <number>:
- permission: mirage.skripts
- trigger:
- remove from arg-2 to {points::%uuid of arg-1%}
- message "&7[&e&l❄&b&lCookieSystem&e&l❄&7] &b&l≫%arg-2%のクッキーを減らしました。"
- remove 128000 from {points::%{_u}%}
- #PREFIX SKRIPT
- on chat:
- cancel event
- if {prefix::%uuid of player%} is set:
- if {suffix::%uuid of player%} is set:
- broadcast "%{prefix::%uuid of player%}%%player%%{suffix::%uuid of player%}% &b≫ &a%message%"
- else:
- broadcast "%{prefix::%uuid of player%}%%player% &b≫ &a%message%"
- else:
- if {suffix::%uuid of player%} is set:
- broadcast "&7%player%%{suffix::%uuid of player%}% &b≫ &a%message%"
- else:
- broadcast "&7%player% &b≫ &a%message%"
- command /prefix [<offline player>] [<text>]:
- permission: admin
- permission message: あなたは権限を持っていません。
- trigger:
- set {prefix::%uuid of arg-1%} to colored arg-2
- send "&b%arg 1% の前を %colored arg 2% &bにしました!"
- command /clearprefix [<offline player>]:
- permission: admin
- permission message: あなたは権限を持っていません。
- trigger:
- clear {prefix::%uuid of arg-1%}
- send "&b%arg 1% の称号をリセットしました。"
- command /suffix [<offline player>] [<text>]:
- permission: admin
- permission message: あなたは権限を持っていません。
- trigger:
- set {suffix::%uuid of arg-1%} to coloured arg-2
- send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
- command /clearsuffix [<offline player>]:
- permission: admin
- permission message: あなたは権限を持っていません。
- trigger:
- clear {suffix::%uuid of arg-1%}
- send "&b%arg 1% の称号をリセットしました。"
- command /prefixhelp:
- permission: skript.admin
- permission message: あなたは権限を持っていません。
- trigger:
- send "&b&m================================="
- send "&b&lPREFIX &eSKRIPT Version:0.5ii "
- send "&b&l/prefix (名前) (称号) "
- send "&b&l/clearprefix (名前) "
- send "&b&l/suffix (名前) (称号) "
- send "&b&l/clearsuffix (名前)"
- send "&b&m================================="
- on join:
- execute console command "/tp %player% -102 4 103"
- on join:
- execute console command "/gamemode 2 %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement