Running a smooth and enjoyable Minecraft Java Edition 1.21 server requires more than just having the server software. Understanding how Minecraft handles different elements within the game, especially entities, and configuring your server correctly is crucial. One key aspect of server optimization involves setting the right Java memory allocation when launching your server, often done using the command Java -xmx1024m -xms1024m -jar Minecraft_server.1.21.jar
. This command directly impacts how your server performs, especially when dealing with the numerous entities that populate the Minecraft world.
In Minecraft, entities are essentially anything that can move or be interacted with in the game world. While often thought of as just mobs like Creepers or Zombies, entities also include items on the ground, projectiles like arrows, and even more static objects like armor stands and boats. Each of these entities, detailed in the list below for Minecraft Java Edition 1.21, consumes server resources.
Entity | Description (Minecraft Entity Value) | Command Examples |
---|---|---|
Allay (minecraft:allay) – A helpful fairy-like creature that collects items. | /summon minecraft:allay ~ ~ ~ |
|
Area effect cloud (minecraft:area_effect_cloud) | /summon minecraft:area_effect_cloud ~ ~ ~ {Radius:3f,Particle:"spell"} |
|
Armadillo (minecraft:armadillo) – A new mob in 1.21 that rolls up into a ball when threatened. | /summon minecraft:armadillo ~ ~ ~ |
|
Armor stand (minecraft:armor_stand) | Examples (or NBT Tags) – A customizable stand to display armor and equipment. | /summon minecraft:armor_stand ~ ~ ~ {Pose:{Head:[45f,0f,0f]}} |
Arrow (minecraft:arrow) – A projectile shot from bows and crossbows. | /summon minecraft:arrow ~ ~ ~ {damage:5.0d} |
|
Axolotl (minecraft:axolotl) | Example – A cute amphibian found in lush caves, comes in various colors. | /summon minecraft:axolotl ~ ~ ~ {Variant:4} |
Bat (minecraft:bat) – A passive mob that spawns in caves. | /summon minecraft:bat ~ ~ ~ |
|
Bee (minecraft:bee) | Example (or NBT Tags) – A flying insect that pollinates crops and produces honey. | /summon minecraft:bee ~ ~ ~ {AngerTime:100} |
Blaze (minecraft:blaze) – A fire-based hostile mob found in Nether Fortresses. | /summon minecraft:blaze ~ ~ ~ |
|
Block Display (minecraft:block_display) | /summon minecraft:block_display ~ ~ ~ {block:{Name:"minecraft:stone"}} |
|
Boat (minecraft:boat) – A vehicle for water travel. | /summon minecraft:boat ~ ~ ~ {Type:"oak"} |
|
Bogged (minecraft:bogged) | Example – A new skeleton variant found in swamps and mangrove swamps, shoots poison arrows. | /summon minecraft:bogged ~ ~ ~ |
Breeze (minecraft:breeze) – A hostile wind-based mob found in trial chambers, attacks with wind charges. | /summon minecraft:breeze ~ ~ ~ |
|
Camel (minecraft:camel) | Example – A rideable mob found in desert villages, can carry two players. | /summon minecraft:camel ~ ~ ~ |
Cat (minecraft:cat) – A tameable feline mob, comes in various breeds. | /summon minecraft:cat ~ ~ ~ {CatType:9} |
|
Cave spider (minecraft:cave_spider) | Example (or NBT Tags) – A smaller, poisonous spider found in caves and mineshafts. | /summon minecraft:cave_spider ~ ~ ~ |
Boat with Chest (minecraft:chest_boat) – A boat with added storage capacity. | /summon minecraft:chest_boat ~ ~ ~ {Type:"oak"} |
|
Minecart with Chest (minecraft:chest_minecart) | /summon minecraft:chest_minecart ~ ~ ~ |
|
Chicken (minecraft:chicken) – A farm animal that lays eggs and provides feathers and raw chicken. | /summon minecraft:chicken ~ ~ ~ |
|
Cod (minecraft:cod) | Example (or NBT Tags) – A common fish found in oceans. | /summon minecraft:cod ~ ~ ~ |
Minecart with Command Block (minecraft:command_block_minecart) – A minecart with a command block for on-the-move commands. | /summon minecraft:command_block_minecart ~ ~ ~ {Command:"say Hello"} |
|
Cow (minecraft:cow) | Examples (or NBT Tags) – A farm animal providing milk, leather, and raw beef. | /summon minecraft:cow ~ ~ ~ |
Creeper (minecraft:creeper) – An iconic explosive hostile mob. | /summon minecraft:creeper ~ ~ ~ |
|
Dolphin (minecraft:dolphin) | Example (or NBT Tags) – A friendly aquatic mob that can lead players to treasure. | /summon minecraft:dolphin ~ ~ ~ |
Donkey (minecraft:donkey) – A rideable and pack-carrying equine mob. | /summon minecraft:donkey ~ ~ ~ |
|
Dragon fireball (minecraft:dragon_fireball) | /summon minecraft:dragon_fireball ~ ~ ~ {ExplosionPower:1} |
|
Drowned (minecraft:drowned) – An underwater zombie variant. | /summon minecraft:drowned ~ ~ ~ |
|
Egg (minecraft:egg) | /summon minecraft:egg ~ ~ ~ |
|
Elder Guardian (minecraft:elder_guardian) – A stronger guardian variant found in ocean monuments. | /summon minecraft:elder_guardian ~ ~ ~ |
|
End crystal (minecraft:end_crystal) | Example (or NBT Tags) – A crystal that heals the Ender Dragon. | /summon minecraft:end_crystal ~ ~ ~ |
Ender dragon (minecraft:ender_dragon) – The final boss of the base game, residing in the End dimension. | /summon minecraft:ender_dragon ~ ~ ~ |
|
Ender pearl (minecraft:ender_pearl) | /summon minecraft:ender_pearl ~ ~ ~ |
|
Enderman (minecraft:enderman) – A tall, teleporting neutral mob that becomes hostile when looked at directly. | /summon minecraft:enderman ~ ~ ~ |
|
Endermite (minecraft:endermite) | Example (or NBT Tags) – A small silverfish-like mob that spawns when using Ender Pearls. | /summon minecraft:endermite ~ ~ ~ |
Evoker (minecraft:evoker) – A spellcasting Illager mob found in woodland mansions and raids. | /summon minecraft:evoker ~ ~ ~ |
|
Evoker fangs (minecraft:evoker_fangs) | /summon minecraft:evoker_fangs ~ ~ ~ |
|
Thrown experience bottle (minecraft:experience_bottle) – A bottle that releases experience orbs when thrown. | /summon minecraft:experience_bottle ~ ~ ~ |
|
Experience orb (minecraft:experience_orb) | /summon minecraft:experience_orb ~ ~ ~ |
|
Eye of Ender (minecraft:eye_of_ender) – An item used to locate strongholds and activate the End portal. | /summon minecraft:eye_of_ender ~ ~ ~ |
|
Falling block (minecraft:falling_block) | /summon minecraft:falling_block ~ ~ ~ {BlockState:{Name:"minecraft:sand"}} |
|
Fireball (minecraft:fireball) – A projectile shot by Ghasts and Blazes. | /summon minecraft:fireball ~ ~ ~ {ExplosionPower:1} |
|
Firework rocket (minecraft:firework_rocket) | Example (or NBT Tags) – A rocket used for fireworks and elytra boosting. | /summon minecraft:firework_rocket ~ ~ ~ {FireworksItem:{id:"minecraft:firework_rocket",Count:1}} |
Fox (minecraft:fox) – A nocturnal, agile mob that can hold items in its mouth. | /summon minecraft:fox ~ ~ ~ |
|
Frog (minecraft:frog) | Example – An amphibian found in swamps, comes in different variants depending on temperature. | /summon minecraft:frog ~ ~ ~ {Variant:2} |
Minecart with Furnace (minecraft:furnace_minecart) – A self-propelled minecart. | /summon minecraft:furnace_minecart ~ ~ ~ |
|
Ghast (minecraft:ghast) | Example (or NBT Tags) – A large, floating hostile mob that shoots fireballs, found in the Nether. | /summon minecraft:ghast ~ ~ ~ |
Giant zombie (minecraft:giant) – An unused, oversized zombie mob. | /summon minecraft:giant ~ ~ ~ |
|
Glow Item Frame (minecraft:glow_item_frame) | /summon minecraft:glow_item_frame ~ ~ ~ |
|
Glow Squid (minecraft:glow_squid) – A luminescent squid variant found in underground water sources. | /summon minecraft:glow_squid ~ ~ ~ |
|
Goat (minecraft:goat) | Example – A mountain-dwelling mob that can ram into entities. | /summon minecraft:goat ~ ~ ~ |
Guardian (minecraft:guardian) – An aquatic hostile mob found near ocean monuments. | /summon minecraft:guardian ~ ~ ~ |
|
Hoglin (minecraft:hoglin) | Example (or NBT Tags) – A hostile pig-like mob found in crimson forests in the Nether. | /summon minecraft:hoglin ~ ~ ~ |
Minecart with Hopper (minecraft:hopper_minecart) – A minecart that automatically collects items from above. | /summon minecraft:hopper_minecart ~ ~ ~ |
|
Horse (minecraft:horse) | Examples (or NBT Tags) – A rideable equine mob, comes in various colors and patterns. | /summon minecraft:horse ~ ~ ~ |
Husk (minecraft:husk) – A desert zombie variant that doesn’t burn in sunlight. | /summon minecraft:husk ~ ~ ~ |
|
Illusioner (minecraft:illusioner) | Example (or NBT Tags) – A spellcasting Illager mob, known for creating illusions. | /summon minecraft:illusioner ~ ~ ~ |
Interaction (minecraft:interaction) | ||
Iron Golem (minecraft:iron_golem) | Example (or NBT Tags) – A strong, helpful golem that defends villages. | /summon minecraft:iron_golem ~ ~ ~ |
Item (minecraft:item) – Dropped items and placeable items in item frames. | /summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:diamond",Count:1}} |
|
Item Display (minecraft:item_display) | /summon minecraft:item_display ~ ~ ~ {item:{id:"minecraft:apple"}} |
|
Item frame (minecraft:item_frame) – A frame to display items on walls. | /summon minecraft:item_frame ~ ~ ~ |
|
Lead (minecraft:leash_knot) | /summon minecraft:leash_knot ~ ~ ~ |
|
Lightning bolt (minecraft:lightning_bolt) – A weather phenomenon that can strike entities and blocks. | /summon minecraft:lightning_bolt ~ ~ ~ |
|
Llama (minecraft:llama) | Example (or NBT Tags) – A neutral, pack-carrying mob that spits at hostile mobs. | /summon minecraft:llama ~ ~ ~ |
Llama spit (minecraft:llama_spit) | ||
Magma cube (minecraft:magma_cube) | Example (or NBT Tags) – A fiery slime variant found in basalt deltas and Nether wastes. | /summon minecraft:magma_cube ~ ~ ~ |
Marker (minecraft:marker) | ||
Minecart (minecraft:minecart) | /summon minecraft:minecart ~ ~ ~ |
|
Mooshroom (minecraft:mooshroom) – A mushroom-covered cow found in mushroom fields biomes. | /summon minecraft:mooshroom ~ ~ ~ |
|
Mule (minecraft:mule) | Example (or NBT Tags) – A hybrid of a horse and donkey, can carry items and be ridden. | /summon minecraft:mule ~ ~ ~ |
Ocelot (minecraft:ocelot) – A shy, jungle-dwelling feline mob. | /summon minecraft:ocelot ~ ~ ~ |
|
Painting (minecraft:painting) | /summon minecraft:painting ~ ~ ~ {variant:"minecraft:sunset"} |
|
Panda (minecraft:panda) – A bamboo-eating, playful mob found in bamboo jungles. | /summon minecraft:panda ~ ~ ~ |
|
Parrot (minecraft:parrot) | Example (or NBT Tags) – A colorful, tameable bird that can imitate mob sounds. | /summon minecraft:parrot ~ ~ ~ {Variant:3} |
Phantom (minecraft:phantom) – A flying hostile mob that spawns when players haven’t slept for a while. | /summon minecraft:phantom ~ ~ ~ |
|
Pig (minecraft:pig) | Example (or NBT Tags) – A farm animal providing raw porkchop. | /summon minecraft:pig ~ ~ ~ |
Piglin (minecraft:piglin) – A neutral pig-like mob found in the Nether, trades gold items. | /summon minecraft:piglin ~ ~ ~ |
|
Piglin Brute (minecraft:piglin_brute) | Example – A hostile Piglin variant found in bastion remnants. | /summon minecraft:piglin_brute ~ ~ ~ |
Pillager (minecraft:pillager) – A crossbow-wielding Illager mob, often found in patrols and raids. | /summon minecraft:pillager ~ ~ ~ |
|
Polar Bear (minecraft:polar_bear) | Example (or NBT Tags) – A neutral bear found in snowy biomes. | /summon minecraft:polar_bear ~ ~ ~ |
Thrown potion (minecraft:potion) – A throwable potion with various effects. | /summon minecraft:potion ~ ~ ~ {Potion:{id:"minecraft:strength"}} |
|
Pufferfish (minecraft:pufferfish) | Example (or NBT Tags) – A fish that inflates and poisons nearby entities when approached. | /summon minecraft:pufferfish ~ ~ ~ |
Rabbit (minecraft:rabbit) – A small, fast-moving mob found in various biomes. | /summon minecraft:rabbit ~ ~ ~ {RabbitType:99} |
|
Ravager (minecraft:ravager) | Example (or NBT Tags) – A large, beast-like Illager mob found in raids. | /summon minecraft:ravager ~ ~ ~ |
Salmon (minecraft:salmon) – A fish found in rivers and oceans. | /summon minecraft:salmon ~ ~ ~ |
|
Sheep (minecraft:sheep) | Example (or NBT Tags) – A farm animal that provides wool and raw mutton. | /summon minecraft:sheep ~ ~ ~ |
Shulker (minecraft:shulker) – A shell-dwelling mob found in End Cities, known for its levitation projectiles. | /summon minecraft:shulker ~ ~ ~ |
|
Shulker bullet (minecraft:shulker_bullet) | Example (or NBT Tags) | /summon minecraft:shulker_bullet ~ ~ ~ |
Silverfish (minecraft:silverfish) – A small, hostile mob found in strongholds and mountain biomes. | /summon minecraft:silverfish ~ ~ ~ |
|
Skeleton (minecraft:skeleton) | Example (or NBT Tags) – A common hostile mob that shoots arrows. | /summon minecraft:skeleton ~ ~ ~ |
Skeleton horse (minecraft:skeleton_horse) – An undead horse, can be ridden and summoned as a trap. | /summon minecraft:skeleton_horse ~ ~ ~ |
|
Slime (minecraft:slime) | Examples (or NBT Tags) – A gelatinous hostile mob that comes in various sizes. | /summon minecraft:slime ~ ~ ~ {Size:3} |
Small fireball (minecraft:small_fireball) – A projectile shot by Wither Skeletons and player fire charges. | /summon minecraft:small_fireball ~ ~ ~ {ExplosionPower:1} |
|
Sniffer (minecraft:sniffer) | Example – An ancient mob that can sniff out seeds. | /summon minecraft:sniffer ~ ~ ~ |
Snow man or snow golem (minecraft:snow_golem) – A player-created golem that throws snowballs at hostile mobs. | /summon minecraft:snow_golem ~ ~ ~ |
|
Snowball (minecraft:snowball) | /summon minecraft:snowball ~ ~ ~ |
|
Minecart with spawner (minecraft:spawner_minecart) – A minecart with a mob spawner for creating mobile mob farms. | /summon minecraft:spawner_minecart ~ ~ ~ {SpawnData:{id:"minecraft:zombie"}} |
|
Spectral arrow (minecraft:spectral_arrow) | /summon minecraft:spectral_arrow ~ ~ ~ {damage:5.0d} |
|
Spider (minecraft:spider) – A common hostile mob that can climb walls. | /summon minecraft:spider ~ ~ ~ |
|
Squid (minecraft:squid) | Example (or NBT Tags) – An aquatic mob that inks when attacked. | /summon minecraft:squid ~ ~ ~ |
Stray (minecraft:stray) – A snowy biome skeleton variant that shoots slowness arrows. | /summon minecraft:stray ~ ~ ~ |
|
Strider (minecraft:strider) | Example (or NBT Tags) – A Nether mob that can walk on lava. | /summon minecraft:strider ~ ~ ~ |
Tadpole (minecraft:tadpole) – Baby form of frogs. | /summon minecraft:tadpole ~ ~ ~ |
|
Text Display (minecraft:text_display) | /summon minecraft:text_display ~ ~ ~ {text:'{"text":"Hello World"}'} |
|
TNT (minecraft:tnt) – An explosive block. | /summon minecraft:tnt ~ ~ ~ |
|
Minecart with TNT (minecraft:tnt_minecart) | /summon minecraft:tnt_minecart ~ ~ ~ |
|
Trader Llama (minecraft:trader_llama) – Llamas that accompany Wandering Traders. | /summon minecraft:trader_llama ~ ~ ~ |
|
Trident (minecraft:trident) | /summon minecraft:trident ~ ~ ~ {damage:8.0d} |
|
Tropical Fish (minecraft:tropical_fish) – Colorful fish found in warm oceans, comes in numerous patterns. | /summon minecraft:tropical_fish ~ ~ ~ {Variant:16777215} |
|
Turtle (minecraft:turtle) | Example (or NBT Tags) – A slow-moving reptile that lays eggs on beaches. | /summon minecraft:turtle ~ ~ ~ |
Vex (minecraft:vex) – A small, fast-moving hostile mob summoned by Evokers. | /summon minecraft:vex ~ ~ ~ |
|
Villager (minecraft:villager) | Example (or NBT Tags) – A passive humanoid mob that inhabits villages and trades items. | /summon minecraft:villager ~ ~ ~ {VillagerData:{type:"minecraft:plains",profession:"minecraft:farmer",level:1}} |
Vindicator (minecraft:vindicator) – An axe-wielding Illager mob found in woodland mansions and raids. | /summon minecraft:vindicator ~ ~ ~ |
|
Wandering Trader (minecraft:wandering_trader) | Example (or NBT Tags) – A trader that wanders around and offers trades for unique items. | /summon minecraft:wandering_trader ~ ~ ~ |
Warden (minecraft:warden) – A powerful, blind hostile mob found in deep dark biomes. | /summon minecraft:warden ~ ~ ~ |
|
Witch (minecraft:witch) | Example (or NBT Tags) – A spellcasting hostile mob that throws potions. | /summon minecraft:witch ~ ~ ~ |
Wither boss (minecraft:wither) – A powerful boss mob created by players using soul sand and wither skeleton skulls. | /summon minecraft:wither ~ ~ ~ |
|
Wither skeleton (minecraft:wither_skeleton) | Example (or NBT Tags) – A skeleton variant found in Nether Fortresses, wields a stone sword and inflicts the Wither effect. | /summon minecraft:wither_skeleton ~ ~ ~ |
Wither skeleton skull (minecraft:wither_skull) | ||
Wolf (minecraft:wolf) | Examples (or NBT Tags) – A neutral mob that can be tamed into a loyal dog. | /summon minecraft:wolf ~ ~ ~ |
Zoglin (minecraft:zoglin) – An undead hoglin variant. | /summon minecraft:zoglin ~ ~ ~ |
|
Zombie (minecraft:zombie) | Example (or NBT Tags) – A common hostile mob. | /summon minecraft:zombie ~ ~ ~ |
Zombie horse (minecraft:zombie_horse) – An undead horse variant. | /summon minecraft:zombie_horse ~ ~ ~ |
|
Zombie Villager (minecraft:zombie_villager) | Example (or NBT Tags) – A zombie variant of villagers, can be cured back into a villager. | /summon minecraft:zombie_villager ~ ~ ~ |
Zombified Piglin (minecraft:zombified_piglin) | Example (or NBT Tags) – A neutral undead piglin found in the Nether. |
Understanding Entity Values for Server Commands
Minecraft uses specific entity values in commands like /summon
and /data
to identify and manipulate these in-game elements. The table above provides the “Minecraft Entity Value” for each entity, which is the string you’ll use in commands.
For instance, if you want to spawn a Creeper using the /summon
command, you would use its entity value like this:
/summon minecraft:creeper
This command tells the server to create a Creeper entity at your current location. Similarly, you can modify existing entities using the /data
command and their entity values. To rename the nearest Wolf to “Shadow”, you would use:
/data merge entity @e[type=minecraft:wolf,limit=1,sort=nearest] {CustomName:""Shadow""}
How Java Memory Allocation Impacts Entity Handling
Now, let’s connect this back to server performance and the command java -xmx1024m -xms1024m -jar minecraft_server.1.21.jar
. The -xmx1024m
and -xms1024m
parameters are crucial for setting the maximum and initial Java heap size for your Minecraft server. In this example, both are set to 1024MB (1GB).
Why is this important for entities? Each entity loaded into your Minecraft world consumes server RAM. A server with insufficient RAM, especially when handling a large number of entities (think mob farms, large player counts, or densely populated worlds), will experience performance issues like lag and crashes.
-Xmx
(Maximum Heap Size): This sets the maximum amount of RAM that the Java Virtual Machine (JVM), which runs your Minecraft server, can use. Setting this appropriately prevents your server from running out of memory and crashing under heavy load, such as when many entities are active.
-Xms
(Initial Heap Size): This sets the starting amount of RAM allocated to the JVM. While less critical than -Xmx
, setting -Xms
to the same value as -Xmx
can sometimes improve startup time and potentially provide slightly smoother performance by ensuring the server has the memory it needs from the beginning.
Adjusting Memory for Entity Load: If you plan to have a server with many players, complex worlds, or features that spawn a lot of entities, you will likely need to increase the -Xmx
and -Xms
values. For example, for a larger server, you might use java -Xmx4G -Xms4G -jar minecraft_server.1.21.jar
to allocate 4GB of RAM.
In summary: Understanding Minecraft entities and their impact on server resources is essential for optimization. Properly configuring your Java memory settings using commands like java -xmx1024m -xms1024m -jar minecraft_server.1.21.jar
is a fundamental step in ensuring your Minecraft 1.21 server runs smoothly, especially when dealing with the vast array of entities Minecraft offers. By managing server memory effectively, you can create a better experience for yourself and your players.