GospelBG / ChatPointsTTV

Integrate your world with your Twitch stream. Minecraft in-game interactions through Twitch Channel Points, Bits, Subs and more!
https://modrinth.com/plugin/chatpointsttv
GNU General Public License v3.0
12 stars 1 forks source link

[BUG] Wrong order in Gift Rewards #20

Open Iserion opened 1 month ago

Iserion commented 1 month ago

Here is my config for sub gifts :

GIFT_REWARDS:
  1:
    - RUN CONSOLE execute at @a run playsound minecraft:entity.witch.celebrate master @s ~ ~ ~ 1 1 1
    - RUN CONSOLE execute as @a at @s[gamemode=survival] run particle minecraft:cloud ~ ~1 ~ 1 1 1 0.1 1000 force @s
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
  5:
    - RUN CONSOLE execute at @a run playsound minecraft:entity.witch.celebrate master @s ~ ~ ~ 1 1 1
    - RUN CONSOLE execute as @a at @s[gamemode=survival] run particle minecraft:cloud ~ ~1 ~ 1 1 1 0.1 1000 force @s
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
  10:
    - RUN CONSOLE execute at @a run playsound minecraft:entity.witch.celebrate master @s ~ ~ ~ 1 1 1
    - RUN CONSOLE execute as @a at @s[gamemode=survival] run particle minecraft:cloud ~ ~1 ~ 1 1 1 0.1 1000 force @s
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon skeleton ~ ~ ~ {HandItems:[{id:"minecraft:bow",Count:1b}],ArmorItems:[{},{},{},{id:iron_helmet,count:1}],ArmorDropChances:[0f,0f,0f,0f]}
    - RUN CONSOLE execute at @a[gamemode=survival] run summon creeper ~ ~ ~
    - RUN CONSOLE execute at @a[gamemode=survival] run summon creeper ~ ~ ~
    - RUN CONSOLE execute at @a[gamemode=survival] run summon creeper ~ ~ ~
  20:
    - RUN CONSOLE execute at @a run playsound minecraft:entity.witch.celebrate master @s ~ ~ ~ 1 1 1
    - RUN CONSOLE execute as @a at @s[gamemode=survival] run particle minecraft:cloud ~ ~1 ~ 1 1 1 0.1 1000 force @s
    - RUN CONSOLE kill @r[gamemode=survival]
  50:
    - RUN CONSOLE execute at @a run playsound minecraft:entity.witch.celebrate master @s ~ ~ ~ 1 1 1
    - RUN CONSOLE execute as @a at @s[gamemode=survival] run particle minecraft:cloud ~ ~1 ~ 1 1 1 0.1 1000 force @s
    - RUN CONSOLE kill @a[gamemode=survival]

my problem is that when i offer one sub, it execute the 50 sub gifts commands, any explanation ?

GospelBG commented 1 month ago

Thanks for reporting the bug. I'll take a look at it tomorrow. I will also answer to your other issue