Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {%player%.sp} = 0
- {%player%.magiclevel} = 1
- {%player%.weaponlevel} = 1
- {%player%.attacklevel} = 1
- {%player%.recoverylevel} = 1
- {%player%.assistlevel} = 1
- {%player%.mobilitylevel} = 1
- {%player%.damage} = 1
- {%player%.attackbonus} = 1
- {%player%.still} = 0
- command /spmenu <player=%player%>:
- trigger:
- wait 2 tick
- open chest with 3 row named "&1&lSP振り分けメニュー" to arg 1
- wait 1 tick
- format slot 2 of arg 1 with iron_sword named "&e&lWeaponLevelに使う" with lore "&e武器に関するレベル||&2-----------||&2現在のWeaponLevel: &e%{%arg 1%.weaponlevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spweapon %arg 1%"]
- format slot 6 of arg 1 with enchanted_book named "&e&lMagicLevelに使う" with lore "&e魔法に関するレベル||&2-----------||&2現在のMagicLevel: &e%{%arg 1%.magiclevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spmagic %arg 1%"]
- format slot 19 of arg 1 with rose red named "&e&lAttackLevelに使う" with lore "&e攻撃に関するレベル||&2-----------||&2現在のAttackLevel: &e%{%arg 1%.attacklevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spattack %arg 1%"]
- format slot 21 of arg 1 with light green dye named "&e&lRecoveryLevelに使う" with lore "&e回復に関するレベル||&2-----------||&2現在のRecoveryLevel: &e%{%arg 1%.recoverylevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/sprecovery %arg 1%"]
- format slot 23 of arg 1 with dandelion yellow named "&e&lAssistLevelに使う" with lore "&e支援に関するレベル||&2-----------||&2現在のAssistLevel: &e%{%arg 1%.assistlevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spassist %arg 1%"]
- format slot 25 of arg 1 with light blue dye named "&e&lMobilityLevelに使う" with lore "&e機動力に関するレベル||&2-----------||&2現在のMobilityLevel: &e%{%arg 1%.mobilitylevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spmobility %arg 1%"]
- command /spmagic <player>:
- trigger:
- if {%arg 1%.sp} > 0:
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- remove 1 from {%arg 1%.sp}
- add 1 to {%arg 1%.magiclevel}
- message "&bMagicLevelに1振り分けました!" to arg 1
- message "&e(現在MagicLevel %{%arg 1%.magiclevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
- command "/spmenu %arg 1%"
- else:
- message "&4SPが足りないようだ..." to arg 1
- command /spweapon <player>:
- trigger:
- if {%arg 1%.sp} > 0:
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- remove 1 from {%arg 1%.sp}
- add 1 to {%arg 1%.weaponlevel}
- message "&bWeaponLevelに1振り分けました!" to arg 1
- message "&e(現在WeaponLevel %{%arg 1%.weaponlevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
- command "/spmenu %arg 1%"
- else:
- message "&4SPが足りないようだ..." to arg 1
- command /spattack <player>:
- trigger:
- if {%arg 1%.sp} > 0:
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- remove 1 from {%arg 1%.sp}
- add 1 to {%arg 1%.attacklevel}
- message "&bAttackLevelに1振り分けました!" to arg 1
- message "&e(現在AttackLevel %{%arg 1%.attacklevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
- command "/spmenu %arg 1%"
- else:
- message "&4SPが足りないようだ..." to arg 1
- command /sprecovery <player>:
- trigger:
- if {%arg 1%.sp} > 0:
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- remove 1 from {%arg 1%.sp}
- add 1 to {%arg 1%.recoverylevel}
- message "&bRecoveryLevelに1振り分けました!" to arg 1
- message "&e(現在RecoveryLevel %{%arg 1%.recoverylevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
- command "/spmenu %arg 1%"
- else:
- message "&4SPが足りないようだ..." to arg 1
- command /spassist <player>:
- trigger:
- if {%arg 1%.sp} > 0:
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- remove 1 from {%arg 1%.sp}
- add 1 to {%arg 1%.assistlevel}
- message "&bAssistLevelに1振り分けました!" to arg 1
- message "&e(現在AssistLevel %{%arg 1%.assistlevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
- command "/spmenu %arg 1%"
- else:
- message "&4SPが足りないようだ..." to arg 1
- command /spmobility <player>:
- trigger:
- if {%arg 1%.sp} > 0:
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- remove 1 from {%arg 1%.sp}
- add 1 to {%arg 1%.mobilitylevel}
- message "&bMobilityLevelに1振り分けました!" to arg 1
- message "&e(現在MobilityLevel %{%arg 1%.mobilitylevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
- command "/spmenu %arg 1%"
- else:
- message "&4SPが足りないようだ..." to arg 1
- command /skpv <player=%player%> <number>:
- trigger:
- wait 2 tick
- make arg 1 execute command "/pv %arg 2%"
- #レベルに使えるenchant
- #ドロップ増加 looting
- #シルクタッチ silk_touch
- #耐久力 unbreaking 武器
- #修繕 mending
- #無限 infinity
- #△水中呼吸 depth_strider
- #幸運 fortune 魔法
- #武器入手
- # 1 2 3 4 5 6 7 8 9 10 11 12 13
- command /weapongive <player=%player%> <item> <text> <text> <text> <text> <number> [<text>] [<number>] [<text>] [<number>] [<text>] [<number>]:
- usage: /weapongive[wgive] 1.Player名 2.ItemID 3.名前 4.レア度[星をそのまま書く] 5.主な入手方法 6.説明 7.攻撃力(数値) &eここから12までの偶数は制限Level名 &bここから13までの奇数は制限Level数値 &d&lレベル名 <Weapon,Magic,Attack,Recovery,Assist,Mobility>
- permission: admin
- aliases: /wgive
- permission message: &c権限がない!
- trigger:
- if arg 12 is set:
- give arg 2 named "&e[%arg 3%]" with lore "&bレア度:&e%arg 4%||&b主な入手方法:&d%arg 5%||&b説明:&a%arg 6%||&4----------||&a-&c攻撃力:&e%arg 7%||&d未改造||&2-----------------------------------||&e-&c使用制限&e-||&a-&b%arg 8%Level:&e%arg 9%||&a-&b%arg 10%Level:&e%arg 11%||&a-&b%arg 12%Level:&e%arg 13%" to arg 1
- stop
- if arg 10 is set:
- give arg 2 named "&e[%arg 3%]" with lore "&bレア度:&e%arg 4%||&b主な入手方法:&d%arg 5%||&b説明:&a%arg 6%||&4----------||&a-&c攻撃力:&e%arg 7%||&d未改造||&2-----------------------------------||&e-&c使用制限&e-||&a-&b%arg 8%Level:&e%arg 9%||&a-&b%arg 10%Level:&e%arg 11%" to arg 1
- stop
- if arg 8 is set:
- give arg 2 named "&e[%arg 3%]" with lore "&bレア度:&e%arg 4%||&b主な入手方法:&d%arg 5%||&b説明:&a%arg 6%||&4----------||&a-&c攻撃力:&e%arg 7%||&d未改造||&2-----------------------------------||&e-&c使用制限&e-||&a-&b%arg 8%Level:&e%arg 9%" to arg 1
- stop
- give arg 2 named "&e[%arg 3%]" with lore "&bレア度:&e%arg 4%||&b主な入手方法:&d%arg 5%||&b説明:&a%arg 6%||&4----------||&a-&c攻撃力:&e%arg 7%||&d未改造||&2-----------------------------------||&e-&c使用制限&e-||&dなし" to arg 1
- #振り分けだお
- #持ち帰時の能力処理
- on tool change:
- set the player's walk speed to 0.2
- set {%player%.damage} to 1
- set {%player%.still} to 0
- set {%player%.attackbonus} to 0
- lore of player's tool is set
- while true:
- add 1 to {_line}
- set {_lore} to line {_line} of lore of player's tool
- if {_lore} is not set:
- exit 2 sections
- add {_lore} to {_lore::*}
- delete {_lore}
- loop {_lore::*}:
- add 1 to {_inx}
- if the first index of "&a-&bWeaponLevel:&e" in loop-value is not -1:
- set {_number} to (subtext of loop-value from 20 to length of loop-value) parsed as number
- if {_number} is greater than {%player%.weaponlevel}:
- cancel event
- message "&4これを使うにはまだまだ力が足りないようだ..." to player
- command "/effect %player% minecraft:blindness 3 0"
- stop
- if the first index of "&a-&bMagicLevel:&e" in loop-value is not -1:
- set {_number} to (subtext of loop-value from 19 to length of loop-value) parsed as number
- if {_number} is greater than {%player%.magiclevel}:
- cancel event
- message "&4これを使うにはまだまだ力が足りないようだ..." to player
- command "/effect %player% minecraft:blindness 3 0"
- stop
- if the first index of "&a-&bAttackLevel:&e" in loop-value is not -1:
- set {_number} to (subtext of loop-value from 20 to length of loop-value) parsed as number
- if {_number} is greater than {%player%.attacklevel}:
- cancel event
- message "&4これを使うにはまだまだ力が足りないようだ..." to player
- command "/effect %player% minecraft:blindness 3 0"
- stop
- if the first index of "&a-&bRecoveryLevel:&e" in loop-value is not -1:
- set {_number} to (subtext of loop-value from 22 to length of loop-value) parsed as number
- if {_number} is greater than {%player%.recoverylevel}:
- cancel event
- message "&4これを使うにはまだまだ力が足りないようだ..." to player
- command "/effect %player% minecraft:blindness 3 0"
- stop
- if the first index of "&a-&bAssistLevel:&e" in loop-value is not -1:
- set {_number} to (subtext of loop-value from 20 to length of loop-value) parsed as number
- if {_number} is greater than {%player%.recoverylevel}:
- cancel event
- message "&4これを使うにはまだまだ力が足りないようだ..." to player
- command "/effect %player% minecraft:blindness 3 0"
- stop
- if the first index of "&a-&bMobilityLevel:&e" in loop-value is not -1:
- set {_number} to (subtext of loop-value from 22 to length of loop-value) parsed as number
- if {_number} is greater than {%player%.mobilitylevel}:
- cancel event
- message "&4これを使うにはまだまだ力が足りないようだ..." to player
- command "/effect %player% minecraft:blindness 3 0"
- stop
- if the first index of "&a-&c攻撃力:&e" in loop-value is not -1:
- set {%player%.damage} to (subtext of loop-value from 12 to length of loop-value) parsed as number
- if the first index of "&e-&d改造・攻撃(%%):&6" in loop-value is not -1:
- set {%player%.attackbonus} to (subtext of loop-value from 17 to length of loop-value) parsed as number
- if the first index of "&e-&d改造・移動(%%):&6" in loop-value is not -1:
- add 0.002 * (subtext of loop-value from 17 to length of loop-value) parsed as number to player's walk speed
- if the first index of "&e-&d改造・吸収:&6" in loop-value is not -1:
- set {%player%.still} to (subtext of loop-value from 14 to length of loop-value) parsed as number
- if the first index of "&e-&d改造・防御:&6" in loop-value is not -1:
- set {%player%.resistance} to (subtext of loop-value from 14 to length of loop-value) parsed as number
- on rightclick with a redstone:
- name of player's tool contains "&d[改造石 Lv1]"
- {%player%.up} is 0
- remove 1 of held item from player
- set {%player%.up} to 1
- command "/playsound minecraft:entity.player.levelup ambient %player% ~ ~ ~ 1.0 0.53 1.0"
- message "&d---------------"
- message "&e改造したい武器をもって右クリックしてください"
- message "&e失敗すると武器が壊れます"
- message "&d---------------"
- command /admincustom <player> <text> <number>:
- permission: admin
- usage: /admincustom[adminc] Player 改造名 数値 持ってるのに付与します
- aliases: /adminc
- trigger:
- set 6th line of player's tool's lore to "&e-&d改造・%arg 2%:&6%arg 3%"
- message "あなたが持っているアイテムに%arg 2% ・ %arg 3%を付与しました" to arg 1
- on rightclick:
- if player is holding a sword
- repair player's tool
- {%player%.up} > 0
- if {%player%.damage} is not 1:
- command "/playsound minecraft:block.anvil.place ambient %player% ~ ~ ~ 0.5 1.0 0.5"
- chance of 85%:
- message "&b&l改造完了!"
- if {%player%.up} is 1:
- set {_random} to a random integer between 0 and 8
- if {_random} < 6:
- set 6th line of player's tool's lore to "&e-&d改造・攻撃(%%):&65"
- message "&e攻撃増加 +5%%"
- if {_random} > 5:
- if {_random} < 8:
- set 6th line of player's tool's lore to "&e-&d改造・移動(%%):&610"
- message "&e移動速度増加 +10%%"
- if {_random} is 8:
- set 6th line of player's tool's lore to "&e-&d改造・吸収:&60.5"
- message "&eHP吸収 0.5"
- set {%player%.up} to 0
- stop
- set {%player%.up} to 0
- remove 64 of held item from player
- command "/playsound minecraft:ambient.cave ambient %player% ~ ~ ~ 1.0 0.2 1.0"
- message "&4武器改造に失敗して武器が壊れた..."
- message "&4[成功への糧]を手に入れた"
- command "/effect %player% minecraft:blindness 3 0"
- command "/admingive %player% 336 成功への糧 ★★★ 武器改造の失敗 失敗が作った成功への道のり"
- else:
- message "&d武器をもって右クリックしてください [改造]"
- on damage:
- attacker is a player
- victim is not a player
- command "/effect %attacker% minecraft:resistance %{%attacker%.resistance}% 0"
- set damage to {%attacker%.damage} * (100+{%attacker%.attackbonus})/100
- heal attacker by {%attacker%.still}
- message "&e%{%attacker%.damage} * (100+{%attacker%.attackbonus})/100% &cdamage" to attacker
- attacker is holding a sword
- repair tool of attacker
- repair helmet of victim
- repair chestplate of victim
- repair leggings of victim
- repair boots of victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement