Customizing Entities

<font size=3>
That'ssss a nice entity you have there. It'd be a sssshame if anything were to... cusssstomizzzze it...

</font>

/spawn Cow

Pastoral, vocal, nutritious... yes, everyone loves a good cow. But wouldn't they be cooler if there were... more?

/spawn Cow 10

...and on fire?

/spawn Cow/f:100 20

...while raining down upon the unsuspecting villagers?

/spawn Cow/f:100/v:3 50

This is the joy of customizing entities. Here is the list of parameters you can use when you type commands for spawning entities:

Customizing Your Entities

MnemonicParameterPermission

Angry (Powered)

/Aspawn.angry
This Entity is angry and easily (or already) provoked. If the entity doesn't support the setAngry method but does support the setPower method (e.g. creepers), they will be powered.

Bounce

/Bspawn.bounce
Used for projectiles (arrows) - doesn't seem to have any measurable effect so far. It's supposed to make the projectile bounce.

Color

/C:COLOR or /C:NUMBERspawn.color
At the moment, only sheep have a setColor function. You can specify a color code (0-15, NOT the same as for other mods) or a name (BLUE). Here's the list: <center>
    WHITE ORANGE MAGENTA LIGHT_BLUE YELLOW LIME PINK GRAY SILVER CYAN PURPLE BLUE BROWN GREEN RED BLACK
</center>

Fire/Fuse

/F:SECONDSspawn.fire
The entity will be on fire for this many SECONDS. If the entity supports the setFuseTicks method (e.g. primed TNT :D) this will let you set the fuse timer.

Health

/H:NUMBER or /H:PERCENTspawn.health
You can do it two ways, e.g. /h:10 or /h:100%. A percentage means that the entity will be at that percentage of normal health. A number means that the health will be directly set to that number. Health appears to have a Notch-imposed maximum, so we cannot use this to create super-mobs (yet)

Item

/I:TYPE,AMOUNT,DAMAGE,DATAspawn.item
Only applicable to Items! e.g. /spawn Item/i:17 will give you a log. It seems for most purposes Data gets assigned to Damage anyway, so one or the other of these parameters may be removed. Please note that typing /spawn Item/i:17,100 spawns a single item with 100 trees in it. This is more efficient than typing /spawn Item/i:17 100, which would make a hundred copies of one item. I mean...unless you *want* to...

Mount

/Mspawn.mount
Entity will be mounted. Right now, only pigs support the setSaddle method.

Naked

/Nspawn.naked
Entity will be naked. If used on a player, strips them of their armor. Other than that, only sheep support the setSheared method.

Owner

/O:ONLINEPLAYERspawn.owner
Entity will be tamed and will belong to an owner. Right now, only wolves have setTamed and setOwner. If you run /o without a name, the animal will act tamed and owned but will belong to no one (Whose dog IS that??? dang it!). Only supports players currently online :(

Size

/S:NUMBERspawn.size
Entity will have the specified size. Restricted by sizeLimit in config. Right now, only slimes have a setSize method.

Target

/T:ONLINEPLAYERspawn.target
Entity will target specified player. If friendly, entity will affectionately nuzzle the target; if hostile, entity will attack. Wolves and zombie pigmen will also attack if this parameter is used.

Velocity (random)

/V:NUMBERspawn.velocity
Entity will be given specified velocity and a random upwards-ish direction when spawned. Can be combined with specified velocity to add randomness! (e.g. random velocity is added to specified velocity to create entity explosion effects)

Velocity (specified)

/V:XNUM,YNUM,ZNUMspawn.velocity
Entity will be given specified velocity and direction. Can be combined with random velocity to add randomness! (e.g. random velocity is added to specified velocity to create entity explosion effects)

Comments

Posts Quoted:
Reply
Clear All Quotes