How did I not find this mod for years? Way back during the Minecraft Alpha days, when everyone was just starting to figure out how to mod Minecraft, there was a mod called "What's My Light Level", which showed the light level at the top-left screen. (Community's come a LOOOONG way from the days of removing some file from the Minecraft JAR, copying/pasting in mods and hoping nothing conflicted!) I'll definitely be using it in my private custom modpacks.
Knew I missed something. I'll look into this once I'll have the time to work on mods more frequently again. Will have to check how difficult it's going to be to add new shapes and things like that (GUI/storage wise).
I never use the text format because it's really hard to write/read. It's only there to server as a bridge from the old format to the newer formats (xml/json).
'round' should be used in combination with 'div' in the example you posted. '/' is a separator and will not divide the numbers. What that statement essentially does, it rounds the memory used to 1073741824 decimal places, which is essentially does nothing.
Those are functions and you can find more about each of them on the wiki. 'op' is the short term for the 'operation' function on that page.
That last example will not work. What you most likely want to do is to use the 'op' function to check if the distance is (not) -1 and print either an empty string or whatever you want to display.
I'd basically like it to display negative effect time duration and icon like how the "potioneffect" tag works
Then you'll most likely want to wrap each (also change the "1" in "potioneffectnegative1" accordingly) of the existing potion tags into the following snippet:
Then you'll most likely want to wrap each (also change the "1" in "potioneffectnegative1" accordingly) of the existing potion tags into the following snippet:
potioneffectnegative1
<!-- EXISTING POTION CODE HERE -->
err... I'm a little confused (maybe I did something wrong) but how do I add the tag with this?
ultimately, what I'm trying to do is have the positive potion duration display as green ($a) and the negative potion duration display as red ($c, I think?)..but I'm not sure how to go about that... but yea, as you can see in the screenshot, ultimately I'm trying to get it where weakness and slowness would be red and Strength would be green (as is now).
err... I'm a little confused (maybe I did something wrong) but how do I add the tag with this?
ultimately, what I'm trying to do is have the positive potion duration display as green ($a) and the negative potion duration display as red ($c, I think?)..but I'm not sure how to go about that... but yea, as you can see in the screenshot, ultimately I'm trying to get it where weakness and slowness would be red and Strength would be green (as is now).
I wanna say "no", but.. I honestly may not be entering the code correctly... thing is, the snippet you sent me is in xml format (I'm assuming?) but my file is in txt format... that said, I'm not sure where to put my "[ ]", " { }", and "< >" with the code you gave me... I gave it a shot, but every time I load the .txt file, it says "something went wrong".. this is what my attempt looks like:
I wanna say "no", but.. I honestly may not be entering the code correctly... thing is, the snippet you sent me is in xml format (I'm assuming?) but my file is in txt format... that said, I'm not sure where to put my "[ ]", " { }", and "< >" with the code you gave me... I gave it a shot, but every time I load the .txt file, it says "something went wrong".. this is what my attempt looks like:
It was indeed the XML format. The following is the text format (which is really unsuitable for more complex things):
So far so good! thanks a ton! I have noticed one thing however: let's say I only apply the code you gave me to 3/9 potion effect lines of code. If I received a 4th potion effect in game, it somehow overrides the previous 3 and makes them all the same color. That said... is there a limit to how many "potiondurationticks__" I can have, or is "potiondurationticks8" as high as I can go? if I can go higher, I want to set a high number (like, I dunno, 15 lol) so that the player doesn't run into the issue I mentioned earlier....but besides that, yes, this is exactly what I wanted!
*EDIT* I realized that "potiondurationticks8" serves as a cap/limit to how many potion effects can display on screen, so as long as I apply your code to each, I'll be fine... however I'm still curious if that limit can be extended
What if I use your 1.6.4 versions of your mods? I won't need it?
Exactly. I started using it in 1.7.2 and above, before that it's not required.
Lunatrius thank you so much, i will be starting a modpack with some of your mods, I hope u dont mind
How did I not find this mod for years? Way back during the Minecraft Alpha days, when everyone was just starting to figure out how to mod Minecraft, there was a mod called "What's My Light Level", which showed the light level at the top-left screen. (Community's come a LOOOONG way from the days of removing some file from the Minecraft JAR, copying/pasting in mods and hoping nothing conflicted!) I'll definitely be using it in my private custom modpacks.
Suggestion: Add circle guides to Laser Level similar to this chart
I find this algorithm to be the handiest:
http://www.ecse.rpi.edu/~wrf/Research/Short_Notes/bresenham.html
Knew I missed something. I'll look into this once I'll have the time to work on mods more frequently again. Will have to check how difficult it's going to be to add new shapes and things like that (GUI/storage wise).
Is there more info on InGameInfoXML syntax? I've managed to puzzle out a few things like this, but I'm not entirely sure why:
... but other things I do just run my client out of memory.
mostly I'm wondering things like: what is op? what is ge? what is gt? round? if?
For example why will this if not work? nearbyplayerdistance1 is true (-1) if there is no result.
I never use the text format because it's really hard to write/read. It's only there to server as a bridge from the old format to the newer formats (xml/json).
'round' should be used in combination with 'div' in the example you posted. '/' is a separator and will not divide the numbers. What that statement essentially does, it rounds the memory used to 1073741824 decimal places, which is essentially does nothing.
Those are functions and you can find more about each of them on the wiki. 'op' is the short term for the 'operation' function on that page.
That last example will not work. What you most likely want to do is to use the 'op' function to check if the distance is (not) -1 and print either an empty string or whatever you want to display.
Omg... a wiki. Google didn't know about that. I see now that there is a single reference to wiki under Config Patcher. Didn't notice that before.
Thank you.
Question: how exactly would I properly use the "potionnegative" tag?
Depends on what you're trying to achieve.
I'd basically like it to display negative effect time duration and icon like how the "potioneffect" tag works
Then you'll most likely want to wrap each (also change the "1" in "potioneffectnegative1" accordingly) of the existing potion tags into the following snippet:
In InGameInfo, is there a tag for death count? I can't find it or don't recognize it.
Thanks,
IMarv
Nope. Pretty sure there isn't a per-world death counter available. There is the global one in the stats but that tracks deaths for all worlds.
err... I'm a little confused (maybe I did something wrong) but how do I add the tag with this?
ultimately, what I'm trying to do is have the positive potion duration display as green ($a) and the negative potion duration display as red ($c, I think?)..but I'm not sure how to go about that... but yea, as you can see in the screenshot, ultimately I'm trying to get it where weakness and slowness would be red and Strength would be green (as is now).
Does this work the way you want it to? https://gist.github.com/7782aa901ec2ff1379b3
I wanna say "no", but.. I honestly may not be entering the code correctly... thing is, the snippet you sent me is in xml format (I'm assuming?) but my file is in txt format... that said, I'm not sure where to put my "[ ]", " { }", and "< >" with the code you gave me... I gave it a shot, but every time I load the .txt file, it says "something went wrong".. this is what my attempt looks like:
It was indeed the XML format. The following is the text format (which is really unsuitable for more complex things):
So far so good! thanks a ton! I have noticed one thing however: let's say I only apply the code you gave me to 3/9 potion effect lines of code. If I received a 4th potion effect in game, it somehow overrides the previous 3 and makes them all the same color. That said... is there a limit to how many "potiondurationticks__" I can have, or is "potiondurationticks8" as high as I can go? if I can go higher, I want to set a high number (like, I dunno, 15 lol) so that the player doesn't run into the issue I mentioned earlier....but besides that, yes, this is exactly what I wanted!
*EDIT* I realized that "potiondurationticks8" serves as a cap/limit to how many potion effects can display on screen, so as long as I apply your code to each, I'll be fine... however I'm still curious if that limit can be extended