# How do U spawn enemies in Minecraft?

**URL:** https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895
**Category:** Minecraft
**Created:** [June 23, 2021, 5:55am UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895 "2021-06-23T05:55:54Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![HewwoBug](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hewwobug/32/3995_2.png) [@HewwoBug](https://forum.makecode.com/u/HewwoBug)
#### Post date: [June 23, 2021, 5:55am UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/1 "2021-06-23T05:55:54Z")

</div>

I am trying to use strings to spawn enemies. However, I am not so sure about how to spawn them. Can you please help me?

---

<div class="post-metadata">

### Author: ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)
#### Post date: [June 23, 2021, 3:36pm UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/2 "2021-06-23T15:36:29Z")

</div>

use /summon

---

<div class="post-metadata">

### Author: ![HewwoBug](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hewwobug/32/3995_2.png) [@HewwoBug](https://forum.makecode.com/u/HewwoBug)
#### Post date: [June 23, 2021, 5:03pm UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/3 "2021-06-23T17:03:24Z")

</div>

Sorry. I want to use code in Microsoft MakeCode Blocks to make strings that determine the hostile mobs for each wave. For example 1 for a zombie, 2 for a skeleton, 3 for a creeper, etc. So wave 7 might look something like this: 112231123322

---

<div class="post-metadata">

### Author: ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)
#### Post date: [June 23, 2021, 7:51pm UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/4 "2021-06-23T19:51:14Z")

</div>

So idk how to make these things

---

<div class="post-metadata">

### Author: ![HewwoBug](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hewwobug/32/3995_2.png) [@HewwoBug](https://forum.makecode.com/u/HewwoBug)
#### Post date: [June 24, 2021, 3:23pm UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/5 "2021-06-24T15:23:14Z")

</div>

Yeah. That’s my question.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [June 24, 2021, 3:28pm UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/6 "2021-06-24T15:28:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/ecd92b4df3908ab91e8b3ff96c3e28e3c31975de.png)

---

<div class="post-metadata">

### Author: ![HewwoBug](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hewwobug/32/3995_2.png) [@HewwoBug](https://forum.makecode.com/u/HewwoBug)
#### Post date: [June 25, 2021, 5:37pm UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/7 "2021-06-25T17:37:35Z")

</div>

Sorry. That is not what I mean. Take a look at this project, it uses strings to spawn enemies.  
[https://www.khanacademy.org/computer-programming/spin-off-of-qwertyrhymes-ultimate-td-spin-off-v11/4943152805314560/embedded](https://www.khanacademy.org/computer-programming/spin-off-of-qwertyrhymes-ultimate-td-spin-off-v11/4943152805314560/embedded)

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [June 27, 2021, 6:30am UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/8 "2021-06-27T06:30:08Z")

</div>

Maybe something like this???

> **[Summon Enemies via string](https://minecraft.makecode.com/69582-08866-97606-67184)**
>
> Made with ❤️ in Microsoft MakeCode for Minecraft.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b3e26cade004e79e1384d94a995644b1ae6d09cd.png)

So what it does is replicate a dictionary using two arrays. Then you pass in a (long) string to the `summon_mobs` function which is separated by `,`. It splits the string into an array and summons the mob at the specified coordinates.

---

<div class="post-metadata">

### Author: ![rossalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rossalex/32/4558_2.png) [@rossalex](https://forum.makecode.com/u/rossalex)
#### Post date: [July 13, 2021, 6:32pm UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/9 "2021-07-13T18:32:41Z")

</div>

I like to use strings to spawn enemies

---

<div class="post-metadata">

### Author: ![rossalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rossalex/32/4558_2.png) [@rossalex](https://forum.makecode.com/u/rossalex)
#### Post date: [July 19, 2021, 9:21pm UTC](https://forum.makecode.com/t/how-do-u-spawn-enemies-in-minecraft/8895/10 "2021-07-19T21:21:44Z")

</div>

Your offer sounds excellent. Very often, I play with others gamers and join different factions. I found on one site the top Minecraft Factions Servers where you can play and fight with other factions, and even more, some of them offer you a cash reward if you win. I have been playing on these servers for several months, and I adore this occupation. And everything is accurate, and I already have some gains that I have already taken. I am sure that you will appreciate this idea and we can have a day for playing altogether.

* * *

this site: [https://minecraft.buzz/category/factions](https://minecraft.buzz/category/factions)
