CCI

Navigation

  • Home
  • Getting Started
    • First Launch and Setup
    • Sockets: Which One To Pick
    • Finding Your Socket Key
      • Streamlabs
      • StreamElements
      • DonationAlerts
      • Twitch PubSub
      • Twitch Chat
      • YouTube Chat
    • The CCI Editor
    • Dissecting an Event
    • The Anatomy of an Event Configuration
    • Processing an Event
    • The Client Mod Config File
    • CCI on Servers
  • Intermediate Guides
    • Intermediate Difficulty, the old Advanced Difficulty
    • Getting the Most Out of Your Event Configuration
    • Constants, the Solution to Insanity
    • I'm Making A Note Here, Huge Success!
    • Debugging the PEBKAC Issue
    • Configuring a Socket Remotely with Online Configs
  • Advanced Guides
    • Advanced Difficulty, the new Advanced Difficulty
    • Libraries: Not The Book Kind
    • Debugging When Debugging Fails
    • When Variable Insertion Goes Wrong
    • Defaults: Setting Variables on Load
    • Strings: Untying the Knot
    • Arrays: The Black Sheep of Variables
  • Expert Guides
    • Expert Difficulty, for Advanced Advanced Users
    • Game Event Hooks: The Config Maker's Nightmare
  • How To's
    • How To's, a How To
    • Commonly Asked How To's
    • Capturing Twitch's Channel Point Rewards
      • The PubSub Tutorial
    • Converting a Twitch Name to Minecraft Name
  • Libraries
    • Still Not The Book Kind
  • Components
    • Event Configuration
      • Event Configuration
      • Configuration
      • Event
      • Condition
        • Condition
        • Array
          • ArrayAppendCondition
          • ArrayCombineCondition
          • ArrayCondition
          • ArrayDeleteCondition
          • ArrayExplodeCondition
          • ArrayLengthCondition
        • String
          • Unconditional
            • Base64DecodeCondition
            • Base64EncodeCondition
            • StringCompareToCondition
            • StringConcatCondition
            • StringIndexOfCondition
            • StringLengthCondition
            • StringLowerCaseCondition
            • StringReplaceCondition
            • StringSplitCondition
            • StringTrimCondition
            • StringUpperCaseCondition
          • StringContainsCondition
          • StringEndsWithCondition
          • StringEqualsCondition
          • StringStartsWithCondition
          • StringSubStringCondition
        • Variable
          • Unconditional
            • VariableInsertCondition
            • VariableRemoveCondition
          • VariableCondition
          • VariableExistsCondition
          • VariableIsArrayCondition
          • VariableIsNumberCondition
        • Unconditional
          • ArithmeticCondition
          • LocalisedStringCondition
          • LogArgsCondition
          • NullCondition
          • RandomNumberCondition
          • RandomStringCondition
          • RepeatCondition
          • RequestStatisticsCondition
        • ConditionalCondition
        • ConstantCondition
        • GameSettingsCondition
        • InventoryCondition
        • JsonSafeCondition
        • MessageCondition
        • ModExistsCondition
        • MultipleConditionCondition
        • NoteCondition
        • NotesListCondition
        • PlayerStateCondition
        • RandomCondition
        • RangedAmountCondition
        • ReadFileCondition
        • ServerCondition
        • SpecificAmountCondition
        • SpecificUserCondition
        • StatisticsCondition
        • TargetCondition
        • TargetExistsCondition
        • TwoHighSpaceCondition
      • Outcome
        • Outcome
        • CCI
          • CCIChangeProfileOutcome
          • CCIClearQueueOutcome
          • CCIFromJsonOutcome
          • CCISendEventToSocket
          • CCISendToPlayerOutcome
        • ChatMessageOutcome
        • CommandOutcome
        • ConditionalOutcome
        • ConstantOutcome
        • EventOutcome
        • FakeCrashOutcome
        • FoodOutcome
        • GameCrashOutcome
        • GameSettingsOutcome
        • HealthOutcome
        • IMCOutcome
        • InputOutcome
        • InventoryOutcome
        • KeyPressOutcome
        • MotionOutcome
        • MountOutcome
        • MultipleOutcomeOutcome
        • NarratorOutcome
        • NoteDeletionOutcome
        • NoteOutcome
        • NullOutcome
        • ObjectAccessorOutcome
        • PopupOutcome
        • PromptOutcome
        • ReadFromUrlOutcome
        • RepeatOutcome
        • SoundOutcome
        • ToastOutcome
        • WriteToFileOutcome
      • Constants
    • Game Event Config
      • Game Event Config
      • Listener
      • Object Accessor
      • Param Injector

How to: Capturing Twitch’s Channel Point Rewards

Look at you, going at 200 miles per hour.

Capturing Twitch’s Channel Point Rewards was explained in our Getting Started guide.

If you’re here for the PubSub tutorial, wondering why this is separate, it was our Getting Started tutorial, okay? Let’s keep it simple there. PubSub spits a lot more information that you might not need.

The PubSub Tutorial

If you get stuck or confused anywhere during this tutorial, it might be worth going back to the Getting Started section and going over that again. This tutorial presumes you have completed and understood the information in that section.

Have Minecraft opened and CCI connected to PubSub first. If you haven’t created your Channel Point Reward, go make it, we don’t need text input if we’re using PubSub. Now claim your reward and check your Event Viewer.

Protip
You can drag the edges of the Event Viewer window to resize the window.

Notice how we had an event trigger when we created the Reward, of event type custom-reward-created:



Anyway, this isn’t what we want, let’s look at the event when we claimed the reward, type reward-redeemed:



We need the variable redemption_reward_id and the ID itself.

Reminder
Click on the Variable listing, and hit Ctrl+C to copy the variable name, Ctrl+Shift+C for the variable value

From here, what you’re going to be doing is essentially the same as in our Getting Started guide, from Step #4 onwards, with a few differences.

Because we’re not in the Getting Started section anymore (and because I’ve been writing guides for like a week at this point and I’m getting lazy), the next couple of steps will be more concise than the Getting Started counterpart.

“4”. Go to the reward-redeemed type in the community-points-channel-v1 Configuration, name the Config Event already there as Chat and add a new Config Event and name it Toast Alert and move it above the previous one:



Also like the Chat counterpart, we’re going to need to listen to redemption_reward_id and the ID itself, so go ahead and put those in a VariableCondition. For the Outcome, you got it, a ToastOutcome



This time, we wanna consider the event done, so we will not turn on allowsOtherEventsToTrigger. Let it short circuit there.

Test it out: You got infinite Channel Points anyway aaaaaand there’s your Toast. VoilĂ .



Built with MkDocs using a custom theme. Hosted by Read the Docs. ReadTheDocs project base taken from Minecraft Forge with permission.
Enable Dark Theme