Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 146
    • Issues 146
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Guides
  • Making an NPC

Making an NPC · Changes

Page history
standardized hyperlink format authored Mar 27, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 2 additions and 2 deletions
+2 -2
  • Guides/Making-an-NPC.md Guides/Making-an-NPC.md +2 -2
  • No files found.
Guides/Making-an-NPC.md
View page @ 62c07632
...@@ -23,7 +23,7 @@ NPC_Steve: ...@@ -23,7 +23,7 @@ NPC_Steve:
- `NPC_Steve` This is what you'll use to spawn your NPC. /mm m spawn NPC_Steve - `NPC_Steve` This is what you'll use to spawn your NPC. /mm m spawn NPC_Steve
- `Type: ARMOR_STAND` You can use whatever you like but we'll be using armor stand since it has no AI, no sound etc. - `Type: ARMOR_STAND` You can use whatever you like but we'll be using armor stand since it has no AI, no sound etc.
- `Display: 'Steve'` This is what will appear above your NPC's head. - `Display: 'Steve'` This is what will appear above your NPC's head.
- `Disguise: Player Steve setDynamicName true` This is what makes our NPC look like a player. You can replace "Steve" with whatever player name you want. You must keep the setDynamicName as true so the NPC can use the Display setting. For more information about using custom skins [read here](Mobs/Disguises) - `Disguise: Player Steve setDynamicName true` This is what makes our NPC look like a player. You can replace "Steve" with whatever player name you want. You must keep the setDynamicName as true so the NPC can use the Display setting. For more information about using custom skins [read here](/Mobs/Disguises)
- `AlwaysShowName: true` This makes the nameplate show above your NPC. - `AlwaysShowName: true` This makes the nameplate show above your NPC.
- `Collidable: false` This stops the NPC from being pushed around. - `Collidable: false` This stops the NPC from being pushed around.
- `Despawn: persistent` This will keep your NPC spawned on reloads, restarts and chunk unloads. - `Despawn: persistent` This will keep your NPC spawned on reloads, restarts and chunk unloads.
...@@ -32,7 +32,7 @@ For the skills we are using a cancelevent onDamaged to stop the mob from taking ...@@ -32,7 +32,7 @@ For the skills we are using a cancelevent onDamaged to stop the mob from taking
# Step 2 - Adding messages and commands # Step 2 - Adding messages and commands
You can add messages or commands to your NPC using the [Message](Skills/mechanics/message) and [Command](Skills/mechanics/command) mechanics. For this guide we will be using @trigger and onInteract which will show the message or run the command for a user who right clicks the NPC. When you are testing make sure you're in SURVIVAL mode as creative mode players wont be targetable. You can add messages or commands to your NPC using the [Message](/Skills/mechanics/message) and [Command](/Skills/mechanics/command) mechanics. For this guide we will be using @trigger and onInteract which will show the message or run the command for a user who right clicks the NPC. When you are testing make sure you're in SURVIVAL mode as creative mode players wont be targetable.
### Message ### Message
```yaml ```yaml
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
  • Pins
Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • Particles Types
  • Audience
Examples
Useful Tips