Is there a way to trigger an event on any worldedit block paste?

  • Thread starter Thread starter /u/AmedeoAlf
  • Start date Start date
U

/u/AmedeoAlf

Guest
I am writing my own LuckyBlock Paper plugin for my minecraft 1.21.11 server. While it might not be a great idea, I wrote my own "WorldProtector" class, to store all blocks placed/destroyed during a game and therefore revert the map once a match ends. It does so by listening to various events like BlockPlaceEvent, EntityExplodeEvent etc.

I want the luckyblocks to also spawn some structures, that I thought I could let WorldEdit paste from schematics; but I can't find an event that triggers on a WorldEdit block paste (and I can't think of another way to revert those blocks).

Do I have to also implement my own structure spawn logic?

submitted by /u/AmedeoAlf
[link] [comments]

Continue reading...
 
Back
Top