Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /addgachaitem:
- permission: admin.admin
- trigger:
- if player's tool is not set:
- message "景品に設定するアイテムを持ってください。"
- stop
- if player's tool is set:
- add player's tool to {reward::*}
- message "景品を設定しました。"
- command /removegachaitem:
- permission: admin.admin
- trigger:
- if player's tool is not set:
- message "削除するアイテムを持ってください。"
- stop
- if player's tool is set:
- loop {reward::*}:
- loop-value is player's tool
- set {_check} to 1
- remove loop-value from {reward::*}
- message "削除しました。"
- {_check} isn't set
- message "そのアイテムは景品に含まれていません。"
- on right click holding a enchanted book:
- name of player's tool is "&bドラゴンボールガチャ"
- wait a tick
- set {_re} to random element of {reward::*}
- give {_re} to player
- message "&bガチャを回しました。"
- execute console command "/clear %player% enchanted_book 0 1"
- command /gachaitemlist:
- permission: admin.admin
- trigger:
- open chest with 6 rows named "ガチャ景品リスト" to player
- set {_slot} to 0
- loop {reward::*}:
- set slot {_slot} of player's current inventory to loop-value
- add 1 to {_slot}
Advertisement
Add Comment
Please, Sign In to add comment