Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {mana.%player%} to 500
- options:
- Mana.Ll.SR: 60 #Lightning RodをShift+右クリックしたときの消費mana
- Cd.Ll.SR: 20 #Lightning RodをShift+右クリックしたときのクールダウン時間(秒)
- Mana.Ll.R: 10 #Lightning Rodを右クリックしたときの消費mana
- Cd.Ll.R: 1 #Lightning Rodを右クリックしたときのクールダウン時間(秒)
- Mana.Hc.SR: 40 #Heal CharmをShift+右クリックしたときの消費mana
- Cd.Hc.SR: 60 #Heal CharmをShift+右クリックしたときのクールダウン時間(秒)
- Mana.Hc.R: 10 #Heal Charmを右クリックしたときの消費mana
- Cd.Hc.R: 20 #Heal Charmを右クリックしたときのクールダウン時間(秒)
- Mana.Sr: 10 #Search Ringを右クリックしたときの消費mana
- Cd.Sr: 20 #Search Ringを右クリックしたときのクールダウン時間(秒)
- CdM: "<light red>wait cooldown!" #クールダウン中のメッセージ
- NmM: "<light red>not enough mana!" #mana不足のメッセージ
- #|================================================================================|Lightning Rod
- on right click with gold hoe:
- name of player's tool contains "<gold>Lightning Rod"
- cancel event
- if player is sneaking:
- if {cd.llsr.%player%} is not 0:
- if {mana.%player%} >= {@Mana.Ll.SR}:
- set {cd.llsr.%player%} to 0
- execute command "/execute at %player% run particle minecraft:portal ~ ~ ~ 1 1 1 0.1 1000 normal"
- execute command "playsound entity.illusioner.prepare_blindness master %player% ~ ~ ~ 1 0.5 1"
- wait 40 tick
- loop all entities in radius 20 of location of player:
- loop-entity is not player
- "%loop-entity%" is not "experience orb"
- "%loop-entity%" is not "dropped item"
- strike fake fake lightning at the loop-entity
- damage loop-entity by 10 hearts
- execute command "playsound entity.illusioner.prepare_mirror master %player% ~ ~ ~ 1 2 1"
- subtract {@Mana.Ll.SR} from {mana.%player%}
- wait {@Cd.Ll.SR} seconds
- set {cd.llsr.%player%} to 1
- else:
- set action bar of player to {@NmM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- else:
- set action bar of player to {@CdM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- else:
- player's target entity is set
- player's target entity is not player
- "%player's target entity%" is not "experience orb"
- "%player's target entity%" is not "dropped item"
- if {cd.llr.%player%} is not 0:
- if {mana.%player%} >= {@Mana.Ll.R}:
- set {cd.llr.%player%} to 0
- strike fake fake lightning at the player's target entity
- execute command "playsound entity.generic.explode master %player% ~ ~ ~ 1 2 1"
- subtract {@Mana.Ll.R} from {mana.%player%}
- damage player's target entity by 5 hearts
- wait {@Cd.Ll.R} seconds
- set {cd.llr.%player%} to 1
- else:
- set action bar of player to {@NmM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- else:
- set action bar of player to {@CdM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- on left click with gold hoe:
- name of player's tool contains "<gold>Lightning Rod"
- cancel event
- #|================================================================================|Search Ring
- on right click with heart of the sea:
- name of player's tool contains "<light aqua>Search Ring"
- cancel event
- if {cd.sr.%player%} is not 0:
- if {mana.%player%} >= {@Mana.Sr}:
- set {cd.sr.%player%} to 0
- loop all entities in radius 50 of location of player:
- loop-entity is not player
- "%loop-entity%" is not "experience orb"
- "%loop-entity%" is not "dropped item"
- apply glowing to loop-entity for 10 seconds
- execute command "playsound block.conduit.deactivate master %player% ~ ~ ~ 1 1 1"
- subtract {@Mana.Sr} from {mana.%player%}
- wait {@Cd.Sr} second
- set {cd.sr.%player%} to 1
- else:
- set action bar of player to {@NmM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- else:
- set action bar of player to {@CdM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- on left click with heart of the sea:
- name of player's tool contains "<light aqua>Search Ring"
- cancel event
- #|================================================================================|Heal Charm
- on right click with pink dye:
- name of player's tool contains "<light purple>Heal Charm"
- cancel event
- if player is sneaking:
- if {cd.hisr.%player%} is not 0:
- if {mana.%player%} >= {@Mana.Hc.SR}:
- set {cd.hisr.%player%} to 0
- loop all players in radius 10 of location of player:
- execute command "playsound entity.player.levelup master %loop-player% ~ ~ ~ 1 2 1"
- heal loop-player
- subtract {@Mana.Hc.SR} from {mana.%player%}
- wait {@Cd.Hc.SR} seconds
- set {cd.hisr.%player%} to 1
- else:
- set action bar of player to {@NmM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- else:
- set action bar of player to {@CdM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- else:
- if {cd.hir.%player%} is not 0:
- if {mana.%player%} >= {@Mana.Hc.R}:
- set {cd.hir.%player%} to 0
- execute command "playsound entity.player.levelup master %player% ~ ~ ~ 1 2 1"
- heal player
- subtract {@Mana.Hc.R} from {mana.%player%}
- wait {@Cd.Hc.R} seconds
- set {cd.hir.%player%} to 1
- else:
- set action bar of player to {@NmM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- else:
- set action bar of player to {@CdM}
- execute command "playsound block.note_block.bass master @p ~ ~ ~ 1 0.5 1"
- on left click with pink dye:
- name of player's tool contains "<light purple>Heal Charm"
- cancel event
- #|================================================================================|
- command /magic <text>:
- permission: op
- trigger:
- if arg is "ll":
- give 1 gold hoe named "<gold>Lightning Rod" with lore "<purple>Right <white>: <gray>通常攻撃" and "<purple>mana cost <white>: <gray>{@Mana.Ll.R}" and "<purple>cooldown <white>: <gray>{@Cd.Ll.R}" and "" and "<purple>Shift + Right <white>: <gray>範囲攻撃" and "<purple>mana cost <white>: <gray>{@Mana.Ll.SR}" and "<purple>cooldown <white>: <gray>{@Cd.Ll.SR}" to player
- else if arg is "hc":
- give 1 pink dye named "<light purple>Heal Charm" with lore "<purple>Right <white>: <gray>自己回復" and "<purple>mana cost <white>: <gray>{@Mana.Hc.R}" and "<purple>cooldown <white>: <gray>{@Cd.Hc.R}" and "" and "<purple>Left <white>: <gray>範囲回復" and "<purple>mana cost <white>: <gray>{@Mana.Hc.SR}" and "<purple>cooldown <white>: <gray>{@Cd.Hc.SR}" to player
- else if arg is "sr":
- give 1 heart of the sea named "<light aqua>Search Ring" with lore "<purple>Right <white>: <gray>周囲探索" and "<purple>mana cost <white>: <gray>{@Mana.Sr}" and "<purple>cooldown <white>: <gray>{@Cd.Sr}" to player
- else:
- message "<light red>That tool does not exist."
- every 10 tick:
- loop all players:
- set action bar of loop-player to "<gold>mana <white>: <purple>%{mana.%loop-player%}%"
- add 1 to {mana.%loop-player%}
- command /mb:
- trigger:
- message "<command:/get ll><gray>[<gold>Lightning Rod<gray>]<reset>"
- message "<command:/get hc><gray>[<light purple>Heal Charm<gray>]<reset>"
- message "<command:/get sr><gray>[<light aqua>Search Ring<gray>]<reset>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement