Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /bet [<text>]:
- trigger:
- if arg-1 is not set:
- open chest with 3 rows named "&2&lROULETTE" to player
- wait 3 ticks
- if inventory name of player's current inventory is "&2&lROULETTE":
- loop integers from 0 to 26:
- format slot loop-number of player with white stained glass pane named "&r" to be unstealable
- if {roulette.igang} is true:
- format slot 13 of player with 166 named "&4&lIGANG" with lore "&cSpillet er allerede igang." to be unstealable
- stop
- if {roulette::%uuid of player%} is true:
- format slot 13 of player with 166 named "&4&lJOINET" with lore "&cDu er allerede joinet." to be unstealable
- stop
- format slot 11 of player with black stained glass pane named "&8&lSORT" with lore "&7Chance&8: &750%%||&7Ganger&8: &72x" to close then run [ make player execute command "bet sort"]
- format slot 13 of player with red stained glass pane named "&4&lRØD" with lore "&7Chance&8: &750%%||&7Ganger&8: &72x" to close then run [ make player execute command "bet rød"]
- format slot 15 of player with light green stained glass pane named "&4&lRØD" with lore "&7Chance&8: &73%%||&7Ganger&8: &710x" to close then run [ make player execute command "bet grøn"]
- if arg-1 is "Rød":
- if {roulette::%uuid of player%} is true:
- send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
- stop
- if {nummer.roulette::%uuid of player%} is set:
- send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
- stop
- set {nummer.roulette::%uuid of player%} to "Rød"
- close player's inventory
- send "&8&m--------------------------"
- send ""
- send "&7Skriv det antal penge du vil bette i chatten."
- send "&7Skriv 'Nej' i chatten, hvis du ikke vil."
- send ""
- send "&8&m--------------------------"
- if arg-1 is "Grøn":
- if {roulette::%uuid of player%} is true:
- send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
- stop
- if {nummer.roulette::%uuid of player%} is set:
- send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
- stop
- set {nummer.roulette::%uuid of player%} to "Grøn"
- close player's inventory
- send "&8&m--------------------------"
- send ""
- send "&7Skriv det antal penge du vil bette i chatten."
- send "&7Skriv 'Nej' i chatten, hvis du ikke vil."
- send ""
- send "&8&m--------------------------"
- if arg-1 is "Sort":
- if {roulette::%uuid of player%} is true:
- send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
- stop
- if {nummer.roulette::%uuid of player%} is set:
- send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
- stop
- set {nummer.roulette::%uuid of player%} to "Sort"
- close player's inventory
- send "&8&m--------------------------"
- send ""
- send "&7Skriv det antal penge du vil bette i chatten."
- send "&7Skriv 'Nej' i chatten, hvis du ikke vil."
- send ""
- send "&8&m--------------------------"
- on chat:
- cancel event
- if {nummer.roulette::%uuid of player%} is "Rød":
- if message is "Nej":
- delete {nummer.roulette::%uuid of player%}
- send "&8[&4Casino&8] &7Du gik ud af rouletten."
- stop
- else:
- execute player command "bete rød %message%"
- stop
- if {nummer.roulette::%uuid of player%} is "Sort":
- if message is "Nej":
- delete {nummer.roulette::%uuid of player%}
- send "&8[&4Casino&8] &7Du gik ud af rouletten."
- stop
- else:
- execute player command "bete sort %message%"
- stop
- if {nummer.roulette::%uuid of player%} is "Grøn":
- if message is "Nej":
- delete {nummer.roulette::%uuid of player%}
- send "&8[&4Casino&8] &7Du gik ud af rouletten."
- stop
- else:
- execute player command "bete grøn %message%"
- stop
- else:
- send "%player's displayname%&8: &7%message%"
- command /bete [<text>] [<number>]:
- trigger:
- if {roulette.igang} is set:
- send "&8[&4Casino&8] &7Du kan ikke joine når den allerede er igang."
- stop
- if {roulette::%uuid of player%} is set:
- send "&8[&4Casino&8] &7Du er allerede joinet"
- stop
- else:
- if arg-1 is not set:
- stop
- else:
- if arg-2 is not set:
- stop
- else:
- if arg-1 is "rød" or "red":
- if arg-2 is a number:
- if player's balance is greater or equal to arg-2:
- subtract arg-2 from player's balance
- send "&8[&4Casino&8] &7Du joinede &cRød&7 med et bet på &a$%arg-2%"
- set {rød.roulette::%uuid of player%} to true
- delete {sort.roulette::%uuid of player%}
- delete {grøn.roulette::%uuid of player%}
- set {roulette::%uuid of player%} to true
- set {penge.roulette::%uuid of player%} to arg-2
- delete {nummer.roulette::%uuid of player%}
- stop
- else:
- send "&8[&4Casino&8] &7Du har ikke nok penge"
- stop
- else:
- send "&8[&4Casino&8] &7Du skal skrive et rigtigt tal."
- stop
- if arg-1 is "sort" or "black":
- if arg-2 is a number:
- if player's balance is greater or equal to arg-2:
- subtract arg-2 from player's balance
- send "&8[&4Casino&8] &7Du joinede &8Sort&7 med et bet på &a$%arg-2%"
- set {sort.roulette::%uuid of player%} to true
- delete {rød.roulette::%uuid of player%}
- delete {grøn.roulette::%uuid of player%}
- set {roulette::%uuid of player%} to true
- set {penge.roulette::%uuid of player%} to arg-2
- delete {nummer.roulette::%uuid of player%}
- stop
- else:
- send "&8[&4Casino&8] &7Du har ikke nok penge"
- stop
- else:
- send "&8[&4Casino&8] &7Du skal skrive et rigtigt tal."
- stop
- if arg-1 is "grøn" or "green":
- if arg-2 is a number:
- if player's balance is greater or equal to arg-2:
- subtract arg-2 from player's balance
- send "&8[&4Casino&8] &7Du joinede &aGrøn&7 med et bet på &a$%arg-2%"
- set {grøn.roulette::%uuid of player%} to true
- delete {rød.roulette::%uuid of player%}
- delete {sort.roulette::%uuid of player%}
- set {roulette::%uuid of player%} to true
- set {penge.roulette::%uuid of player%} to arg-2
- delete {nummer.roulette::%uuid of player%}
- stop
- else:
- send "&8[&4Casino&8] &7Du har ikke nok penge"
- stop
- else:
- send "&8[&4Casino&8] &7Du skal skrive et rigtigt tal."
- stop
- command /rollsetloc [<text>]:
- permission: *
- permission message: &cDu har ikke adgang til dette.
- trigger:
- if arg-1 is "1":
- set {roll.location::1} to location of target block
- if arg-1 is "2":
- set {roll.location::2} to location of target block
- if arg-1 is "3":
- set {roll.location::3} to location of target block
- if arg-1 is "4":
- set {roll.location::4} to location of target block
- if arg-1 is "5":
- set {roll.location::5} to location of target block
- command /roll:
- permission: *
- permission message: &cDu har ikke adgang til dette.
- trigger:
- if (size of {roulette::*}) is greater or equal to 1:
- set {_reel1} to a random integer between 0 and 100
- set {roulette.igang} to true
- if {_reel1} is between 0 and 48:
- loop 10 times:
- add 1 to {_resut1}
- delete {_rew}
- chance of 10%:
- set {_rew} to true
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- if {_rew} is true:
- set block at {roll.location::1} to green stained clay
- else:
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- set block at {roll.location::1} to red stained clay
- if {_rew} is true:
- set block at {roll.location::2} to green stained clay
- else:
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- if {_rew} is true:
- set block at {roll.location::3} to green stained clay
- else:
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- if {_rew} is true:
- set block at {roll.location::4} to green stained clay
- else:
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- if {_rew} is true:
- set block at {roll.location::5} to green stained clay
- else:
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- if {_resut1} is 10:
- if block at {roll.location::3} is black stained clay:
- loop all players:
- if {roulette::%{uuid::%loop-player%}%} is true:
- if {sort.roulette::%{uuid::%loop-player%}%} is true:
- add {penge.roulette::%{uuid::%loop-player%}%} to loop-player's balance
- add {penge.roulette::%{uuid::%loop-player%}%} to loop-player's balance
- send "&8[&4Casino&8] &7Du vandt dit bet på &8Sort&7 og fik &a$%{penge.roulette::%{uuid::%loop-player%}%} * 2%&7 ud af det"
- delete {roulette::%uuid of loop-player%}
- delete {penge.roulette::%{uuid::%loop-player%}%}
- else:
- send "&8[&4Casino&8] &7Du tabte dit bet på &a$%{penge.roulette::%{uuid::%loop-player%}%}%"
- delete {roulette::%uuid of loop-player%}
- delete {penge.roulette::%{uuid::%loop-player%}%}
- delete {roulette.igang}
- stop
- if {_reel1} is between 49 and 95:
- loop 10 times:
- add 1 to {_resut2}
- delete {_rew}
- chance of 10%:
- set {_rew} to true
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- if {_rew} is true:
- set block at {roll.location::1} to green stained clay
- else:
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- set block at {roll.location::1} to black stained clay
- if {_rew} is true:
- set block at {roll.location::2} to green stained clay
- else:
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- if {_rew} is true:
- set block at {roll.location::3} to green stained clay
- else:
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- if {_rew} is true:
- set block at {roll.location::4} to green stained clay
- else:
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- if {_rew} is true:
- set block at {roll.location::5} to green stained clay
- else:
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- if {_resut2} is 10:
- if block at {roll.location::3} is red stained clay:
- loop all players:
- if {roulette::%{uuid::%loop-player%}%} is true:
- if {rød.roulette::%{uuid::%loop-player%}%} is true:
- add {penge.roulette::%{uuid::%loop-player%}%} to loop-player's balance
- add {penge.roulette::%{uuid::%loop-player%}%} to loop-player's balance
- send "&8[&4Casino&8] &7Du vandt dit bet på &cRød&7 og fik &a$%{penge.roulette::%{uuid::%loop-player%}%} * 2%&7 ud af det"
- delete {roulette::%uuid of loop-player%}
- delete {penge.roulette::%{uuid::%loop-player%}%}
- else:
- send "&8[&4Casino&8] &7Du tabte dit bet på &a$%{penge.roulette::%{uuid::%loop-player%}%}%"
- delete {roulette::%uuid of loop-player%}
- delete {penge.roulette::%{uuid::%loop-player%}%}
- delete {roulette.igang}
- stop
- else:
- loop 10 times:
- add 1 to {_resut3}
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- if {_resut3} is 10:
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- set block at {roll.location::1} to green stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to green stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to green stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- else:
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- set block at {roll.location::1} to red stained clay
- set block at {roll.location::2} to black stained clay
- set block at {roll.location::3} to red stained clay
- set block at {roll.location::4} to black stained clay
- set block at {roll.location::5} to red stained clay
- wait 10 ticks
- set block at {roll.location::1} to black stained clay
- set block at {roll.location::2} to red stained clay
- set block at {roll.location::3} to black stained clay
- set block at {roll.location::4} to red stained clay
- set block at {roll.location::5} to black stained clay
- wait 10 ticks
- if {_resut3} is 10:
- if block at {roll.location::3} is green stained clay:
- loop all players:
- if {roulette::%{uuid::%loop-player%}%} is true:
- if {grøn.roulette::%{uuid::%loop-player%}%} is true:
- loop 10 times:
- add {penge.roulette::%{uuid::%loop-player%}%} to loop-player's balance
- send "&8[&4Casino&8] &7Du vandt dit bet på &aGrøn&7 og fik &a$%{penge.roulette::%{uuid::%loop-player%}%} * 10%&7 ud af det"
- delete {roulette::%uuid of loop-player%}
- delete {penge.roulette::%{uuid::%loop-player%}%}
- else:
- send "&8[&4Casino&8] &7Du tabte dit bet på &a$%{penge.roulette::%{uuid::%loop-player%}%}%"
- delete {roulette::%uuid of loop-player%}
- delete {penge.roulette::%{uuid::%loop-player%}%}
- delete {roulette.igang}
- on quit:
- delete {penge.roulette::%{uuid::%player%}%}
- delete {rød.roulette::%{uuid::%player%}%}
- delete {grøn.roulette::%{uuid::%player%}%}
- delete {sort.roulette::%{uuid::%player%}%}
- delete {roulette::%{uuid::%player%}%}
Advertisement
Add Comment
Please, Sign In to add comment