PGM
PGM copied to clipboard
Make water source forming filterable
so it can be controlled with applicators.
Water sources are already filterable. It's a bug in bukkit that there's no event that reports the block transformation.
Example xml that should work:
<filters>
<deny id="no-water-sources">
<all>
<material>8</material>
<cause>WORLD</cause>
</all>
</deny>
</filters>
<regions>
<apply block="no-water-sources">
<region>
<everywhere/>
</region>
</apply>
</regions>
Denies material 8 (water source) if it's caused by the world (means players can still place water with buckets or by breaking ice, but ice naturally melting is denied)
Bukkit event added downstream. The SportPaper team is waiting for it to be PR'd up and I'll merge it in. Until then this functionality is not possible in PGM. This functionality will also only be available on servers running SportPaper.
Leaving this open until the needed SportPaper changes are brought upstream.
The issue is for SportPaper independence, I don't really want to add another SportPaper dependency. Can this be done without a new event (or is the event introduced in later Bukkit versions?)
@KingOfSquares investigated on it, and apparently, no event was being thrown by bukkit for it. I think BlockPhysicsEvent should be receiving this, but i didn't test
@KingOfSquares investigated on it, and apparently, no event was being thrown by bukkit for it. I think BlockPhysicsEvent should be receiving this, but i didn't test
Yep, shiny added an event for it on his fork somewhere, but not possible with just cancelling the BlockPhysicsEvent
s