Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {money::*} = 0
- options:
- per: &cYou dont have permission, contact to Admin
- money: &2&l[&6Money&2&l]&r
- command /settings [<text>]:
- trigger:
- if arg 1 is not set:
- open chest with 1 row named "&eYour setting Menu" to player
- wait 1 tick
- if {hpshow::%UUID of player%} is true:
- format slot 0 of player with jukebox named "&e攻撃した際にHPを出す &atrue" with lore "&aHPをchatに送信します" to close then run [execute player command "settings hp"]
- else:
- format slot 0 of player with jukebox named "&e攻撃した際にHPを出す &cfalse" with lore "&aHPをchatに送信します" to close then run [execute player command "settings hp"]
- if arg 1 is "hp":
- if {hpshow::%UUID of player%} is true:
- set {hpshow::%UUID of player%} to false
- send "&aHP Show to false"
- stop
- else:
- set {hpshow::%UUID of player%} to true
- send "&aHP Show to true"
- command /rename [<text>]:
- permission: ms.admin
- permission message: {@per}
- trigger:
- if arg 1 is not set:
- send "&cテキストが入力されてません" to player
- stop
- if arg 1 is set:
- set the name of player's tool to "%colored arg%"
- command /setrank [<player>] [<text>]:
- permission: ms.admin
- permission message: {@per}
- trigger:
- if arg 1 is not set:
- send "&cプレイヤーが指定されてません"
- stop
- if arg 2 is not set:
- send "&cランクが指定されてません"
- stop
- else:
- if arg 2 is "admin":
- set {rank::%UUID of arg-1%} to "Admin"
- set arg-1 tab name to "&d[Admin]&4%arg-1%"
- set arg-1's display name to "&d[Admin]&4%arg-1%"
- send "&aあなたは&cAdmin&aになりました" to arg-1
- stop
- if arg 2 is "reset":
- delete {rank::%UUID of arg-1%}
- set arg-1 tab name to "&d[Admin]&4%arg-1%"
- set arg-1's display name to "&d[Admin]&4%arg-1%"
- send "&aあなたのrankがリセットされました" to arg-1
- stop
- command /emerald [<text>]:
- permission: ms.admin
- permission message: {@per}
- trigger:
- if arg 1 is not set:
- send "&cテキストを入力してください"
- stop
- else:
- if arg 1 is "1M":
- give player shiny light green carpet named "&a1M" with lore "&6この世界の通過"
- if arg 1 is "10M":
- give player shiny emerald named "&210M" with lore "&6この世界の通貨"
- if arg 1 is "100M":
- give player shiny emerald block named "&2100M" with lore "&6この世界の通貨"
- if arg 1 is "1000M":
- give player shiny light green glass block named "&21000M" with lore "&6この世界の通貨"
- if arg 1 is "10000M":
- give player shiny green glass block named "&210000M" with lore "&6この世界の通貨"
- if arg 1 is "100000M":
- give player shiny slime block named "&2100000M" with lore "&6この世界の通貨"
- command /classspawn:
- permission: ms.admin
- permission message: {@per}
- trigger:
- set {class.select} to location of player
- send "&aset Your location &7(%location%) &ato class spawn"
- command /tutorial:
- trigger:
- if {class.select::%UUID of player%} is true:
- send "&aはじめまして! &a%player% &bさん" to player
- wait 2 second
- send "&a職業を選択してください!" to player
- wait 2 second
- teleport player to {class.select}
- else:
- send "&cあなたはすでに終えています" to player
- command /class [<player>] [<text>]:
- permission: ms.admin
- permission message: {@per}
- trigger:
- if arg 1 is not set:
- send "&cプレイヤーが指定されません"
- stop
- if arg 2 is not set:
- send "&c職業が指定されてません"
- stop
- else:
- if arg 2 is "knight":
- set {class::%UUID of arg-1%} to 1
- set {class.name::%UUID of arg-1%} to "&c&lKnight"
- send "&aあなたは職業 &c&lKnight&r &aを選びました" to arg-1
- reveal player from all players
- set {class.select::%UUID of player%} to false
- wait 10 tick
- teleport arg-1 to {firstvillage}
- if arg 2 is "mage":
- set {class::%UUID of arg-1%} to 2
- set {class.name::%UUID of arg-1%} to "&5&lMage"
- send "&aあなたは職業 &5&lMage&r &aを選びました" to arg-1
- reveal player from all players
- set {class.select::%UUID of player%} to false
- wait 10 tick
- teleport arg-1 to {firstvillage}
- if arg 2 is "healer":
- set {class::%UUID of arg-1%} to 3
- set {class.name::%UUID of arg-1%} to "&d&lHealer"
- send "&aあなたは職業 &d&lHealer&r &aを選びました" to arg-1
- reveal player from all players
- set {class.select::%UUID of player%} to false
- wait 10 tick
- teleport arg-1 to {firstvillage}
- command /knight [<text>]:
- trigger:
- if {class::%UUID of player%} is 1:
- set {knight.weapon::%UUID of player%} to 1
- send "&cslashblade &aselected" to player
- else:
- send "&aあなたは &c&lKnight&r &aではありません" to player
- command /mage [<text>]:
- trigger:
- if {class::%UUID of player%} is 2:
- if arg 1 is "fire":
- set {mage.weapon::%UUID of player%} to 1
- send "&cfire &aselected" to player
- else:
- send "&aあなたは &5&lMage&r &aではありません" to player
- command /healer [<text>]:
- trigger:
- if {class::%UUID of player%} is 3:
- if arg 1 is "heal":
- set {healer.weapon::%UUID of player%} to 1
- send "&dheal &aselected" to player
- else:
- send "&aあなたは &d&lHealer&r &aではありません" to player
- command /menu:
- trigger:
- remove 1 clock named "&aServer Menu" from player
- wait 1 tick
- give 1 clock named "&aServer Menu" to player
- command /setfirstjoinspawn:
- permission: ms.admin
- permission message: {@per}
- aliases: /sfjs
- trigger:
- set {firstspawn} to location of player
- send "&aset You location (%location%) to first spawn" to player
- command /setfirstvillage:
- permission: ms.admin
- permission message: {@per}
- aliases: /sfv
- trigger:
- set {firstvillage} to location of player
- send "&aset You location (%location%) to first village" to player
- command /location:
- permission: ms.admin
- permission message: {@per}
- trigger:
- send "&aYou now location is (%location%)" to player
- command /login:
- permission: ms.admin
- permission message: {@per}
- trigger:
- send "&8合計初ログイン&a: %{first}%"
- command /money [<text>] [<player>]:
- trigger:
- if arg 1 is not set:
- send "{@money} &aYou have &6%{money::%UUID of player%}% &aMoney" to player
- if arg 2 is set:
- send "{@money} &a%player arg% have &6%{money::%UUID of player arg%}% &aMoney" to player
- every tick:
- loop all players:
- set {_level} to loop-player's level
- set action bar of loop-player to "&6Your Class: %{class.name::%UUID of loop-player%}% &5Mana: %{mana::%UUID of loop-player%}% &aLevel: %{_level}%"
- every 5 second:
- loop all players:
- if {mana::%UUID of loop-player%} is more than 100:
- wait 5 tick
- set {mana::%UUID of loop-player%} to 100
- stop
- else:
- add 1 to {mana::%UUID of loop-player%}
- on damage:
- if victim is not player:
- if {hpshow::%UUID of attacker%} is true:
- wait 1 tick
- set {_health} to victim's health
- send "&8相手のMOB&a: %victim% &aHP: %{_health}%" to attacker
- on death:
- if victim is player:
- set {mana::%UUID of victim%} to 100
- if damage cause is fall:
- set the death message to "&7%victim% &8さんは足を挫いた"
- stop
- on respawn:
- if {spawn::%UUID of player%} is set:
- teleport player to {spawn::%UUID of player%}
- on player drop:
- if name of event-item contains "&aServer Menu":
- cancel event
- if name of event-item contains "&5魔法の杖":
- cancel event
- on right click with clock:
- name of held item contains "&aServer Menu"
- cancel event
- execute console command "playsound minecraft:block.chest.open master %player% ~ ~ ~ 1 0.4 1"
- open chest with 1 row named "&aServer Menu" to player
- wait 1 tick
- format slot 1 of player with jukebox named "&aSettings" to run [execute player command "settings"]
- on left click with stick:
- if {class::%UUID of player%} is 2:
- name of held item contains "&5魔法の杖"
- cancel event
- open chest with 1 row named "&5魔法選択" to player
- wait 1 tick
- format slot 1 of player with fire charge named "&cファイア" with lore "&c初期魔法||&7周りにいるmobを燃やします||&6クールダウン: 15s||&5Mana: 10" to close then run [execute player command "mage fire"]
- if {class::%UUID of player%} is 3:
- name of held item contains "&d魔法の杖"
- cancel event
- open chest with 1 row named "&d魔法選択" to player
- wait 1 tick
- format slot 1 of player with red dye named "&dヒール" with lore "&c初期魔法||&7自分と周りにいるプレイヤーを回復します||&6クールダウン:15s||&5Mana:: 15" to close then run [execute player command "healer heal"]
- on left click with nether quartz:
- if {class::%UUID of player%} is 1:
- name of held item contains "&b不思議なクオーツ"
- cancel event
- open chest with 1 row named "&6スキル選択" to player
- wait 1 tick
- format slot 1 of player with shiny nether quartz named "&cスラッシュブレード" with lore "&c初期スキル||&7周りにいるMOBを斬りつける||&6クールダウン:10s||&5Mana: 15" to close then run [execute player command "knight slashblade"]
- on right click with nether quartz:
- if {class::%UUID of player%} is 1:
- name of held item contains "&b不思議なクオーツ"
- cancel event
- if {knight.weapon::%UUID of player%} is 1:
- if {mana::%UUID of player%} is more than 15:
- set {_slashblade} to difference between {slashblade::%UUID of player%} and now
- if {_slashblade} is less than 10 second:
- stop
- send "&aあなたは&6スキル: &cスラッシュブレード &aを使用しました"
- execute console command "execute %player% ~ ~ ~ particle sweepAttack ~ ~ ~ 0.7 0.5 0.7 0.5 100 normal @a"
- execute console command "playsound minecraft:entity.player.attack.sweep master %player%"
- subtract 15 from {mana::%UUID of player%}
- loop all entities in radius 5 of player:
- type of loop-entity is not player
- make player damage loop-entity by 5
- set {slashblade::%UUID of player%} to now
- else:
- execute console command "playsound minecraft:block.dispenser.dispense master %player% ~ ~ ~ 1 2 1"
- send "&5マナが足りません!" to player
- on right click with stick:
- if {class::%UUID of player%} is 2:
- name of held item contains "&5魔法の杖"
- cancel event
- if {mage.weapon::%UUID of player%} is 1:
- if {mana::%UUID of player%} is more than 10:
- set {_firect} to difference between {fire::%UUID of player%} and now
- if {_firect} is less than 15 second:
- stop
- send "&aあなたは&5魔法: &cファイア&a を使用しました"
- subtract 10 from {mana::%UUID of player%}
- execute console command "playsound minecraft:item.firecharge.use master %player% ~ ~ ~ 1 1 1"
- loop all entities in radius 5 of player:
- type of loop-entity is not player
- set loop-entity on fire for 6 seconds
- set {fire::%UUID of player%} to now
- else:
- execute console command "playsound minecraft:block.dispenser.dispense master %player% ~ ~ ~ 1 2 1"
- send "&5マナが足りません!" to player
- if {class::%UUID of player%} is 3:
- name of held item contains "&d魔法の杖"
- cancel event
- if {healer.weapon::%UUID of player%} is 1:
- if {mana::%UUID of player%} is more than 15:
- set {_healct} to difference between {heal::%UUID of player%} and now
- if {_healct} is less than 15 second:
- stop
- send "&aあなたは&5魔法: &dヒール&a を使用しました"
- execute console command "playsound minecraft:entity.player.levelup master %player% ~ ~ ~ 1 0 1"
- subtract 15 from {mana::%UUID of player%}
- loop all players in radius 5 of player:
- add 2.5 to the loop-player's health
- execute console command "execute %loop-player% ~ ~ ~ particle heart ~ ~ ~ 0.7 0.5 0.7 0.9 150 force @a"
- set {heal::%UUID of player%} to now
- else:
- execute console command "playsound minecraft:block.dispenser.dispense master %player% ~ ~ ~ 1 2 1"
- send "&5マナが足りません!" to player
- on right click on bed:
- cancel event
- set {_bedct} to difference between {setspawn::%UUID of player%} and now
- if {_bedct} is less than 1 second:
- send "&c一秒以上開けて設定してください"
- stop
- set {setspawn::%UUID of player%} to now
- set {spawn::%UUID of player%} to location of player
- send "&aスポーン地点を設定しました" to player
- execute console command "playsound minecraft:block.note.bass master %player% ~ ~ ~ 1 1 1"
- on craft:
- if player doesn't have permission "ms.admn":
- cancel event
- send "{@per}"
- on break:
- if player's gamemode is not creative:
- cancel event
- on place:
- if player's gamemode is not creative:
- cancel event
- on join:
- loop 1 times:
- if player has played on this server before:
- set the join message to "&7[&a+&7]%player%"
- stop
- else:
- set the join message to "&7[&b+&7]%player%"
- set {money::%UUID of player%} to 0
- set {mana::%UUID of player%} to 100
- set {class.select::%UUID of player%} to true
- teleport player to {firstspawn}
- hide player from all players
- execute player command "tutorial"
- on quit:
- loop 1 times:
- set the quit message to "&7[&c-&7]%player%"
- on chat:
- if {class.select::%UUID of player%} is true:
- cancel event
- send "&c職業を決めてから、チャットしてください" to player
- if {rank::%UUID of player%} is "Admin":
- cancel event
- broadcast "&d[Admin] &4%player%&a: &r%message%"
- stop
- if {class::%UUID of player%} is 1:
- cancel event
- broadcast "&7[&c&lKnight&r&7] &c%player%&a: &r%message%"
- stop
- if {class::%UUID of player%} is 2:
- cancel event
- broadcast "&7[&5&lMage&r&7] &5%player%&a: &r%message%"
- stop
- if {class::%UUID of player%} is 3:
- cancel event
- broadcast "&7[&d&lHealer&7] &d%player%&a: &r%message%"
- stop
- else:
- cancel event
- broadcast "&7%player%&a: &r%message%"
- stop
Add Comment
Please, Sign In to add comment