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 158
    • Issues 158
    • 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
    • Mobs
  • Disguises

Disguises · Changes

Page history
Use inline disguise syntax for disguise examples authored Mar 20, 2022 by Phillip's avatar Phillip
Hide whitespace changes
Inline Side-by-side
Showing with 60 additions and 62 deletions
+60 -62
  • Mobs/Disguises.md Mobs/Disguises.md +60 -62
  • No files found.
Mobs/Disguises.md
View page @ 02bebe92
......@@ -14,11 +14,12 @@ Any entity type found in the spigot docs should function correctly.
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html
## Inline Disguises
With the newer versions of MythicMobs, disguises can now be done completely inline using the same **disguise string** syntax as the in-game ``/disguise`` command. [Constructing a disguise string](https://www.spigotmc.org/wiki/lib-s-disguises-using-the-commands/#constructing-a-disguise-using-a-command).
With the newer versions of MythicMobs, disguises can now be done completely inline using the same **disguise string** syntax as the in-game ``/disguise`` command.
[Constructing a disguise string](https://www.spigotmc.org/wiki/lib-s-disguises-using-the-commands/#constructing-a-disguise-using-a-command).
For example, let's say we want a skeleton that is glowing, spinning, and on fire. To get this disguise ingame, we would use the command: ``/disguise SKELETON setGlowing setSpinning setBurning``.
We can take this command, and use it on a mob next to the disguise option, like in the example below:
```
```yml
SLSkelF:
Type: ZOMBIE
Equipment:
......@@ -31,8 +32,21 @@ SLSkelF:
Display: '&BSkeletal Fighter\n&ELv.<mob.level>'
Disguise: SKELETON setGlowing setSpinning setBurning
```
## Disguise Options
You can view additional disguise options by using `/dhelp <disguisetype>`. You can also view more information on types by using `/dhelp`.\
Examples:
```yml
#Invisible powered Creeper
/disguise creeper setPowered true setInvisible true
#Brown horse with white spots and gold armor
/disguise horse setColor brown setStyle white_dots setHorseArmor 418
This is a much neater way of doing mob disguises compared to the Options version, and matches both the disguise mechanic syntax and the disguise command syntax. If at all possible, please use this method of disguising mobs over the Options method.
#Upside-down player disguise with Notch's skin
/disguise player Dinnerbone setSkin Notch
```
## Saving Disguises
......@@ -48,50 +62,15 @@ This is a much neater way of doing mob disguises compared to the Options version
4. ``setSkin RumiExMachina.png`` is telling it to set the disguise skin to your .png file in the skins folder So if you have a skin named Goblin.png in the skins folder, use setSkin Goblin.png
5. ``setDynamicName`` is used to allow the disguise name to change often, useful when you want to display the entity's health in its name
## LEGACY: Disguise Options
### NOTE: As of MM 5.0, you must setup your disguises using inline disguise.
These options are no longer utilized in modern disguises and the documentation is preserved for historical purposes only.
All disguises have certain options available to them. These options go under the Disguises block, and can only be used in conjunction with a disguise (they will not work on their own). Some options will be mob specific. The lists of options for any entity can be found using `/dhelp <entity>`. Because this is generated by your plugin it should _always_ be up to date.
Here are some common ones that may be of interest to you:
- Disguise.Burning: true - Causes the mob to always appear to be burning
- Disguise.Blocking: true - Causes certain disguises to be stuck in the “blocking” animation.
- Disguise.Invisible: true - Makes the mob permanently invisible
- Disguise.Name: - Sets the disguised entity name
- Disguise.ShowName: true - Displays a nametag over certain disguises that would not normally have one (such as a block or item)
- Disguise.Sneaking: true - Causes certain disguises to be stuck in the “sneaking” animation.
- Disguise.Sprinting: true - Causes certain disguises to be stuck in the “sprinting” animation.
- Disguise.ModifyBoundingBox: false - Setting this to false will make mobs keep their original hitbox.
- Disguise.Glowing: [true/false] - Makes the disguise glow permanently.
- Disguise.Gliding: [true/false] - Makes the disguise glide permanently.
“Glowing” and “Gliding” were added in version 2.3.2.
Excessive Example:
```
```yml
SneakyDisguisingMob:
Type: wither_skeleton
Display: 'meh'
CustomKillMessages:
- '<target.name> was sneaked upon! (to death)'
Health: 128
Disguise:
Type: player
Skin: 'meeeh'
Player: Steve
Burning: true
Blocking: true
Invisible: false
ShowName: false
Sneaking: true
Sprinting: true
ModifyBoundingBox: false
setDynamicName: true
Disguise: player Steve setSkin meeeh.png setBurning true setSneaking true setSprinting true setModifyBoundingBox false setDynamicName true
```
#### Nameplates
......@@ -100,13 +79,11 @@ Nameplates allow you to extend the nameplates of Player-disguise mobs, which are
To use this, simply have Holograms installed and then leave out the “Player” field in your disguise (skin is still required!).
If you don't specify the player field, it will use the Display field instead using a custom nameplate.
```
```yml
Monkey:
Type: skeleton
Display: "this display name is too long for players normally"
Disguise:
Type: player
Skin: Kurdie
Disguise: player Steve setSkin Kurdie.png
```
This feature requires LibsDisguises and the Holograms plugin: [https://www.spigotmc.org/resources/holograms.4924/](https://www.spigotmc.org/resources/holograms.4924/)
......@@ -118,26 +95,47 @@ If you have premium you can use multi line disguise names using the `setDynamicN
Examples of Disguises being used:
```
MobType: skeleton
Disguise:
Type: player
Player: '&8Not Darkitect'
Skin: Darkitect
```yml
ExampleMob:
Type: skeleton
Disguise: player libraryaddict setCustomName "&8Not Darkitect" setSkin Darkitect.png
```
```
MobType: skeleton
Health: 20
Disguise:
Type: player
Player: Ashijin
Skin: Notch
```yml
ExampleMob2:
Type: skeleton
Health: 20
Disguise: player Ashijin setSkin Notch.png
```
```yml
ExampleMob3:
MobType: skeleton
Health: 20
Disguise: pig
```
MobType: skeleton
Health: 20
Disguise:
Type: pig
```
\ No newline at end of file
<!-- NOT USED ANYMORE! KEEPING THIS HERE IF ANYONE WANTS TO USE DISGUISE OPTIONS SYNTAX
## LEGACY: Disguise Options
### NOTE: As of MM 5.0, you must setup your disguises using inline disguise.
These options are no longer utilized in modern disguises and the documentation is preserved for historical purposes only.
All disguises have certain options available to them. These options go under the Disguises block, and can only be used in conjunction with a disguise (they will not work on their own). Some options will be mob specific. The lists of options for any entity can be found using `/dhelp <entity>`. Because this is generated by your plugin it should _always_ be up to date.
Here are some common ones that may be of interest to you:
- Disguise.Burning: true - Causes the mob to always appear to be burning
- Disguise.Blocking: true - Causes certain disguises to be stuck in the “blocking” animation.
- Disguise.Invisible: true - Makes the mob permanently invisible
- Disguise.Name: - Sets the disguised entity name
- Disguise.ShowName: true - Displays a nametag over certain disguises that would not normally have one (such as a block or item)
- Disguise.Sneaking: true - Causes certain disguises to be stuck in the “sneaking” animation.
- Disguise.Sprinting: true - Causes certain disguises to be stuck in the “sprinting” animation.
- Disguise.ModifyBoundingBox: false - Setting this to false will make mobs keep their original hitbox.
- Disguise.Glowing: [true/false] - Makes the disguise glow permanently.
- Disguise.Gliding: [true/false] - Makes the disguise glide permanently.
“Glowing” and “Gliding” were added in version 2.3.2.
-->
\ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Premium Features
  • Commands and Permissions
  • FAQ / Common Issues
  • Mythic Add-ons
  • Compatible Plugins
  • API Information

Mobs

  • Overview
  • Types
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Extra: Disguises
  • Extra: ModelEngine

Skills

  • Overview
  • Mechanics
  • Effects
  • Targeters
  • Triggers
  • Conditions
  • Placeholders
  • Variables

Items & Drops

  • Drops and Drop Tables
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers

Spawning

  • Spawners
  • Random Spawns

Tutorials

  • DamageSpells