Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #青鬼ごっこのprefixを指定します
- options:
- aooni: &3[&b青鬼&3]&f
- server: &c[&3Server&c]&f
- permission: &cYou dont have permission
- prefix: &c[&3Server&c]&f
- alert: &c&l[Alert]
- command /aooni [<text>]:
- permission: aooni.admin
- permission message: {@permission}
- trigger:
- if arg 1 is not set:
- send "{@aooni} &3/aooni start &a青鬼ごっこを始めます"
- send "{@aooni} &3/aooni close &a青鬼ごっこを終了します"
- send "{@aooni} &3/aooni wp &a青鬼を決めます"
- if arg 1 is "start":
- broadcast "&b青鬼ごっこスタート!"
- set {aooni.start} to true
- loop all players:
- set {aooni.lobby.%loop-player%} to false
- wait 15 second
- execute console command "setblock 28 28 50 air"
- if arg 1 is "wp":
- execute console command "tp @r[x=28,y=28,z=51,dx=3,dy=1,dz=-3] 20 20 20"
- execute console command "scoreboard teams join aooni @p[x=28,y=28,z=51,dy=1]"
- wait 1 tick
- execute console command "tellraw @a ["""",{""text"":""今回の青鬼は"",""color"":""blue""},{""selector"":""@p[x=28,y=28,z=51,dy=1]"",""color"":""blue""},{""text"":""さんです"",""color"":""blue""}]"
- wait 1 tick
- execute console command "setblock 28 26 50 redstone_block"
- if arg 1 is "close":
- broadcast "&b青鬼ごっこ終了!"
- set {aooni.start} to false
- execute console command "fill 33 53 64 33 52 64 sand"
- execute console command "scoreboard players set 残り時間: 情報 900"
- execute console command "setblock 28 28 50 wool"
- execute console command "resetblock"
- loop all players:
- teleport loop-player to {lobby}
- if arg 1 is "give kakuredama":
- set slot 4 of player to 1 slimeball named "&3隠れ玉"
- add 10 to {aooni.kakuredama.%player%}
- set {aooni.kakuredama.use.%player%} to true
- if arg 1 is "give tika":
- execute console command "give %player% minecraft:stone_pressure_plate 1 0 {""display"":{""Name"":""&3地下の鍵""},""CanPlaceOn"":[""minecraft:gold_block""]}"
- if arg 1 is "give 5kai":
- execute console command "give %player% minecraft:lapis_block 1 0 {""display"":{""Name"":""&b5階の鍵""},""CanPlaceOn"":[""minecraft:snow""]}"
- if arg 1 is "give escape":
- give player diamond named "&7&l館の鍵"
- command /banticket <offline player>:
- permission: banticket:admin
- permission message: &cYou dont have permission!
- usage: &c/banticket <player>
- trigger:
- broadcast "{@alert} &f%player%さんが'%arg-1%'を処罰しました"
- kick the arg-1
- ban the arg-1
- command /resetblock:
- permission: aooni.admin
- permission message: &cYou dont have permission
- trigger:
- loop {rollback::*}:
- set block at loop-value to air
- command /kakuredama:
- trigger:
- send "&6&l残り時間: %{aooni.kakuredama.%player%}%"
- command /setlobby:
- permission: aooni.admin
- permission message: &cYou dont have permission
- trigger:
- set {lobby} to location of player
- command /ban <offline player>:
- permission: ban.admin
- permission message: &cYou dont have permission
- trigger:
- broadcast "{@alert} &f%player%さんが'%arg-1%'さんにbanを試みましたが失敗しました"
- wait 5 tick
- kick the player
- command /broadcast <text>:
- permission: bc.admin
- permission message: &cYou dont have permission
- aliases: /bc
- trigger:
- broadcast "{@alert} &f%colored arg 1%"
- command /setescape:
- permission: aooni.admin
- permission message: &cYou dont have permission
- trigger:
- set {escape} to location of player
- send "&7Complete"
- every second:
- if {aooni.start} is true:
- wait 1 second
- execute console command "scoreboard players remove 残り時間: 情報 1"
- loop all players:
- if {aooni.kakuredama.use.%loop-player%} is true:
- if loop-player's held item is slimeball:
- wait 1 second
- remove 1 from {aooni.kakuredama.%loop-player%}
- hide loop-player from all players
- execute console command "effect %loop-player% invisibility 1 0"
- execute console command "effect %loop-player% slowness 1 3"
- if {aooni.kakuredama.%loop-player%} is smaller than 1:
- remove 1 slimeball named "&3隠れ玉" from loop-player's inventory
- reveal loop-player from all players
- set {aooni.kakuredama.use.%loop-player%} to false
- else:
- reveal loop-player from all players
- on place:
- if player's gamemode is not creative:
- add event-location to {rollback::*}
- on death of player:
- if attacker is a player:
- if victim is a player:
- if attacker is set:
- if {aooni.op.%attacker%} is true:
- set the death message to "&9%victim%は%attacker%に食べられた"
- else:
- set the death message to "&9%victim%は青鬼に食べられた"
- on damage:
- if attacker is a player:
- if victim is a player:
- if {aooni.lobby.%attacker%} is true:
- cancel event
- on death of player:
- damage was caused by fall
- set the death message to ""
- on death:
- clear player's inventory
- teleport player to location (10, 27, 1)
- on right click on emerald block:
- if player is holding a diamond named "&7&l館の鍵":
- teleport player to {escape}
- remove 1 diamond named "&7&l館の鍵" from player's inventory
- broadcast "&b%player%さんが青鬼の館から脱出しました"
- on right click on nether wart block:
- cancel event
- broadcast "&d%player% さんが復活しました"
- teleport player to location (0, 28, 51)
- hide the player from all players
- execute console command "effect %player% speed 4 2 true"
- wait 4 second
- reveal player to all players
- on right click on sign:
- line 1 of clicked block is "&a運営用"
- set the player's gamemode to creative
- execute console command "pex user %player% group set admin"
- set {aooni.op.%player%} to true
- send "{@aooni} &a運営になりました"
- stop
- on right click on sign:
- line 1 of clicked block is "&5ひろし"
- set the player's gamemode to adventure
- execute console command "pex user %player% group set hiroshi"
- set {aooni.op.%player%} to false
- send "{@aooni} &3ひろしになりました"
- stop
- on place stone pressure plate:
- name of held item contains "&3地下の鍵"
- broadcast "&d%player% さんが地下室を開きました"
- on place lapis block:
- name of held item contains "&b5階の鍵"
- broadcast "&d%player% さんが5階に行けるようにしました"
- on first join:
- loop 1 times:
- set the join message to "{@server} &e%player%&bさんは&cサーバーに初参加です"
- execute console command "gamemode 2 %player%"
- if {aooni.op.%player%} is true:
- execute console command "pex user %player% group set admin"
- else:
- execute console command "pex user %player% group set hiroshi"
- on join:
- loop 1 times:
- set the join message to "{@server} &e%player%&bさんがサーバーに参加しました"
- execute console command "gamemode 2 %player%"
- clear player's inventory
- if {aooni.op.%player%} is true:
- execute console command "pex user %player% group set admin"
- else:
- execute console command "pex user %player% group set hiroshi"
- on quit:
- loop 1 times:
- set the quit message to "{@server} &e%player%&bさんがサーバーから退出しました"
- options:
- # Set the permission required to execute this command.
- perm: is.admin
- # Set the message if the player has not gotten that permission.
- noperm: &cYou don't have the permission to do that!
- # The least amount of items that a chest can get.
- minitems: 3
- # The maximal amount of items that a chest can get.
- maxitems: 3
- # Don't edit the information below.
- author: Efnilite
- copyright: MillenniumUS
- version: 1.0
- # Set all of your custom items here.
- on load:
- clear {ritem::*}
- # You can add as many things as you like. You just need to repeat what I am doing here multiple times.
- # This adds 1 diamond boots to the random item list. In the text you will atleast need the parts of the list and the add.
- # COPY AND PASTE THIS: add (amount of items you want) (type of item) to {cheloc::*}
- # NOTE :: If there is only one item in the stack then you can just type: add (type of item) to {cheloc::*}
- # If you don't want to edit this, then I have already made a half decent setup, for mostly SkyWars and SurvivalGames use.
- # If you don't want all this extra stuff, then just remove all of it.
- add 1 cooked porkchop to {ritem::*}
- add 1 cooked porkchop to {ritem::*}
- add 1 cooked porkchop to {ritem::*}
- # Actual command. Not recommended to edit.
- command /mchest [<text>]:
- trigger:
- if arg 1 is "add":
- if player has permission "{@perm}":
- if target block is chest:
- add location of target block to {cheloc::*}
- message "{@prefix} Succesfully executed &3AddChest"
- loop {cheloc::*}:
- if loop-value is location of target block:
- message "{@prefix} This chest has already been checked as a mCHEST!"
- stop
- else:
- message "&b{@prefix} You need to select a chest!"
- else:
- message "{@noperm}"
- if arg 1 is "remove":
- if player has permission "{@perm}":
- if target block is a chest:
- remove location of target block from {cheloc::*}
- message "{@prefix} Succesfully removed the selected chest!"
- clear inventory of target block
- stop
- else:
- message "{@prefix} You need to select a chest!"
- else:
- message "{@noperm}"
- if arg 1 is "refill":
- if player has permission "{@perm}":
- loop {cheloc::*}:
- set {_cheslot::*} to ""
- loop 27 times:
- add loop-number to {_slotnum::*}
- clear inventory of block at loop-value
- wait 1 tick
- set {_loop} to a random integer between {@minitems} and {@maxitems}
- loop {_loop} times:
- set {_cheitem} to a random element out of {ritem::*}
- set {_cheslot} to a random element out of {_slotnum::*}
- add {_cheitem} to slot ({_cheslot} - 1) of block at loop-value-1
- else:
- message "{@noperm}"
- if arg 1 is "about" OR "version":
- message "&3&lmChests &r&b> Currently running version &3{@version}&b, copyright &3{@copyright} &band was created by &3{@author}"
- if arg 1 is not set:
- if player has permission "{@perm}":
- message "{@prefix} You need to specify a command! Usage: /mchest <add/remove/refill>"
- else:
- message "{@noperm}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement