Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click on enchantment table:
- block under block is glowstone block
- cancel event
- player's tool exist
- open chest with 3 rows named "&3強化しますか?" to player
- wait 1 tick
- format slot 13 of player with anvil named "&4&l強化する!" to close then run "anvil 1 %player%"
- command /anvil <number> <player>:
- trigger:
- if arg 1 is 1:
- wait 2 tick
- open chest with 3 rows named "&3強化アイテム" to arg 2
- wait 1 tick
- format slot 0 of arg 2 with iron helmet named "&4&l防具強化" with lore "&f手に持っている防具を強化します" to run "anvil 2 %arg 2%"
- format slot 9 of arg 2 with iron helmet named "&4&l防具強化" with lore "&f手に持っている防具を強化します" to run "anvil 2 %arg 2%"
- format slot 18 of arg 2 with iron helmet named "&4&l防具強化" with lore "&f手に持っている防具を強化します" to run "anvil 2 %arg 2%"
- format slot 8 of arg 2 with iron sword named "&4&l武器強化" with lore "&f手に持っている武器を強化します" to run "anvil 3 %arg 2%"
- format slot 17 of arg 2 with iron sword named "&4&l武器強化" with lore "&f手に持っている武器を強化します" to run "anvil 3 %arg 2%"
- format slot 26 of arg 2 with iron sword named "&4&l武器強化" with lore "&f手に持っている武器を強化します" to run "anvil 3 %arg 2%"
- if arg 1 is 2:
- if arg 2 has 1 nether star:
- if level of PROTECTION of the arg 2's tool is less than 50:
- remove 1 nether star from arg 2's inventory
- set {_chance} to (0.1*(level of PROTECTION of the arg 2's tool))^2
- if chance of (100-{_chance})%:
- message "&f強化成功!" to arg 2
- message "&f強化レベル:%level of PROTECTION of the arg 2's tool%→%level of PROTECTION of the arg 2's tool +1%" to arg 2
- set {_lv} to level of PROTECTION of the arg 2's tool +1
- enchant the arg 2's tool with "PROTECTION %{_lv}%" parsed as enchantment types
- else:
- message "&f強化失敗..." to arg 2
- else:
- message "&f強化上限です!" to arg 2
- else:
- message "&fネザースターがありません!" to arg 2
- if arg 1 is 3:
- if arg 2 has 1 nether star:
- if level of sharpness of the arg 2's tool is less than 50:
- remove 1 nether star from arg 2's inventory
- set {_chance} to (0.1*(level of sharpness of the arg 2's tool))^2
- if chance of (100-{_chance})%:
- message "&f強化成功!" to arg 2
- message "&f強化レベル:%level of sharpness of the arg 2's tool%→%level of sharpness of the arg 2's tool +1%" to arg 2
- set {_lv} to level of sharpness of the arg 2's tool +1
- enchant the arg 2's tool with "sharpness %{_lv}%" parsed as enchantment types
- else:
- message "&f強化失敗..." to arg 2
- else:
- message "&f強化上限です!" to arg 2
- else:
- message "&fネザースターがありません!" to arg 2
- if arg is 60:
- kick all players
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement