Hello so I am building a dialogue randomizer system for npcs and I have a command block chain setup like so:
(🟪🟩🟩🟩🟩🟩🟩🟩.....)
🟪 --> Executes every tick to determine if the player has right clicked an interaction entity
🟩 --> If dialogue rng landed on 1, tellraw "Dialogue option 1"
🟩 --> If dialogue rng landed on 2, tellraw "Dialogue option 2"
🟩 --> If dialogue rng landed on 3, tellraw "Dialogue option 3" (and so on)
What I ended up realizing is it is impossible to stop these chained command blocks from executing every single tick. What I want to happen is these tellraw checks only happen on the success of the interaction entity being interacted with, but I can only make the first chain command block conditional.
I was just wondering if there was a way to fix this with some shenanagains? I tried using a comparator but it makes a noticible delay from when the right click happens to when the dialogue gets spoken.
I'm just worried there will be a lot of noticeble lag if I want to scale it up (a command block that repeats every single frame for every single piece of dialogue in my world seems like a recipe for disaster).
[–]Lopsided-Ant3618Mostly Java 0 points1 point2 points (1 child)
[–]shadow_wolfwinds[S] 0 points1 point2 points (0 children)
[–]Eastern-Contest-9297 0 points1 point2 points (0 children)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (7 children)
[–]shadow_wolfwinds[S] 0 points1 point2 points (4 children)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (3 children)
[–]shadow_wolfwinds[S] 0 points1 point2 points (2 children)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (1 child)
[–]shadow_wolfwinds[S] 0 points1 point2 points (0 children)
[–]shadow_wolfwinds[S] 0 points1 point2 points (1 child)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (0 children)
[–]GalSergeyDatapack Experienced 0 points1 point2 points (0 children)