<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://mineplugin.org/index.php?action=history&amp;feed=atom&amp;title=Magic%2FMagicMobs</id>
	<title>Magic/MagicMobs - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://mineplugin.org/index.php?action=history&amp;feed=atom&amp;title=Magic%2FMagicMobs"/>
	<link rel="alternate" type="text/html" href="https://mineplugin.org/index.php?title=Magic/MagicMobs&amp;action=history"/>
	<updated>2026-04-10T23:53:42Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://mineplugin.org/index.php?title=Magic/MagicMobs&amp;diff=15239&amp;oldid=prev</id>
		<title>炫宙菌：​创建页面，内容为“Magic lets you create custom mobs that you can spawn into the world. There are several built-in default mobs that you can look at in the elBukkit/MagicPlugin/blob/…”</title>
		<link rel="alternate" type="text/html" href="https://mineplugin.org/index.php?title=Magic/MagicMobs&amp;diff=15239&amp;oldid=prev"/>
		<updated>2021-06-27T15:39:16Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“Magic lets you create custom mobs that you can spawn into the world. There are several built-in default mobs that you can look at in the elBukkit/MagicPlugin/blob/…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Magic lets you create custom mobs that you can spawn into the world. There are several built-in default mobs that you can look at in the [[elBukkit/MagicPlugin/blob/master/Magic/src/main/resources/examples/survival/mobs/|survival mobs]].&lt;br /&gt;
&lt;br /&gt;
Magic Mobs can have custom equipment, health, names, loot drops and health. They can also randomly cast spells.&lt;br /&gt;
&lt;br /&gt;
Magic mob loot can include magic items and Skill Points.&lt;br /&gt;
&lt;br /&gt;
== Spawning Via Command ==&lt;br /&gt;
&lt;br /&gt;
You can spawn a Magic Mob in-game at your target location with the &amp;amp;quot;mmob spawn&amp;amp;quot; command, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;/mmob spawn warlock&lt;br /&gt;
/mmob spawn mutant_captain&amp;lt;/pre&amp;gt;&lt;br /&gt;
As always, use tab-completion for options in-game!&lt;br /&gt;
&lt;br /&gt;
You can also spawn mobs from other plugins or via command blocks by providing a location:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;/mmob spawn warlock 100 64 100 world&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Customizing and Adding new Mobs ==&lt;br /&gt;
&lt;br /&gt;
You may edit the plugins/Magic/mobs.yml file to add Magic Mobs or customize existing ones, just like you would with spells or wands.&lt;br /&gt;
&lt;br /&gt;
=== Triggers ===&lt;br /&gt;
&lt;br /&gt;
Magic mobs can cast spells or run commands when certain triggers occur.&lt;br /&gt;
&lt;br /&gt;
* On a specific interval&lt;br /&gt;
* On death&lt;br /&gt;
* On damage&lt;br /&gt;
&lt;br /&gt;
For interval triggers, you may specify an interval in milliseconds with the &amp;lt;code&amp;gt;interval&amp;lt;/code&amp;gt; property.&lt;br /&gt;
&lt;br /&gt;
Spellcasting uses a probability table to randomly choose a spell to cast, commands use a simple list of commands to run.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;  interval: 5000&lt;br /&gt;
  triggers:&lt;br /&gt;
    damage:&lt;br /&gt;
      cast:&lt;br /&gt;
        push|4: 150&lt;br /&gt;
        none: 50&lt;br /&gt;
    death:&lt;br /&gt;
      cast:&lt;br /&gt;
        neutron: 10&lt;br /&gt;
        fury: 50&lt;br /&gt;
      commands: &lt;br /&gt;
      - broadcast A bomb went off!&lt;br /&gt;
      - kill @damagers&lt;br /&gt;
    interval:&lt;br /&gt;
      cast:&lt;br /&gt;
        missile|4: 20&lt;br /&gt;
        railgun: 10&lt;br /&gt;
        fury: 5&lt;br /&gt;
        none: 20&amp;lt;/pre&amp;gt;&lt;br /&gt;
