Get values before event happens

Started by 91arrows on

Topic category: Feature requests and ideas for MCreator

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get values before event happens

Example: when block is placed

You should be able to get information from the block that was at the given position (the block that was broken), and also the block that is at the given position (which is usually air)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mcreator can't give you…
Sun, 07/24/2022 - 20:14

Mcreator can't give you values that are not provided by forge/fabric or bedrock (depending if which one u use).

MCreator's global triggers use something that forge and fabric call "events". Both have their own implementation of them.

 

Ill use forge as example: on block placed

  • MCreator uses event called "BlockEvent.EntityPlaceEvent" which gives you information who placed the block (with all information about that entity), what block was placed and against what it was placed (with all informations about those blocks).