Changing Vanilla Mobs

MythicMobs doesn't only allow you to create custom mob creations, but will also give you the ability to change any mob that will naturally spawn in Minecraft. Doing so is quite easy; all you need to do is specify the vanilla mob you want to change in the automatically generated file VanillaMobs.yml, which is located in the folder /MythicMobs/Mobs. Then you just make the desired changes.

Generally speaking, vanilla mob overrides (which is what we're creating right here) are capeable of utilizing the entire MythicMobs arsenal of skills, options and so on. If you stumble across anything that doesn't work, please make sure that you were using correct syntax and if it still doesn't work make sure to let us know by posting about the issue in the bug report sub-forum!

Removing a mob completely (you hate Creepers)

Let's start off with simple simply and propably what you were looking for anyway: how to deny a specific mobtype from spawning.

We're assuming you hate Creepers and you want them to not spawn in your worlds at all anymore. The first thing we need to do is to find the correct mobtype string. We want to prevent creepers from spawning, so we're going to the page Mob Types and find that our correct mobtype-name is … “CREEPER”.

Now we whack that into the file:

VanillaMobs.yml

CREEPER:

Specifying a mobtype-tag is not neccessary, for obvious reasons. (right?) All we have to do left is to add a remove-mechanic set to toggle as soon the mob spawns and we'll be done.

CREEPER:
  Skills:
  - remove @self ~onSpawn

That's it. Any creeper will instantly despawn with this setup!

If you want some more mobs to be prevented from spawning, you just have to repeat this very same process for the other mobtypes. The result of that could look somewhat like this:

CREEPER:
  Skills:
  - remove @self ~onSpawn
ENDERMAN:
  Skills:
  - remove @self ~onSpawn
ZOMBIE:
  Skills:
  - remove @self ~onSpawn
...

Adding effects to a mob (lovely Zombies)

Zombies don't need to be so intimidating, right? Or maybe you wanna make your server more friendly for kids! Let's add some love to your casual mobs. First, again, grab the mob's name from the mobtype-page. Then set it up, again, in:

VanillaMobs.yml:

ZOMBIE:

Afterwards, we throw in the particle mechanic and select our desired particle (“heart” <3) from the particle types database.

ZOMBIE:
  Skills:
  - effect:particles{particle=heart;amount=1;hs=0.1;vs=0.1;y=1.5} @self ~onTimer:20 0.25

And again, we're done. As you can see it works exactly like making a completely custom mob. The example given here will create 1 heart particle around the chest/head area of the mob. It's triggered on a 20 tick1) timer, but only has a 25 % chance to be triggered. Thus it will, on average, run the skill every other 4 seconds.

Changing mob options (creepy Endermen)

You can change mob options on vanilla overrides, too. Let's make all endermen on your server a little more extra creepy, but at the same time cripple them concerning their basic abilities.

ENDERMAN:
  Options:
    PreventTeleporting: true
  Skills:
  - potion{type=INVISIBILITY;duration=630720000;level=0} @self ~onSpawn

This example will prevent endermen on your server to use their teleportation abilities. Note that these settings will only apply to mobs spawned by Minecraft. Any other custom enderman creations you make will be unaffected by vanilla overrides.

Further, the endermen will use the potion-mechanic on itself upon spawn, which will render it invisible for 630720000 ticks. That, at first, might seem but a random number, but it's the equivalent of 1 year real-time converted into game ticks. Because why not.

The endermen won't be completely invisible however. You will still be able to see the eyes of them. Kinda works like invisible spiders. Creepy as hell.

Changing stats (...)

This goes without further saying; you also edit all the stats on vanilla overrides. Just like this (and just like any custom mob creation):

ZOMBIE:
  Health: 200
  Damage: 20
  Armor: 5
  Options:
    MovementSpeed: 0.25
    FollowRange: 137
    Silent: true
  Skills:
  - jump{v=0.5} ~onTimer:140

1)
20 ticks = 1 second
tutorials/vanillaoverrides.txt · Last modified: 2016/03/09 15:16 (external edit)
GNU Free Documentation License 1.3
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0