Every second this mob will randomly choose a spell to cast. There is a chance it will cast nothing, otherwise it will chose to cast &amp;amp;quot;Magic Missile level 4&amp;amp;quot; (most often) Railgun (Less often) or Fury (rarely).&lt;br /&gt;
&lt;br /&gt;
On death, this mob will cast either Fury or Neutron (rarely), and execute a list of commands, killing anyone that damaged it and announcing it to the whole server.&lt;br /&gt;
&lt;br /&gt;
On damage, the mob may cast Push Level 4.&lt;br /&gt;
&lt;br /&gt;
Trigger definitions can include multiple triggers of the same type, using the &amp;amp;quot;type&amp;amp;quot; property. They may also have certain qualifiers. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;  triggers:&lt;br /&gt;
    damage1:&lt;br /&gt;
      type: damage&lt;br /&gt;
      min_health: 100&lt;br /&gt;
      cast:&lt;br /&gt;
        push|4: 150&lt;br /&gt;
        push|3: 100&lt;br /&gt;
        none: 50&lt;br /&gt;
    damage2:&lt;br /&gt;
      type: damage&lt;br /&gt;
      max_health: 100&lt;br /&gt;
      cast:&lt;br /&gt;
        missile|4: 150&lt;br /&gt;
        railgun: 100&lt;br /&gt;
        push|4: 70&lt;br /&gt;
        shell: 20&lt;br /&gt;
        none: 20&amp;lt;/pre&amp;gt;&lt;br /&gt;
This mob will get more aggressive as its health gets lower.&lt;br /&gt;
&lt;br /&gt;
Qualifiers:&lt;br /&gt;
&lt;br /&gt;
* min_health : This trigger will only fire if the mob has at least this much health&lt;br /&gt;
* max_health : This trigger will only fire if the mob has less than this much health&lt;br /&gt;
* min&amp;#039;&amp;#039;health&amp;#039;&amp;#039;percentage : This trigger will only fire if the mob has at least this much health (as a percentage of max health)&lt;br /&gt;
* max&amp;#039;&amp;#039;health&amp;#039;&amp;#039;percentage : This trigger will only fire if the mob has less than this much health (as a percentage of max health)&lt;br /&gt;
* min_damage : This trigger will only fire if the mob takes at least this much damage (only valid on damage triggers)&lt;br /&gt;
* max_damage : This trigger will only fire if the mob takes than this amount of damage (only valid on damage triggers)&lt;br /&gt;
&lt;br /&gt;
=== Command Parameters ===&lt;br /&gt;
&lt;br /&gt;
Valid parameters for commands include:&lt;br /&gt;
&lt;br /&gt;
* @x, @y, @z, @world for the location of the mob at time of death&lt;br /&gt;
* @name for the name of the mob&lt;br /&gt;
* @killer for the last player to have damaged the mob before death&lt;br /&gt;
* @damager for the player that did the most damage to the mob&lt;br /&gt;
* @damagers for all players that damaged the mob&lt;br /&gt;
&lt;br /&gt;
=== Other Magic Mob Properties ===&lt;br /&gt;
&lt;br /&gt;
* name : A custom name for a mob, which is required for most other functionality to work&lt;br /&gt;
* type : The EntityType of this mob, required.&lt;br /&gt;
* potion_effects : Permanent potion effects can be added&lt;br /&gt;
* aggro : Magic mobs who cast spells or have other special behavior will auto-target players that damage them. use &amp;amp;quot;aggro: true&amp;amp;quot; to turn on this behavior for simple magic mobs as well.&lt;br /&gt;
* health : How much health the mob has&lt;br /&gt;
* default_drops : Set to false to avoid dropping vanilla loot on death&lt;br /&gt;
* drops : A list of custom items to drop on death&lt;br /&gt;
&lt;br /&gt;
== Magic Mob Triggers ==&lt;br /&gt;
&lt;br /&gt;
Mobs can cast spells, perform commands or run effects based on some triggers. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;  interval: 1000&lt;br /&gt;
  triggers:&lt;br /&gt;
    interval:&lt;br /&gt;
      cast:&lt;br /&gt;
        missile: 20&lt;br /&gt;
        poison: 30&lt;br /&gt;
        pull: 100&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will automatically cast one spell, chosen with a weighted random pick, every second (1000 ms).&lt;br /&gt;
