PGMDev / PGM

The original PvP Game Manager for Minecraft
https://pgm.dev
GNU Affero General Public License v3.0
185 stars 89 forks source link

Reintroduce beacon beams #899

Open RuedigerLP opened 3 years ago

RuedigerLP commented 3 years ago

In 1.12 pgm there was a feature that would allow particle beams like from flags to be defined in xml on their own.

Pugzy commented 3 years ago

For those who can't remember this, this wasn't an OCN thing but something added during the Stratus era.

See: https://github.com/StratusNetwork/projectares/pull/76

Pablete1234 commented 3 years ago

Small note, the beacon is not actually a vanilla beacon beam, but the beams that are used for flags. Syntax was something like:

<beacons>
    <beacon location="x,y,z"> <!-- using defaults for everything else -->
    <beacon color="white" location="x,y,z" particle-count="40" visibility-filter="always">
</beacons>

Only location was required, everything else is optional and defaults to the numbers in that example

RuedigerLP commented 3 years ago

A nice new addition could also be a length and a vector option or maybe instead a list of two or more points for curves etc..

Pugzy commented 3 years ago

A nice new addition could also be a length and a vector option or maybe instead a list of two or more points for curves etc..

The particles currently used for the flag beams are falling block cracks so any other shape than a straight line would look odd.

Pablete1234 commented 3 years ago

A nice new addition could also be a length and a vector option or maybe instead a list of two or more points for curves etc..

The particles currently used for the flag beams are falling block cracks so any other shape than a straight line would look odd.

The shape is actually not a line, but an oval, it could be made so the defining vector can be configured

The default flag oval is a 0.15, 24, 0.15, meaning it's a ball of size 0.3 x 48 x 0.3 that spawns the particles in, but this is a very "lose" interpretation and in reality the actual tallness ends up being up to 96 blocks instead of 48, it's not a very exact measurement