Add dynamic chunk lighting engine (vertical sky light + emissive blocks)
This commit is contained in:
parent
09a694daf5
commit
e33370a049
5 changed files with 212 additions and 27 deletions
17
scratch.go
Normal file
17
scratch.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
f, _ := os.Open("generated/reports/blocks.json")
|
||||
var data map[string]interface{}
|
||||
json.NewDecoder(f).Decode(&data)
|
||||
|
||||
glowstone := data["minecraft:glowstone"]
|
||||
b, _ := json.MarshalIndent(glowstone, "", " ")
|
||||
fmt.Println("glowstone:", string(b))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue