How to call a procedure in the name of another entity

Started by RandomGi91 on

Topic category: Help with MCreator software

Last seen on 16:08, 8. Dec 2023
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to call a procedure in the name of another entity

I'm making a questing mod, and the procedure I use to set the quests randomly uses event/target entity for everything. However, in a command that lets you reroll the quest, the entity iterator is the player being affected, rather than the event/target entity like in the first procedure. How do I call the first procedure from the second procedure so that the entity iterator becomes the event/target entity in the first command? (In the second procedure, the event/target entity is the one executing the command while the entity iterator is the one whose quest is being set) Procedure available if needed :)

Thanks!

Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use custom code snippet: net…
Wed, 07/05/2023 - 03:52

Use custom code snippet: net.mcreator.yourmodnamehere.procedures.yourprocedurenamehereProcedure.execute(world, entityiterator); You can add other dependencies for the other procedure like: ...execute(world, entityiterator, x, y, z); The "entityiterator" is the important part.