Help with making/configuring a chest, and a Light Source

ReignOfMagic

New Member
Jul 29, 2019
55
0
0
Chest Section:

I'll preface this section with this tidbit. I have already implemented a chest, but its contents will not save after you save and quit. Thus, it isn't exactly useful as it stands now, my guess is I forgot a portion vital to saving contents when copying the vanilla chest code over. Additionally I'd like to change the size of the chest (number of either columns or rows, doesn't matter which) as well.

Links to relevant chest files:
https://github.com/Reignofmagic/GTFO/tree/NewMaster/src/main/java/com/reignofmagic/gems/tile_entity
https://github.com/Reignofmagic/GTF...a/com/reignofmagic/gems/blocks/chesttest.java
https://github.com/Reignofmagic/GTFO/tree/NewMaster/src/main/java/com/reignofmagic/gems/render

Torch Section:

I'll preface this section with this tidbit. I have already implemented a torch, it functions exactly like a vanilla torch in every fashion which is great! I'm just wondering if I can increase the brightness level from 14 (default torch) to 15 (glowstone) or noon (16 I think?). If you can make it brighter or have a few blocks before the light level decays that would be fantastic. I just have no idea how to go about implementing this.
For the file, line 15 will allow me to dim the light. Example if I put 0.5F the torch would emit at a light level of 7, but increasing this past 1 to say 1.2F (light level of 15 if my rounded math works correctly) it actually dims it to a light level of 1. Alternatively if I set it at 1.9F it emits at a light level of 11. Any Ideas for this?


Relevant torch files:
https://github.com/Reignofmagic/GTF...a/com/reignofmagic/gems/blocks/GemLights.java