Mobs not spawning on key press?

Started by Spyjetray on Fri, 07/05/2019 - 13:04

Topic category: Bugs and solutions

Last seen on 12:46, 23. Jul 2019
Joined Jul 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Mobs not spawning on key press?
Fri, 07/05/2019 - 13:04

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.

Last seen on 19:56, 22. Aug 2019
Joined Aug 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.