Mob Spawner Modification Commands
This plugin provides a complete set of commands to modify anything and everything about mob spawners and the spawned entities.
- Change simple things like spawn rate.
- Or the entity spawned.
- Or where the entity spawns.
- Or what the entity is holding.
- And so much more!
All from within the game. No exiting out to MCEdit or another NBT Editor, making your changes, uploading the new world, and restarting the server. Just nice simple commands, with instant results.
Documentation
Basic commands are /spawner
, /tool
, /mob-modifier
, /mob-specific
, /entity
, and /entity-specific
. I hope those are pretty self explanatory as to what they contain.
Currently, there’s only permission available, which is msm.modify
and it defaults to OP.
Most of the command arguments are the same as the NBT properties, and function the same.
Commands
View command documentation
/display [property]
Usage of this command requires strict knowledge of the NBT tag structure. Unlike the rest of these commands, proper capitalization and spelling is essential for this command to output the correct property value. Syntax is simple. (Ex. /display SpawnData Health
). Valid NBT tags can be found here, under Mob Spawner. Any properties relating to entites should go under SpawnData, like in the example shown. Properties relating to the spawner itself can be done like so. (Ex. /display EntityId
)
/tool [tool]
- Copy: If the players held item is empty, it gives them this tool. Otherwise, it sets the players currently held item to this tool. This tool allows the player to copy all the attributes of a spawner, and paste those attributes onto a different one. Right click a spawner with the tool in hand to copy, and shift right-click to paste.
- Position: If the players held item is empty, it gives them this tool. Otherwise, it sets the players currently held item to this tool. This tool allows for easy modification of the coordinates where an entity will spawn, without entering precise coordinates. Simply right-click with this tool in hand to set the coordinates to the Player’s current coordinates. Right-clicking on a spawner will set those coordinates to the spawner.
/spawner [property] [value]
- EntityId: Takes the name of the entity to be spawned. Takes mobs and other entities (ie. ARROW, PRIMED_TNT, List at the bottom)
- SpawnCount: Amount of entities to be spawned each time the spawner activates (roughly spawns this amount, depends on amount of nearby entities)
- SpawnRange: Range of blocks the entities will spawn in, moves out from spawner block, not counting spawner (1 would be the immediate blocks around the spawner)
- Delay: # of ticks until next spawn. Setting to 1 will cause immediate spawn.
- MinSpawnDelay: Minimum amount of ticks until next spawn.
- MaxSpawnDelay: Maximum amount of ticks until next spawn (CAN’T BE 0. CAUSES CRASH! Must be 1 or above).
- MaxNearbyEntites: Maximum of entities allowed around the spawner (if this number is reached, new entites won’t spawn)
- RequiredPlayerRange: Range in which players are detected for spawner activation.
/entity [property] [value]
- Pos/Position: Takes the x, y, and z coordinates respectively to spawn the entity at. (Ex.
/entity pos 100 12 0
) Alternatively, (/entity pos player
) will set the coordinates to the current player position/ - Motion: Takes the x, y, and z velocity amounts to apply to the entity when first spawned.
- Rotation: takes the yaw and pitch values respectively (Ex.
/entity rotation [0-360] [-90 - 90]
) can also use (/entity rotation player
) to apply the current yaw/pitch of the player. - FallDistance: amount of blocks the entity is set to have fallen upon spawn.
- Fire: Amount of ticks the entity has until fire is extinguished. Setting to a negative number will set that many ticks until the mob can be set on fire.
- Air: Amount of air left (0 – 200 I believe)
- OnGround: Takes a boolean value (0/1) whether the entity is on the ground when spawned (just a value, won’t actually place on ground. Will be overwritten if the entity spawns in the air)
- Dimension: Sets the dimension the entity is in. Pointless, since dimensions aren’t handled this way. Won’t do anything.
- Invulnerable: Takes boolean value (0/1) whether the entity will be invulnerable. Not all entities accept this flag.
- PortalCooldown: Amount of ticks until entity can next use portal.
/mob-modifier [property] [value]
- Health: Amount of half-hearts the entity has. Setting to zero will kill the entity on update.
- AttackTime:
- HurtTime:
- DeathTime:
- CanPickUpLoot: Boolean value (0/1) whether the entity can pickup items (zombies will hold any picked up items)
- PersistenceRequired: Boolean value (0/1) whether the entity should be persistant (won’t despawn).
- InLove: Ticks until no longer in love (while in love, mobs/villagers will attempt to breed)
- Age: Age of the entity in ticks. If negative, baby mob.
- Owner: Takes string to define the owner of the mob. Only used with wolves to determine owner.
- Sitting: Only on wolves, determines whether the wolf will spawn sitting.
- PotionEfects: Takes more arguments after this.
- Add: Takes the potion effect id (List at the bottom), the amplifier (starts at 0) and the duration in ticks.
- Remove: Takes the line number of the potion to be removed. Numbers gotten with get command.
- Get: Returns the potion effects to be applied, with numbers. Numbers used with Remove command.
- Equip:
- Set:
- [Held/Head/Chest/Legs/Feet]: This command will set the item in the defined slot to whatever the player is currently holding. Item damage, enchantments, name, lore, and leather armor color will all carry over.
- Remove
- [Held/Head/Chest/Legs/Feet]: Simply clears the defined item slot.
- Get: Returns the items worn/held
- Set:
- DropChances: Takes more arguments after this. (WARNING: May not be functional.)
- Held: Takes value between 0 and 1. Probability of item dropping.
- Feet: Takes value between 0 and 1. Probability of item dropping.
- Legs: Takes value between 0 and 1. Probability of item dropping.
- Chest: Takes value between 0 and 1. Probability of item dropping.
- Head: Takes value between 0 and 1. Probability of item dropping.
/mob-specific [property] [value]
WARNING: Checks for the values are not implemented, so be sure you’re using the proper value to avoid errors/crashing.
- Bat:
- BatFlags: Takes boolean value (0/1) whether the bat should spawn hanging.
- Creeper:
- Powered: Takes boolean value (0/1) whether the creeper should spawn with the powered effect.
- ExplosionRadius: Takes the radius that the explosion should reach out to.
- Fuse: Amount of ticks until the creeper explodes once activated.
- Enderman:
- Carried: Takes block material (at the bottom), or block id, that the enderman will spawn carrying.
- CarriedData: Takes the metadata value (number) of the carried block.
- Ozelot:
- CatType: Skin of the spawned cat (number).
- Slime/LavaSlime (both work)
- Size: Takes size of the spawned slime (number)
- Pig:
- Saddle: Takes boolean value (0/1) whether the pig will spawn with a saddle.
- Zombie/PigZombie (both work)
- isVillager: Takes boolean value (0/1) whether the zombie will be a zombie villager (only applies to zombies)
- isBaby: Takes boolean value (0/1) whether the zombie/pig zombie will spawn as a baby.
- ConversionTime: Takes amount of ticks until zombie villager is cured
- Anger: Amount of anger…? Applies to pig zombies
- Sheep:
- Sheared: Takes boolean value (0/1) whether the sheep will spawn sheared.
- Color: Takes color value (number, list at bottom)
- Skeleton:
- SkeletonType: Determines skeleton type (0 = normal skeleton, 1 = wither skeleton)
- Wither/WitherBoss (both work)
- Invul: Number of ticks until invulnerability effect wears off.
- Wolf:
- Angry: Boolean value (0/1) whether wolf spawns angry.
- CollarColor: Number value of color (list below)
- VillagerGolem/IronGolem (both work)
- PlayerCreated: boolean value (0/1) whether the golem was created by the player
/entity-specific [property] [value]
- PrimedTnt:
- Fuse: Amount of ticks until TNT detonates
- FallingSand:
- Tile: Block id to mimic.
- Data: Metadata for block being mimiced.
- Time:
- DropItem: Boolean value (0/1) whether it’ll drop an item if broken.
Blocks
View list of block IDs
Word is the block name. The number in parenthesis is the block ID.
- STONE(1)
- GRASS(2)
- DIRT(3)
- COBBLESTONE(4)
- WOOD(5)
- SAPLING(6)
- BEDROCK(7)
- WATER(8)
- STATIONARY_WATER(9)
- LAVA(10)
- STATIONARY_LAVA(11)
- SAND(12)
- GRAVEL(13)
- GOLD_ORE(14)
- IRON_ORE(15)
- COAL_ORE(16)
- LOG(17)
- LEAVES(18)
- SPONGE(19)
- GLASS(20)
- LAPIS_ORE(21)
- LAPIS_BLOCK(22)
- DISPENSER(23)
- SANDSTONE(24)
- NOTE_BLOCK(25)
- BED_BLOCK(26)
- POWERED_RAIL(27)
- DETECTOR_RAIL(28)
- PISTON_STICKY_BASE(29)
- WEB(30)
- LONG_GRASS(31)
- DEAD_BUSH(32)
- PISTON_BASE(33)
- PISTON_EXTENSION(34)
- WOOL(35)
- PISTON_MOVING_PIECE(36)
- YELLOW_FLOWER(37)
- RED_ROSE(38)
- BROWN_MUSHROOM(39)
- RED_MUSHROOM(40)
- GOLD_BLOCK(41)
- IRON_BLOCK(42)
- DOUBLE_STEP(43)
- STEP(44)
- BRICK(45)
- TNT(46)
- BOOKSHELF(47)
- MOSSY_COBBLESTONE(48)
- OBSIDIAN(49)
- TORCH(50)
- FIRE(51)
- MOB_SPAWNER(52)
- WOOD_STAIRS(53)
- CHEST(54)
- REDSTONE_WIRE(55)
- DIAMOND_ORE(56)
- DIAMOND_BLOCK(57)
- WORKBENCH(58)
- CROPS(59)
- SOIL(60)
- FURNACE(6)
- BURNING_FURNACE(62)
- SIGN_POST(63)
- WOODEN_DOOR(64)
- LADDER(65)
- RAILS(66)
- COBBLESTONE_STAIRS(67)
- WALL_SIGN(68)
- LEVER(69)
- STONE_PLATE(70)
- IRON_DOOR_BLOCK(71)
- WOOD_PLATE(72)
- REDSTONE_ORE(73)
- GLOWING_REDSTONE_ORE(74)
- REDSTONE_TORCH_OFF(75)
- REDSTONE_TORCH_ON(76)
- STONE_BUTTON(77)
- SNOW(78)
- ICE(79)
- SNOW_BLOCK(80)
- CACTUS(81)
- CLAY(82)
- SUGAR_CANE_BLOCK(83)
- JUKEBOX(84)
- FENCE(85)
- PUMPKIN(86)
- NETHERRACK(87)
- SOUL_SAND(88)
- GLOWSTONE(89)
- PORTAL(90)
- JACK_O_LANTERN(91)
- CAKE_BLOCK(92)
- DIODE_BLOCK_OFF(93)
- DIODE_BLOCK_ON(94)
- LOCKED_CHEST(95)
- TRAP_DOOR(96)
- MONSTER_EGGS(97)
- SMOOTH_BRICK(98)
- HUGE_MUSHROOM_1(99)
- HUGE_MUSHROOM_2(100)
- IRON_FENCE(101)
- THIN_GLASS(102)
- MELON_BLOCK(103)
- PUMPKIN_STEM(104)
- MELON_STEM(105)
- VINE(106)
- FENCE_GATE(107)
- BRICK_STAIRS(108)
- SMOOTH_STAIRS(109)
- MYCEL(110)
- WATER_LILY(111)
- NETHER_BRICK(112)
- NETHER_FENCE(113)
- NETHER_BRICK_STAIRS(114)
- NETHER_WARTS(115)
- ENCHANTMENT_TABLE(116)
- BREWING_STAND(117)
- CAULDRON(118)
- ENDER_PORTAL(119)
- ENDER_PORTAL_FRAME(120)
- ENDER_STONE(121)
- DRAGON_EGG(122)
- REDSTONE_LAMP_OFF(123)
- REDSTONE_LAMP_ON(124)
- WOOD_DOUBLE_STEP(125)
- WOOD_STEP(126)
- COCOA(127)
- SANDSTONE_STAIRS(128)
- EMERALD_ORE(129)
- ENDER_CHEST(130)
- TRIPWIRE_HOOK(131)
- TRIPWIRE(132)
- EMERALD_BLOCK(133)
- SPRUCE_WOOD_STAIRS(134)
- BIRCH_WOOD_STAIRS(135)
- JUNGLE_WOOD_STAIRS(136)
- COMMAND(137)
- BEACON(138)
- COBBLE_WALL(139)
- FLOWER_POT(140)
- CARROT(141)
- POTATO(142)
- WOOD_BUTTON(143)
- SKULL(144)
- ANVIL(145)
Items
View list of item IDs
- IRON_SPADE(256)
- IRON_PICKAXE(257)
- IRON_AXE(258)
- FLINT_AND_STEEL(259)
- APPLE(260)
- BOW(261)
- ARROW(262)
- COAL(263)
- DIAMOND(264)
- IRON_INGOT(265)
- GOLD_INGOT(266)
- IRON_SWORD(267)
- WOOD_SWORD(268)
- WOOD_SPADE(269)
- WOOD_PICKAXE(270)
- WOOD_AXE(271)
- STONE_SWORD(272)
- STONE_SPADE(273)
- STONE_PICKAXE(274)
- STONE_AXE(275)
- DIAMOND_SWORD(276)
- DIAMOND_SPADE(277)
- DIAMOND_PICKAXE(278)
- DIAMOND_AXE(279)
- STICK(280)
- BOWL(281)
- MUSHROOM_SOUP(282)
- GOLD_SWORD(283)
- GOLD_SPADE(284)
- GOLD_PICKAXE(285)
- GOLD_AXE(286)
- STRING(287)
- FEATHER(288)
- SULPHUR(289)
- WOOD_HOE(290)
- STONE_HOE(291)
- IRON_HOE(292)
- DIAMOND_HOE(293)
- GOLD_HOE(294)
- SEEDS(295)
- WHEAT(296)
- BREAD(297)
- LEATHER_HELMET(298)
- LEATHER_CHESTPLATE(299)
- LEATHER_LEGGINGS(300)
- LEATHER_BOOTS(301)
- CHAINMAIL_HELMET(302)
- CHAINMAIL_CHESTPLATE(303)
- CHAINMAIL_LEGGINGS(304)
- CHAINMAIL_BOOTS(305)
- IRON_HELMET(306)
- IRON_CHESTPLATE(307)
- IRON_LEGGINGS(308)
- IRON_BOOTS(309)
- DIAMOND_HELMET(310)
- DIAMOND_CHESTPLATE(311)
- DIAMOND_LEGGINGS(312)
- DIAMOND_BOOTS(313)
- GOLD_HELMET(314)
- GOLD_CHESTPLATE(315)
- GOLD_LEGGINGS(316)
- GOLD_BOOTS(317)
- FLINT(318)
- PORK(319)
- GRILLED_PORK(320)
- PAINTING(321)
- GOLDEN_APPLE(322)
- SIGN(323 16)
- WOOD_DOOR(324 1)
- BUCKET(325)
- WATER_BUCKET(326)
- LAVA_BUCKET(327)
- MINECART(328)
- SADDLE(329)
- IRON_DOOR(330)
- REDSTONE(331)
- SNOW_BALL(332)
- BOAT(333)
- LEATHER(334)
- MILK_BUCKET(335)
- CLAY_BRICK(336)
- CLAY_BALL(337)
- SUGAR_CANE(338)
- PAPER(339)
- BOOK(340)
- SLIME_BALL(341)
- STORAGE_MINECART(342)
- POWERED_MINECART(343)
- EGG(344)
- COMPASS(345)
- FISHING_ROD(346)
- WATCH(347)
- GLOWSTONE_DUST(348)
- RAW_FISH(349)
- COOKED_FISH(350)
- INK_SACK(351)
- BONE(352)
- SUGAR(353)
- CAKE(354)
- BED(355)
- DIODE(356)
- COOKIE(357)
- MAP(358)
- SHEARS(359)
- MELON(360)
- PUMPKIN_SEEDS(361)
- MELON_SEEDS(362)
- RAW_BEEF(363)
- COOKED_BEEF(364)
- RAW_CHICKEN(365)
- COOKED_CHICKEN(366)
- ROTTEN_FLESH(367)
- ENDER_PEARL(368)
- BLAZE_ROD(369)
- GHAST_TEAR(370)
- GOLD_NUGGET(371)
- NETHER_STALK(372)
- POTION(373)
- GLASS_BOTTLE(374)
- SPIDER_EYE(375)
- FERMENTED_SPIDER_EYE(376)
- BLAZE_POWDER(377)
- MAGMA_CREAM(378)
- BREWING_STAND_ITEM(379)
- CAULDRON_ITEM(380)
- EYE_OF_ENDER(381)
- SPECKLED_MELON(382)
- MONSTER_EGG(383)
- EXP_BOTTLE(384)
- FIREBALL(385)
- BOOK_AND_QUILL(386)
- WRITTEN_BOOK(387)
- EMERALD(388)
- ITEM_FRAME(389)
- FLOWER_POT_ITEM(390)
- CARROT_ITEM(391)
- POTATO_ITEM(392)
- BAKED_POTATO(393)
- POISONOUS_POTATO(394)
- EMPTY_MAP(395)
- GOLDEN_CARROT(396)
- SKULL_ITEM(397)
- CARROT_STICK(398)
- NETHER_STAR(399)
- PUMPKIN_PIE(400)
- GOLD_RECORD(2256)
- GREEN_RECORD(2257)
- RECORD_3(2258)
- RECORD_4(2259)
- RECORD_5(2260)
- RECORD_6(2261)
- RECORD_7(2262)
- RECORD_8(2263)
- RECORD_9(2264)
- RECORD_10(2265)
- RECORD_11(2266)
- RECORD_12(2267)
Entities
View list of entity IDs
- DROPPED_ITEM
- EXPERIENCE_ORB
- PAINTING
- ARROW
- SNOWBALL
- FIREBALL
- SMALL_FIREBALL
- ENDER_PEARL
- ENDER_SIGNAL
- THROWN_EXP_BOTTLE
- ITEM_FRAME
- WITHER_SKULL
- PRIMED_TNT
- FALLING_BLOCK
- MINECART(
- BOAT
- CREEPER
- SKELETON
- SPIDER
- GIANT
- ZOMBIE
- SLIME
- GHAST
- PIG_ZOMBIE
- ENDERMAN
- CAVE_SPIDER
- SILVERFISH
- BLAZE
- MAGMA_CUBE
- ENDER_DRAGON
- WITHER
- BAT
- WITCH
- PIG
- SHEEP
- COW
- CHICKEN
- SQUID
- WOLF
- MUSHROOM_COW
- SNOWMAN
- OCELOT
- IRON_GOLEM
- VILLAGER
- ENDER_CRYSTAL
- SPLASH_POTION
- EGG
- FISHING_HOOK
- LIGHTNING
- WEATHER
- PLAYER
- COMPLEX_PART
Wool Colors/Collar Colors:
View a list of wool and collar color IDs
- 0
0x0
Regular wool (white) - 1
0x1
Orange - 2
0x2
Magenta - 3
0x3
Light Blue - 4
0x4
Yellow - 5
0x5
Lime - 6
0x6
Pink - 7
0x7
Gray - 8
0x8
Light Gray - 9
0x9
Cyan - 10
0xA
Purple - 11
0xB
Blue - 12
0xC
Brown - 13
0xD
Green - 14
0xE
Red - 15
0xF
Black
Archival disclosure
This plugin is abandoned and has been uploaded for archival purposes. It was originally created Nov 24, 2012 by dmillerw. It has been uploaded to Modrinth under the ModrinthArchives account with permission from the original author.