Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on entity:
- if display name of event-entity is "&dピッケル強化":
- if player's held item is wood pickaxe:
- if {point::%player%} >= {next%player%}:
- add 1 to {upgrade%player%}
- remove {next%player%} from {point::%player%}
- remove wooden pickaxe from player
- set {next%player%} to {next%player%} * 1.7
- set {next%player%} to round({next%player%})
- set {_tool%player%} to wood pickaxe
- evaluate "enchant {_tool%player%} with efficiency %{upgrade%player%} - 1%"
- give {_tool%player%} named "&2[Level%{upgrade%player%} - 1% &l&d木ピッケル]" with lore "&e石を採掘可能" to player
- play sound "ENTITY_PLAYER_LEVELUP" to player with volume 1 and pitch 1
- send "&d[ピッケル強化]&eピッケルを強化できたぞ!"
- else:
- send "&e%{next%player%}-{point::%player%}%P足りません!" to player
- else:
- send "&eピッケルを持ってください!" to player
- on drop:
- player is not op
- cancel event
- command /resetinsuu <player>:
- permission:sk
- trigger:
- if arg exists:
- set {spawn%arg%} to 1
- set {break::%arg%} to 0
- set {point::%arg%} to 0
- set {upgrade%arg%} to 1
- set {next%arg%} to 16
- else:
- send "存在しない"
Advertisement
Add Comment
Please, Sign In to add comment