rectangle-terminalCommand

Very easy, I don't think it needs explaining.

config/
└── CobbleBetterNPC/
    ├── NPC/                 ← NPC JSON Files
{
  "id": "cobblebetternpc:full_example",
  "type": "command",
  "resourceIdentifier": "cobblemon:standard",
  "names": [
    "Reward NPC"
  ],
  "presets": [
    "cobblebetternpc:looks_around"
  ],
  "interaction": {
    "type": "command",
    "options": [
      {
        "name": "Complete Reward Sequence",
        "permission": "",
        "with": "1",
        "commands": [
          // [message] - Sends formatted chat message to player
          // Supports & color codes and hex colors (#RRGGBB)
          "[message] &a✨ &6Welcome back, %player%! &a✨",
          
          // [delay]X - Delays next action by X ticks (20 ticks = 1 second)
          "[delay]10 [sound] minecraft:entity.player.levelup",
          
          // [sound] - Plays sound at player's location
          // Format: [namespace]:sound.path
          "[delay]5 [sound] minecraft:entity.experience_orb.pickup",
      
          // [command] - Executes server command as console"
          // %player% placeholder replaced with player's username"
          "[delay]10 [command] give %player% minecraft:emerald 5",
          
          // [title] - Shows title/subtitle (separated by |)
         // Format: [title] Main Title|Subtitle Text
          "[delay]15 [title] &a&lREWARD!|&e+5 Emeralds",
          
          // [chance]X - Executes action with X% probability
          // This has 30% chance to trigger
          "[delay]25 [chance]30 [message] &d&lLUCKY! &7You found a bonus item!",
          "[delay]30 [chance]30 [command] give %player% minecraft:diamond 1",
          
          // [random] - Picks one random option from { }
          // Options separated by | inside curly braces
          "[delay]40 [message] [random]{&bNice!|&dAwesome!|&6Fantastic!} Keep playing!",
          
          // Multiple modifiers can be combined
          // This has 50% chance AND 2-second delay (40 ticks)
          "[delay]40 [chance]50 [delay]40 [sound] minecraft:entity.firework_rocket.large_blast",
          
          // Final message with line break using \\n
          "[delay]50 [message] &7Daily rewards reset in 24 hours.\\n&8Come back tomorrow!"
        ]
      }
    ]
  }
}

Last updated