Having trouble with procedures

Started by vancegypson on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Having trouble with procedures

I am making an item procedure where I am having it detect if there are certain entities nearby while I hold it and if it does, a message shows up above my hot bar. I have no idea what I'm doing. If anyone could tell me what blocks I need and in what order that would be very helpful.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also I don't know if this…
Wed, 04/16/2025 - 19:15

Also I don't know if this matters, but I am using a Forge 1.20.1 plugin and my Mcreator version is 2025.1

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure if this would…
Thu, 04/17/2025 - 00:12

I'm not sure if this would work, but go to the trigger tab in the item and make a procedure in the "when item in hand ticks", then in the procedure you select the "For each entity as event/target entity at X, Y, Z, in a square area of 4, do" and increase the area to what you need. In the Do parte, put and If Do that checks "is the entity a (sub) type of" and select the first type of entity you want to detect. Then in that Do part put "Send to chat to all players Message" but change the message for what you want to say, like, a spider was detected, if the first entity is a spider. Add If else to that block and copy the "Is Event subtype of" and the "sent chat" for each entity you want the item to detect, modifying it to fit.