How To Make An Item That Makes Hostile Mobs Passive When In Inventory/Hotbar ?

Started by Raxxtq on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How To Make An Item That Makes Hostile Mobs Passive When In Inventory/Hotbar ?

Hey Im wondering how to make what's said in the title, Is someone able to maybe write up a code example and tell me where to put it ? Im not very skilled in java haha (Im currently learning)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Code not necessary If you…
Wed, 03/16/2022 - 18:04

Code not necessary

If you want a procedure I can teach you how to do

 

 

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sure, lead the way
Wed, 03/16/2022 - 23:01

Sure, lead the way

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
set world variable logic…
Thu, 03/17/2022 - 06:38

set world variable logic

When item in inventory or hotbar set to true else set to false

Mob conditions AI  Attack player  condition return variable = true

 

And that's it

 

 

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know how to do this,…
Thu, 03/17/2022 - 22:42

I don't know how to do this, can you please explain in more detail ?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need a basic knowledge…
Fri, 03/18/2022 - 08:48

You need a basic knowledge if you are making a mod.

Check many tutorials online and this will be much easier

I explained you exactly how to do

 

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey thanks for the reply, I…
Sun, 03/20/2022 - 00:14

Hey thanks for the reply, I've learnt how to use procedures and have figured it out. Here's what I did:
https://prnt.sc/I-Pz49aEB1tB

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
not what i've told you WHy…
Sun, 03/20/2022 - 10:53

not what i've told you

WHy using commands if not necessary at all ?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Raxxtq  but why no mob…
Wed, 06/01/2022 - 11:01

@Raxxtq  but why no mob attack you anymore is this all of your produce canyou  help me pls!

sorry for my bad english :)