Skip to content

Create a more geneic ˋeventˋ class #6

@Frontrider

Description

@Frontrider

Is your feature request related to a problem? Please describe.
As the engine supports event handlers other than commands (java included, javascript WIP) we should use something more generic than the ˋCommandSourceˋ.

Describe the solution you'd like
A new ˋEventˋ class that can better accomodate new script engines.

Requested fields:

  • position(vector3)
  • block (optional)
  • sourceEntity(optional)
  • Target for sending feedback
  • members: an array containin additional entities that are involved, for example the other animal during breeding, or the true source of damage.

Additionally:
It should also have an ˋexecuteˋ style command to switch into these members. The command context should not change, unless an ˋasˋ subcommand was called.

Describe alternatives you've considered
The current solution is to use the built-in ˋServerCommandSourceˋ class, as this is what commands use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions