Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- #1つ目のリスト:パック番号
- #2つ目のリスト:カード番号
- set {Gacha.PackName::1} to "&a&lガチャ券"
- set {Gacha.IncludeItem::1::0} to 1 pumpkin named "&7[N]&6かぼ&r" with lore "&5---Lore---||&f普通の弱いカード||&5---効果---||&cATK:1500||&bSP:1||&f場に1匹まで出せる"
- set {Gacha.IncludeWeight::1::0} to 1750
- give a feather named "%{Gacha.PackName::1}%" to all players
- on load:
- clear {Gacha.Gacha::*}
- wait 1 tick
- loop {Gacha.PackName::*}:
- set {Gacha.GachaLong::%loop-index-1%} to 0
- loop {Gacha.IncludeItem::%loop-index-1%::*}:
- loop {Gacha.IncludeWeight::%loop-index-1%::%loop-index-2%} times:
- set {Gacha.Gacha::%loop-index-1%::%{Gacha.GachaLong::%loop-index-1%}%} to {Gacha.IncludeItem::%loop-index-1%::%loop-index-2%}
- set {Gacha.GachaLong::%loop-index-1%} to {Gacha.GachaLong::%loop-index-1%} + 1
- on right click holding feather:
- loop {Gacha.PackName::*}:
- loop-value is the name of event-item
- set {_Gacha.PackName%player%} to loop-index
- {_Gacha.PackName%player%} is set
- if player is not sneaking:
- set {_Gacha.Gacha.Chance} to random integer between 0 to {Gacha.GachaLong::%{_Gacha.PackName%player%}%} - 1
- give {Gacha.Gacha::%{_Gacha.PackName%player%}%::%{_Gacha.Gacha.Chance}%} to player
- wait 1 tick
- remove 1 of event-item from player
- else:
- if item amount of event-item is bigger than 63:
- loop 64 times:
- set {_Gacha.Gacha.Chance} to random integer between 0 to {Gacha.GachaLong::%{_Gacha.PackName%player%}%} - 1
- give {Gacha.Gacha::%{_Gacha.PackName%player%}%::%{_Gacha.Gacha.Chance}%} to player
- wait 1 tick
- remove 64 of event-item from player
- stop
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement