-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dioptra extension #6
Comments
If I've understood it correctly grid_amt is a 13x13 array of the vis or flux values in the surrounding aura chunks, depending on the current state of whether the dioptra block is displaying vis or flux values. |
I think it stores both of them. I used "Show Java" decompiler on my tablet. I only have methods present in thaumcraft java. Everything else outside from this have only reference names. |
Also I can't math. 13^2 = 169 😑 |
The magic in the dioptra is in the update() function. This is called during server ticks. So, just reading the array by itself, you don't necessarily know if the values you're getting are vis or flux. The function could probably also expose a flag for which is which by likewise checking the block metadata. |
Thanks for the beta. I don't know how compile this project. |
Also tested with other parameters. Parameter; List Size 6+; 169 6; 169 5; 121 4; 81 3; 49 2; 25 1; 9 0; 1 (same as GetVis() or GetFlux() method) 0-; 0 (Hmm... interesting... can it bee considered as an empty list?) The parameter should be kept in range? [1; 6] |
Update to the mod description, after merging: Thaumic Dioptra:
|
The computer could be read the Vis and Flux level values in the Dioptria's detection range. The "TileDioptra.java" has a public, byte array called "grid_amt". I suggest two new callbacks. With this, we don't need 144 Dioptra, just to monitor the surrounding aura.
The text was updated successfully, but these errors were encountered: