Mobs not spawning on key press?

Started by Spyjetray on

Topic category: Troubleshooting, bugs, and solutions

Active 4 years ago
Joined Jul 2015
Points:
810

User statistics:

  • Modifications: 0
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Mobs not spawning on key press?

So I tried making a mod element where I want 4 mobs to spawn when numpad 7 is pressed when wearing a specific piece of armour but it doesn't work.

This is the code I used.

Can someone explain what has gone wrong?

Thanks.

Active 4 hours ago
Joined Aug 2016
Points:
3304

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2928
it's just because you have…
Mon, 07/08/2019 - 00:16

it's just because you have say to MCreator to check the 3 third slot of armor. In java and other language, you have to start with 0 to have your 1. So, just change your 2 for 1, and you will have your real second slot of armor.