Advertisement
Some_User

MyCommand Randomized Number Lottery

May 20th, 2022
924
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lottery_example:
  2.   command: /random-number
  3.   type: RUN_COMMAND
  4.   runcmd:
  5.  - "$Script$%if%$PlayerData%bucketCommand.confirmRewardForQuestion%==no"
  6.   - '$text$&8| &3Bucket&bCommand &8| &cYou do not have any reward. Add it by typing [/next-question-reward <>].'
  7.   - "$Script$%if%$arg1<10"
  8.   - "$text$&8| &3Bucket&bCommand &8| &c Argument <num> must be a number and greater than 10."
  9.   - "$Script$%if%$arg1.isanumber<and>$PlayerData%bucketCommand.confirmRewardForQuestion%==yes"
  10.   - '$delay$/mutechat'
  11.   - '$delay$/minecraft:playsound minecraft:block.lever.click voice @a'
  12.   - '/mm utilities broadcast &c '
  13.   - '/mm utilities broadcast &6Xin chào đến với &6Bucket&eLottery!'
  14.   - '/mm utilities broadcast &c '
  15.   - '$delay$/mm utilities broadcast '
  16.   - '/mm utilities broadcast &6&m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'
  17.   - '/mm utilities broadcast &e Chương trình random 1 số từ 1 - $arg1'
  18.   - '/mm utilities broadcast &e Giải thưởng: &6$PlayerData%bucketCommand.nextRewardForQuestion% '
  19.   - '/mm utilities broadcast &6&m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'
  20.   - '$delay$/mm utilities broadcast '
  21.   - '$delay$/mm utilities broadcast '
  22.   - '/mm utilities broadcast &6 Luật chơi: &ebạn chỉ được nhắn 1 số duy nhất trong phạm vi bên trên, nếu nhắn thêm 1 số bất kì nào nữa sẽ bị loại.'
  23.   - '$delay$/mm utilities broadcast '
  24.   - '$delay$/mm utilities broadcast '
  25.   - '$delay$/mm utilities broadcast '
  26.   - '/mm utilities broadcast &e Các bạn có 15 giây để ghi một số may mắn bất kì trong 3 giây tiếp. Chúc may mắn!'
  27.   - '$Script$%PlayerData%bucketCommand.amount_lotteryprize=$randomnumber%$arg1%'
  28.   - '$text$&8| &3Bucket&bCommand &8| &6Next randomized number:&e $PlayerData%bucketCommand.amount_lotteryprize%'
  29.   - '$delay$/mm utilities broadcast '
  30.   - '$delay$/mm utilities broadcast '
  31.   - '$delay$/mm utilities broadcast '
  32.   - '/mm utilities broadcast &e Bắt đầu chọn số!'
  33.   - '$delay$'
  34.   - '/mutechat'
  35.   - '$delay$/mm utilities broadcast '
  36.   - '$delay$/mm utilities broadcast '
  37.   - '$delay$/mm utilities broadcast '
  38.   - '$delay$/mm utilities broadcast '
  39.   - '$delay$/mm utilities broadcast '
  40.   - '$delay$/mm utilities broadcast '
  41.   - '$delay$/mm utilities broadcast '
  42.   - '$delay$/mm utilities broadcast '
  43.   - '$delay$/mm utilities broadcast '
  44.   - '$delay$/mm utilities broadcast '
  45.   - '$delay$/mm utilities broadcast '
  46.   - '$delay$/mm utilities broadcast '
  47.   - '$delay$/mm utilities broadcast '
  48.   - '$delay$/mm utilities broadcast '
  49.   - '$delay$/mm utilities broadcast '
  50.   - '/mutechat'
  51.   - '$delay$'
  52.   - '/mm utilities broadcast &e Đã hết thời gian chọn số! Chuẩn bị quay số!'
  53.   - '$delay$$delay$$delay$'
  54.   - '$delay$/mm utilities broadcast &7[&6Bucket&eLottery&7] &65...'
  55.   - '/minecraft:playsound minecraft:block.lever.click voice @a'
  56.   - '$delay$/mm utilities broadcast &7[&6Bucket&eLottery&7] &64...'
  57.   - '/minecraft:playsound minecraft:block.lever.click voice @a'
  58.   - '$delay$/mm utilities broadcast &7[&6Bucket&eLottery&7] &63...'
  59.   - '/minecraft:playsound minecraft:block.lever.click voice @a'
  60.   - '$delay$/mm utilities broadcast &7[&6Bucket&eLottery&7] &62...'
  61.   - '/minecraft:playsound minecraft:block.lever.click voice @a'
  62.   - '$delay$/mm utilities broadcast &7[&6Bucket&eLottery&7] &61...'
  63.   - '/minecraft:playsound minecraft:block.lever.click voice @a'
  64.   - '$delay$/mm utilities broadcast '
  65.   - '/minecraft:playsound minecraft:entity.experience_orb.pickup voice @a'
  66.   - '$delay$/mm utilities broadcast '
  67.   - '$Script$%PlayerData%bucketCommand.confirmRewardForQuestion=no'
  68.   - '/mm utilities broadcast &6&m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'
  69.   - '/mm utilities broadcast &6 Số random may mắn: &e $PlayerData%bucketCommand.amount_lotteryprize%'
  70.   - '/mm utilities broadcast &6&m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'
  71.   - '$delay$/mm utilities broadcast '
  72.   - '$delay$/mm utilities broadcast '
  73.   - '$delay$/mm utilities broadcast '
  74.   - '/mutechat'
  75.   - "$Script$%else%"
  76.   - '$text$&8| &3Bucket&bCommand &8| &c/random-number <num> - Random a number from 1 to <num>.'
  77.   delaytimer: 1
  78.   delaytimer_format: SECONDS
  79.   permission-required: true
  80.   permission-node: bucketcommand.randomnumber
  81.   error-message: '&8| &3Bucket&bCommand &8| &c/random-number <num> - Random a number from 1 to <num>.'
  82.   require_all_arguments: false
  83.   register: true
Advertisement
RAW Paste Data Copied
Advertisement