Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- count : 30
- on rightclick on anvil:
- block under the event-block is a iron block
- cancel event
- if held item is air:
- if {upitem::%uuid of player%::weapon.data} is set:
- give player {upitem::%uuid of player%::weapon.data}
- set {_name} to {upitem::%uuid of player%::weapon.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}%」&a&lを強化台から外しました"
- clear {upitem::%uuid of player%::weapon.data}
- clear {upitem::%uuid of player%::weapon.name}
- stop
- message "&b&lSystem &7&l≫ &a&lなにもセットされていません"
- stop
- if {upitem::%uuid of player%::weapon.data} is not set:
- held item is not none
- set {upitem::%uuid of player%::weapon.data} to held item
- set {upitem::%uuid of player%::weapon.name} to name of held item
- if lore of {upitem::%uuid of player%::weapon.data} contains "&c&l物理攻撃力":
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化上限":
- set {_up.limit} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- stop loop
- add 1 to {_line}
- replace "&5&l強化上限&7: &a&l+" with "" in {_up.limit}
- set {_up.limit} to {_up.limit} parsed as number
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化値":
- set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- stop loop
- add 1 to {_line}
- replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
- set {_up.num} to {_up.num} parsed as number
- if {_up.num} is more than {_up.limit}-1:
- message "&b&lSystem &7&l≫ &5&l強化上限&a&lです"
- clear {upitem::%uuid of player%::weapon.data}
- clear {upitem::%uuid of player%::weapon.name}
- stop
- remove held item from player
- set {_name} to {upitem::%uuid of player%::weapon.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lを強化台にセットしました"
- stop
- else:
- clear {upitem::%uuid of player%::weapon.data}
- clear {upitem::%uuid of player%::weapon.name}
- message "&b&lSystem &7&l≫ &c&l武器&a&lのみセット可能です"
- if name of held item is {upitem::%uuid of player%::weapon.name}:
- set {_item.lore} to lore of {upitem::%uuid of player%::weapon.data}
- set {_item.id} to id of {upitem::%uuid of player%::weapon.data}
- #===============================================強化値上限==========================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化上限":
- set {_up.num.limet} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- stop loop
- add 1 to {_line}
- replace "&5&l強化上限&7: &a&l+" with "" in {_up.num.limet}
- set {_up.num.limet} to {_up.num.limet} parsed as number
- #===============================================強化値==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化値":
- set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- set {_up.num2} to line {_line} of lore of held item
- stop loop
- add 1 to {_line}
- replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
- set {_up.num} to {_up.num} parsed as number
- replace "&6&l強化値&7: &a&l+" with "" in {_up.num2}
- set {_up.num2} to {_up.num2} parsed as number
- add 1 to {_up.num2}
- #===============================================中演算================================================================#
- if {_up.num} + {_up.num2} is more than {_up.num.limet}:
- set {_up.num2} to {_up.num.limet} - {_up.num}
- add {_up.num2} to {_up.num}
- set {_line}st line of held item's lore to "&6&l強化値&7: &a&l+%{_up.num}%"
- #=============================================物理攻撃力==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "物理攻撃力":
- set {_attack} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- set {_lore} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- stop loop
- add 1 to {_line}
- if {_lore} contains "物理攻撃力":
- replace "&c&l物理攻撃力&7: &a&l+" with "" in {_attack}
- set {_attack} to {_attack} parsed as number
- loop {_up.num2} times:
- set {_attack} to {_attack} * 1.1
- set {_line}st line of held item's lore to "&c&l物理攻撃力&7: &a&l+%{_attack}%"
- #=============================================射撃力==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "射撃力":
- set {_bullet.damage} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- set {_lore} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- stop loop
- add 1 to {_line}
- if {_lore} contains "射撃力":
- replace "&9&l射撃力&7: &a&l+" with "" in {_bullet.damage}
- set {_bullet.damage} to {_bullet.damage} parsed as number
- loop {_up.num2} times:
- set {_bullet.damage} to {_bullet.damage} * 1.1
- set {_line}st line of held item's lore to "&9&l射撃力&7: &a&l+%{_bullet.damage}%"
- #=============================================魔法攻撃力==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "魔法攻撃力":
- set {_magic.attack} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- set {_lore} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- stop loop
- add 1 to {_line}
- if {_lore} contains "魔法攻撃力":
- replace "&d&l魔法攻撃力&7: &a&l+" with "" in {_magic.attack}
- set {_magic.attack} to {_magic.attack} parsed as number
- loop {_up.num2} times:
- set {_magic.attack} to {_magic.attack} * 1.1
- set {_line}st line of held item's lore to "&d&l魔法攻撃力&7: &a&l+%{_magic.attack}%"
- #=============================================攻撃速度================================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's tool contains "攻撃速度":
- set {_attack.speed} to line {_line} of lore of player's tool
- stop loop
- add 1 to {_line}
- replace "&3&l攻撃速度&7: &a&l" with "" in {_attack.speed}
- set {_attack.speed} to {_attack.speed} parsed as number
- #==============================================カテゴリ===============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's tool contains "装備部位":
- set {_type} to line {_line} of lore of player's tool
- stop loop
- add 1 to {_line}
- replace "&b&l装備部位&7: &a&l" with "" in {_type}
- #=============================================-最終処理===============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- set {_v} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
- set {_v} to "%{_line}%:%{_v}%"
- add {_v} to {_item.lore.list::*}
- if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化上限":
- stop loop
- add 1 to {_line}
- replace "||" with "" in {_item.lore.list::*}
- set {_item.lore} to "%{_item.lore.list::*}%"
- replace "and %{_line}%:" with ",%{_line}%:" in {_item.lore}
- if {_type} is "左右手":
- set {_off.attack.speed} to 0
- else:
- set {_off.attack.speed} to 10
- add "{AttributeModifiers:[{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:%{_attack}%,Slot:mainhand,Operation:0,UUIDLeast:1,UUIDMost:2,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:%{_attack}/10%,Slot:offhand,Operation:0,UUIDLeast:1,UUIDMost:2,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackSpeed,Name:generic.attackSpeed,Amount:-%{_attack.speed}%,Slot:mainhand,Operation:0,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackSpeed,Name:generic.attackSpeed,Amount:-%{_off.attack.speed}%,Slot:offhand,Operation:0,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%}]}" to nbt of held item
- set {_name} to {upitem::%uuid of player%::weapon.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lに強化しました"
- clear {upitem::%uuid of player%::weapon.data}
- clear {upitem::%uuid of player%::weapon.name}
- else if name of held item is not {upitem::%uuid of player%::weapon.name}:
- message "&b&lSystem &7&l≫ &c&l同武器&a&lで&e&l右クリック&a&lしてください"
- #======================================================================================================================================#
- on rightclick on crafting table:
- block under the event-block is a iron block
- cancel event
- if held item is air:
- if {upitem::%uuid of player%::armor.data} is set:
- give player {upitem::%uuid of player%::armor.data}
- set {_name} to {upitem::%uuid of player%::armor.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}%」&a&lを強化台から外しました"
- clear {upitem::%uuid of player%::armor.data}
- clear {upitem::%uuid of player%::armor.name}
- stop
- message "&b&lSystem &7&l≫ &a&lなにもセットされていません"
- stop
- if {upitem::%uuid of player%::armor.data} is not set:
- held item is not none
- set {upitem::%uuid of player%::armor.data} to held item
- set {upitem::%uuid of player%::armor.name} to name of held item
- if lore of {upitem::%uuid of player%::armor.data} contains "&9&lカテゴリ&7: &a&l防具":
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "強化上限":
- set {_up.limit} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
- stop loop
- add 1 to {_line}
- replace "&5&l強化上限&7: &a&l+" with "" in {_up.limit}
- set {_up.limit} to {_up.limit} parsed as number
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "強化値":
- set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
- stop loop
- add 1 to {_line}
- replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
- set {_up.num} to {_up.num} parsed as number
- if {_up.num} is more than {_up.limit}-1:
- message "&b&lSystem &7&l≫ &5&l強化上限&a&lです"
- clear {upitem::%uuid of player%::armor.data}
- clear {upitem::%uuid of player%::armor.name}
- stop
- remove held item from player
- set {_name} to {upitem::%uuid of player%::armor.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lを強化台にセットしました"
- stop
- else:
- clear {upitem::%uuid of player%::armor.data}
- clear {upitem::%uuid of player%::armor.name}
- message "&b&lSystem &7&l≫ &9&l防具&a&lのみセット可能です"
- if name of held item is {upitem::%uuid of player%::armor.name}:
- set {_item.lore} to lore of {upitem::%uuid of player%::armor.data}
- #===============================================強化値上限==========================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "強化上限":
- set {_up.num.limet} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
- stop loop
- add 1 to {_line}
- replace "&5&l強化上限&7: &a&l+" with "" in {_up.num.limet}
- set {_up.num.limet} to {_up.num.limet} parsed as number
- #===============================================強化値==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "強化値":
- set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
- set {_up.num2} to line {_line} of lore of held item
- stop loop
- add 1 to {_line}
- replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
- set {_up.num} to {_up.num} parsed as number
- replace "&6&l強化値&7: &a&l+" with "" in {_up.num2}
- set {_up.num2} to {_up.num2} parsed as number
- add 1 to {_up.num2}
- #===============================================中演算================================================================#
- message "%{_up.num}%+%{_up.num2}%<%{_up.num.limet}%"
- if {_up.num} + {_up.num2} is more than {_up.num.limet}:
- set {_up.num2} to {_up.num.limet} - {_up.num}
- add {_up.num2} to {_up.num}
- set {_line}st line of held item's lore to "&6&l強化値&7: &a&l+%{_up.num}%"
- #===============================================防御力==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "&9&l防御力":
- set {_defense} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
- set {_lore} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
- stop loop
- add 1 to {_line}
- replace "&9&l防御力&7: &a&l+" with "" in {_defense}
- set {_defense} to {_defense} parsed as number
- loop {_up.num2} times:
- set {_defense} to {_defense} * 1.125
- replace "%{_lore}%" with "&9&l防御力&7: &a&l+%{_defense}%" in {_item.lore}
- set {_line}st line of held item's lore to "&9&l防御力&7: &a&l+%{_defense}%"
- set {_name} to {upitem::%uuid of player%::armor.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lに強化しました"
- clear {upitem::%uuid of player%::armor.data}
- clear {upitem::%uuid of player%::armor.name}
- else if name of held item is not {upitem::%uuid of player%::armor.name}:
- message "&b&lSystem &7&l≫ &9&l同防具&a&lで&e&l右クリック&a&lしてください"
- on rightclick on furnace:
- block under the event-block is a iron block
- cancel event
- if held item is air:
- if {upitem::%uuid of player%::pickaxe.data} is set:
- give player {upitem::%uuid of player%::pickaxe.data}
- set {_name} to {upitem::%uuid of player%::pickaxe.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}%」&a&lを強化台から外しました"
- clear {upitem::%uuid of player%::pickaxe.data}
- clear {upitem::%uuid of player%::pickaxe.name}
- stop
- message "&b&lSystem &7&l≫ &a&lなにもセットされていません"
- stop
- if {upitem::%uuid of player%::pickaxe.data} is not set:
- held item is not none
- set {upitem::%uuid of player%::pickaxe.data} to held item
- set {upitem::%uuid of player%::pickaxe.name} to name of held item
- if lore of {upitem::%uuid of player%::pickaxe.data} contains "&9&lカテゴリ&7: &a&lピッケル":
- remove held item from player
- set {_name} to {upitem::%uuid of player%::pickaxe.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lを強化台にセットしました"
- stop
- else:
- clear {upitem::%uuid of player%::pickaxe.data}
- clear {upitem::%uuid of player%::pickaxe.name}
- message "&b&lSystem &7&l≫ &e&lピッケル&a&lのみセット可能です"
- if name of held item is {upitem::%uuid of player%::pickaxe.name}:
- set {_item.lore} to lore of {upitem::%uuid of player%::pickaxe.data}
- set {_item.id} to id of {upitem::%uuid of player%::pickaxe.data}
- #===============================================強化値上限==========================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "強化上限":
- set {_up.num.limet} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
- stop loop
- add 1 to {_line}
- replace "&5&l強化上限&7: &a&l+" with "" in {_up.num.limet}
- set {_up.num.limet} to {_up.num.limet} parsed as number
- #===============================================強化値==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "強化値":
- set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
- set {_up.num2} to line {_line} of lore of held item
- stop loop
- add 1 to {_line}
- replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
- set {_up.num} to {_up.num} parsed as number
- replace "&6&l強化値&7: &a&l+" with "" in {_up.num2}
- set {_up.num2} to {_up.num2} parsed as number
- add 1 to {_up.num2}
- #===============================================中演算================================================================#
- if {_up.num} + {_up.num2} is more than {_up.num.limet}:
- set {_up.num2} to {_up.num.limet} - {_up.num}
- add {_up.num2} to {_up.num}
- set {_line}st line of held item's lore to "&6&l強化値&7: &a&l+%{_up.num}%"
- #=============================================物理攻撃力==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "物理攻撃力":
- set {_attack} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
- set {_lore} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
- stop loop
- add 1 to {_line}
- if {_lore} contains "物理攻撃力":
- replace "&c&l物理攻撃力&7: &a&l+" with "" in {_attack}
- set {_attack} to {_attack} parsed as number
- loop {_up.num2} times:
- set {_attack} to {_attack} * 1.1
- set {_line}st line of held item's lore to "&c&l物理攻撃力&7: &a&l+%{_attack}%"
- #=============================================魔法攻撃力==============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "魔法攻撃力":
- set {_magic.attack} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
- set {_lore} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
- stop loop
- add 1 to {_line}
- if {_lore} contains "魔法攻撃力":
- replace "&d&l魔法攻撃力&7: &a&l+" with "" in {_magic.attack}
- set {_magic.attack} to {_magic.attack} parsed as number
- loop {_up.num2} times:
- set {_magic.attack} to {_magic.attack} * 1.1
- set {_line}st line of held item's lore to "&d&l魔法攻撃力&7: &a&l+%{_magic.attack}%"
- #=============================================攻撃速度================================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's tool contains "攻撃速度":
- set {_attack.speed} to line {_line} of lore of player's tool
- stop loop
- add 1 to {_line}
- replace "&3&l攻撃速度&7: &a&l" with "" in {_attack.speed}
- set {_attack.speed} to {_attack.speed} parsed as number
- #==============================================カテゴリ===============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's tool contains "装備部位":
- set {_type} to line {_line} of lore of player's tool
- stop loop
- add 1 to {_line}
- replace "&b&l装備部位&7: &a&l" with "" in {_type}
- #=============================================-最終処理===============================================================#
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- set {_v} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
- set {_v} to "%{_line}%:%{_v}%"
- add {_v} to {_item.lore.list::*}
- if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "強化上限":
- stop loop
- add 1 to {_line}
- replace "||" with "" in {_item.lore.list::*}
- set {_item.lore} to "%{_item.lore.list::*}%"
- replace "and %{_line}%:" with ",%{_line}%:" in {_item.lore}
- if {_type} is "左右手":
- set {_off.attack.speed} to 0
- else:
- set {_off.attack.speed} to 10
- add "{AttributeModifiers:[{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:%{_attack}%,Slot:mainhand,Operation:0,UUIDLeast:1,UUIDMost:2,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:%{_attack}/10%,Slot:offhand,Operation:0,UUIDLeast:1,UUIDMost:2,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackSpeed,Name:generic.attackSpeed,Amount:-%{_attack.speed}%,Slot:mainhand,Operation:0,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackSpeed,Name:generic.attackSpeed,Amount:-%{_off.attack.speed}%,Slot:offhand,Operation:0,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%}]}" to nbt of held item
- set {_name} to {upitem::%uuid of player%::pickaxe.name}
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
- replace " &6&l|]]&m=====" with "" in {_name}
- message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lに強化しました"
- clear {upitem::%uuid of player%::pickaxe.data}
- clear {upitem::%uuid of player%::pickaxe.name}
- else if name of held item is not {upitem::%uuid of player%::pickaxe.name}:
- message "&b&lSystem &7&l≫ &c&l同武器&a&lで&e&l右クリック&a&lしてください"
Advertisement
Add Comment
Please, Sign In to add comment