Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on anvil:
- give redstone block named "&c&l大強化石" to player
- cancel event
- open chest with 1 row named "&k&rForging menu" to player
- wait 1 tick
- loop 9 times:
- add 1 to {_cnt}
- format slot {_cnt} - 1 of player with light gray glass pane named " " to act unstealable
- format slot 0 of player with enchanted book named "&7強化について" to act unstealable
- format slot 4 of player with red glass pane named "&4武器がセットされていません!" with lore "&r武器ををクリックで選択" to act unstealable
- format slot 7 of player with anvil named "&r強化石で強化する" to run "anvil 1 %player%"
- format slot 8 of player with anvil named "&r大強化石で強化する" to run "anvil 2 %player%"
- on inventory click:
- inventory name of current inventory of player contains "&k&rForging menu"
- cancel event
- if clicked item is sword:
- format slot 4 of player with clicked item to act unstealable
- set {Forge::%player%} to clicked item
- set {Forgename::%player%} to name of clicked item
- command /anvil <number> <player>:
- trigger:
- inventory name of current inventory of player-arg contains "&k&rForging menu"
- player-arg has {Forge::%player-arg%}
- if arg-1 is 1:
- player-arg has redstone dust named "&c&l強化石"
- remove 1 of redstone dust named "&c&l強化石" from player-arg
- set {_Multi} to 1
- else if arg-1 is 2:
- player-arg has redstone block named "&c&l大強化石"
- remove 1 of redstone block named "&c&l大強化石" from player-arg
- set {_Multi} to 10
- remove 1 of {Forge::%player-arg%} from player-arg
- if {Forgename::%player-arg%} contains "&l&4+":
- set {_spl::*} to split {Forgename::%player-arg%} at "&l&4+"
- set {_spl::2} to {_spl::2} parsed as number
- else:
- set {_spl::1} to {Forgename::%player-arg%}
- set {_spl::2} to 0
- set {_Rand} to random integer between 1 and (10*{_Multi})
- if {_Rand} >= 10:
- set {_plus} to {_spl::2} + 2
- else if {_Rand} is between 6 and 9:
- set {_plus} to {_spl::2} + 1
- else if {_Rand} is between 2 and 5:
- set {_plus} to {_spl::2} - 1
- else if {_Rand} is 1:
- set {_plus} to {_spl::2} - 2
- if {_plus} > 0:
- set {Forgename::%player-arg%} to "%{_spl::1}%&l&4+%{_plus}%"
- else:
- set {Forgename::%player-arg%} to "%{_spl::1}%"
- close inventory of player-arg
- give 1 of {Forge::%player-arg%} named {Forgename::%player-arg%} to player-arg
- on damage:
- {Forgename::%attacker%} contains "&l&4+"
- set {_spl::*} to split {Forgename::%attacker%} at "&l&4+"
- set {_spl::2} to {_spl::2} parsed as number
- set damage to damage + ({_spl::2}*0.5)
- set maximum damage delay of victim to "%max(0.5-{_spl::2}*0.02,0)% seconds" parsed as timespan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement