Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6945

Capture Random Block Ticks Generically

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • N/A Potential New Feature

    • N/A
    • Yes

      Fire a (cancellable) event when a block is selected for a Random Block Tick. This is already somewhat captured by events like BlockGrowEvent, however this is a specific use-case and capturing random ticks as a whole is much more flexible.

      I would be happy to implement this myself and contribute the required patches, but I want to probe for thoughts about this. Is this a feature that would be considered? What potential caveats are there to an Event like this? Is there a reason why it hasn't already been implemented?

       

      appendix: If it matters, my specific use-case is to perform random events on blocks that would otherwise not receive random updates in a plugin. There are ways to mimic this, ex. by implementing my own random updates for ticking chunks in the plugin. However, these solutions are all sub-optimal since they have to stub functionality that the server is already doing, it just isn't exposed to plugins.

            Unassigned Unassigned
            anemonemma Emma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: