Mobs not spawning on key press?

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

Topic category: Bugs and solutions

Last seen on 19:14, 28. Jan 2020
Joined Jul 2015
User points:

Statistics:

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

0Upvote this forum topic
Last seen on 19:09, 28. Jan 2020
Joined Aug 2016
User points:

Statistics:

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

0Upvote this forum topic