&lt;br /&gt;
Other available triggers include:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;spawn&amp;#039;&amp;#039;&amp;#039; : When the mob spawns&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;interval&amp;#039;&amp;#039;&amp;#039; : Every &amp;lt;code&amp;gt;interval&amp;lt;/code&amp;gt; milliseconds&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;death&amp;#039;&amp;#039;&amp;#039; : When the mob dies&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;damage&amp;#039;&amp;#039;&amp;#039; : When the mob is damaged&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;launch&amp;#039;&amp;#039;&amp;#039; : When the mob launches a projectile&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;deal_damage&amp;#039;&amp;#039;&amp;#039; : When the mob deals damage&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;kill&amp;#039;&amp;#039;&amp;#039; : When the mob kills another mob or player&lt;br /&gt;
&lt;br /&gt;
== Mob Spawner Blocks ==&lt;br /&gt;
&lt;br /&gt;
* NOTE: Due to a vanilla feature, you must be opped to place mob spawners.&lt;br /&gt;
&lt;br /&gt;
A mob spawner configured to spawn a mob with the same base type and display name as a Magic Mob (e.g. Zombie and &amp;amp;quot;Warlock&amp;amp;quot;) will spawn a magic mob instead.&lt;br /&gt;
&lt;br /&gt;
This bypasses WorldGuard and other spawn restrictions, so you can use this to set up tightly controlled dungeons with natural spawning disabled!&lt;br /&gt;
&lt;br /&gt;
See the &amp;amp;quot;spawnershop&amp;amp;quot; spell/shop or the &amp;amp;quot;warlockspawner&amp;amp;quot; item for examples.&lt;br /&gt;
&lt;br /&gt;
== Natural Spawning ==&lt;br /&gt;
&lt;br /&gt;
You can use the [[elBukkit/MagicWorlds/wiki|Magic Worlds]] plugin to have Magic Mobs spawn naturally in your worlds.&lt;br /&gt;
&lt;br /&gt;
See the [[elBukkit/MagicWorlds/blob/master/src/main/resources/examples/mixins/apocalypse.yml|Apocalypse Mix-in]] example for an idea of how to accomplish this. More documentation on MagicWorlds will be added in the future!&lt;br /&gt;
&lt;br /&gt;
== Region-Based Spawning ==&lt;br /&gt;
&lt;br /&gt;
By adding tags to spawn rules in MagicWorlds and WorldGuard regions, you can provide custom spawning per-region.&lt;br /&gt;
&lt;br /&gt;
See the [[elBukkit/MagicWorlds/blob/master/src/main/resources/examples/mixins/regions.yml|Region Mix-in]] for an example.&lt;br /&gt;
&lt;br /&gt;
In-game you would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;/region flag &amp;amp;lt;some region&amp;amp;gt; spawn-tags arena&amp;lt;/pre&amp;gt;&lt;br /&gt;
To tag the region you want these spawn rules to apply in.&lt;br /&gt;
&lt;br /&gt;
This can be combined with vanilla spawners to add Magic Mob spawners to specific areas. See http://minecraft.tools/en/spawn.php for a good spawner creation tool.&lt;br /&gt;
&lt;br /&gt;
[[MagicMobs-Custom|User-Submitted Mobs]]&lt;/div&gt;</summary>
		<author><name>炫宙菌</name></author>
	</entry>
</feed>