owmii / Powah

Discord:
https://discord.gg/A8TP9JY
GNU Lesser General Public License v3.0
28 stars 22 forks source link

Energizing Orb rotation and Energizing Rod beam colour #163

Closed BlueAgent closed 3 years ago

BlueAgent commented 3 years ago

Depends optionally on https://github.com/owmii/Lollipop/pull/17

Closes https://github.com/owmii/Powah/issues/21

Partially addresses https://github.com/owmii/Powah/issues/88

I based the beam colours on the Energizing Rod Gems, but I think you'll probably want to adjust the colours to your liking.

This PR allows the Energizing Orb to be placed in all 6 directions and adds colour to the Energizing Rod Beams (which depends on the Lollipop PR but is optional, it just doesn't have colour without it).

Also needed to make the beam from the rod to the orb respect the different rotations of the orb (since it is slightly upwards).

Also changed places that retrieved the tile entity of the orb from the rod to be consistent and also check if the block is present (chunk is loaded) before retrieving it, except for linking with the wrench which will force-load temporarily like currently.

Also tested loading an existing world from before this PR and it properly defaults the orb to be facing "down" which is really upwards. I used the energizing rods for reference which also used the facing in the same way and because the code for placement was common I decided to follow the same convention.

Screenshots

Energizing Orbs with different rotations

Beams connecting to Orbs with different rotations

Energizing Rod beams with colours matching tier

owmii commented 3 years ago

Thank you so much!!