This mod aims to show information about villages around each player, to install the mod, just put it in mods folder, when you are near a village, hit the V key and you will get information on your screen, each part of the information can toggle on/off by using control key combined with 1-5 numbers, very useful when you want to design your iron farm or villager breeding system
MOD PACKS : Feel free to use my mod in any mod pack you want, you don't need to ask for permission, have fun with it
CHANGE LOG
Change log for 1.9-7 :
-------------------------------
1- Fixed the offset for village center
2- Fixed the offset and boundary calculations for village golem spawn area
3- Changed the algorithm for drawing village sphere (thanks tterrag and Limya)
4- Added key bindings to toggle more stuff on/off
5- Now you have ability to toggle depth calculation on/off
6- Added spawn chunk area indicator and graphical representation
7- Added chunk border drawing
8- Now you have ability to draw some parts as semi solid polygons (Village center block, golem area, chunk border, and spawn chunk boundary)
9- Can toggle per village coloring on/off
10- Added config file for destinations being used to draw spawn chunk and village information
11- Moved keybinding events to a single file
12- Moved different boolean flags to the main mod class
Why do all the numbers seem slightly off? The bounding box for the golem is 17x17 and the village boundary is 33x33? Also, if I place only two doors on the east/west axis with 17 blocks of space in between, the center of the village will end up being 1 block south and 1 block east of center. Any insight into this?
Yahi just noticed that the center drawing was wrong, corrected, will upload a new version very soon, about golem spawn,i looked into vanilla code of 1.9 :
I never learned Java, but I did a quick google (and figured it would be the same as C/C++, which I do know) and rand.nextInt(X) will pick a number from 0 to X-1. So it should generate a value from -8 to +7, which would be a 16x16 bounding box. This will probably affect your calculation on where the center is as well.
But one block off is not a major problem. Visually representing a village is a great aid, and I wanted to push it to its limit by seeing just how closely you can compact villages for a golem farm. Sure, I could copy someones design, but they all throw out numbers like "make an 18x18 box" without actually supporting their data. I prefer more precise info.
I was also wondering about the center of village calculations. If I place two doors 20 blocks apart, then throw down a villager in creative to make it a Village, sometimes it would count only one door and place the center by it, and sometimes it would shift the overlay to count both doors and place the center roughly between them. Is this due to the mod or the way Minecraft handles updates?
On another topic, you've stumbled upon something I've been wanting for a Minecraft mod for years: a shaping tool. I didn't know if it would be possible to overlay geometric shapes, like a giant dome, onto the client, but now I know that it is. Imagine if a mod could let the user input any of several shapes (sphere, ellipsoid, etc), pick a size and point of origin, and overlay the shape on the client to use a guide for placing blocks. Just dropping an idea.
I never learned Java, but I did a quick google (and figured it would be the same as C/C++, which I do know) and rand.nextInt(X) will pick a number from 0 to X-1. So it should generate a value from -8 to +7, which would be a 16x16 bounding box. This will probably affect your calculation on where the center is as well.
But one block off is not a major problem. Visually representing a village is a great aid, and I wanted to push it to its limit by seeing just how closely you can compact villages for a golem farm. Sure, I could copy someones design, but they all throw out numbers like "make an 18x18 box" without actually supporting their data. I prefer more precise info.
I was also wondering about the center of village calculations. If I place two doors 20 blocks apart, then throw down a villager in creative to make it a Village, sometimes it would count only one door and place the center by it, and sometimes it would shift the overlay to count both doors and place the center roughly between them. Is this due to the mod or the way Minecraft handles updates?
On another topic, you've stumbled upon something I've been wanting for a Minecraft mod for years: a shaping tool. I didn't know if it would be possible to overlay geometric shapes, like a giant dome, onto the client, but now I know that it is. Imagine if a mod could let the user input any of several shapes (sphere, ellipsoid, etc), pick a size and point of origin, and overlay the shape on the client to use a guide for placing blocks. Just dropping an idea.
1- looked into the code and you are right, the upper bound is not the number that would show up in random but one less than that, corrected the golem center now
2- the reason a door will not being registered as part of the village is vanilla and related to the villager not the village, each villager has a radius that he will look for doors to register them for his village
3- the center of the village is being calculated by the server, so i have nothing to do regarding that, i just get the position and draw stuff based on that position, the reason i had offset was the translate on open gl with wrong numbers
4- i suggest watching tango tek on you tube, he not only gives you a design, but in one of his videos he explains the concept of chaining villages and using my mod would really help you understand how this works specially if you show the center of the village and door lines and nothing else
5- the center of village calculation is really simple, when a villager registers door for village, the position of all doors will be evaluated to get the average point of all of them, and that would be the center of village, so if you have a door at (-10,0,0) and the other one at (10,0,0) the center would be (0,0,0) = (-10 + 10) / 2 !
6- about drawing other shapes, it is totally possible, that is simply open gl drawing, for base shapes like spehere, cube, prism, and others, you could find many many algorithms online, for more complex shapes (like drawing the borders of a building you made and want to show it some how) it is more complex, you may want to look for schematica mod and it's source for such a thing. but putting a block to indicate the center and then drawing the base stuff, well, there was a mod that had done it before, i don't remember it's name but it had such a block. in other words, it is totally possible and after i finish what i am doing with this mod (drawing a border of spawn chunk is now being coded for next update) i will look if i can add such a thing in the next mod i have in mind (a little teasing, it has an item like golden lasson, a block for chunk loading will be added to the mod soon, and if i can manage to learn how to write tanks, maybe something like ender chest mod stuff will be added, but no promis :D)
at the end, give me few hours and the next update of the mod should be ready with much cleaner code
There we go, everything is calculated properly now :
the red wool line is the same height as the village center, as you notice, there is only one door in this village and that causes the center of the village to be the same block as the bottom part of the door and the golem spawn area is corrected to, now it shows the correct boundary
last thing remaining for this part of the mod is to add two features, 1- per village coloring, 2- semi solid cubes instead of cube border for parts that make sense, specially the iron golem area
And I join a vanilla server ( like realms ) , can this mod work fine ?
Thank you!
No, for many parts i am using fml, the events for key binding and rendering all are fml content meaning that your server at least needs forge, but other than forge, there is 0 dependencies. so the server needs fml to recieve messages from player to collect village data.
(In regard to a mod that gives realistic animal genetics):
Would you really rather have bees that make diamonds and oil with magical genetic blocks?
... did I really ask that?
I think there was another mod like this for 1.7.10 but that mod had some other features that i won't add to this, like indicating strong hold, etc. but i am not sure if it was updated to 1.7.10 or it was just 1.7.2
@Keybounce, There is another mod thats similar that adds village info into the F3 screen, but I think it went back only to 1.8. IN any case, you can find it if you do a search on this forum.
@Jiraiya, mod is working and working well. Thanks!
your welcome glad it works without problem. also, FYI every video out there about spawn chunks are wrong, they say it's a 12 * 12 chunk, but in 1.9 it is 16 * 16, the way i find them is that i move back 256 blocks from the spawn point and check every block to see if their chunk is a spawn chunk or not, so regardless of MC version and how they will change it, unless they expand it beyound 256 blocks from spawn point in each direction, the mod should always indicate the correct chunks, i may change the loop a bit in future to reduce the number of blocks that is being checked but honestly, the currect loop goes so fast that i don't see any reason to change it.
Updated to 1.9-8, fixed critical issue with server / client crashing when you ask for spawn chunk information, donno what i was thinking to ask server information on client side of the stuff lmao, oopse
it needs forge, and there is no forge for minecraft 1.9.2 yet, but about the iron golem farm, i can't see any better tool to help you figure out what is going on, with iron titan, i would ruin the whole sequence of village chaining multiple times if it was not for this mod actually, those iron golem farms were the main purpose of me making this mod.
This mod aims to show information about villages around each player, to install the mod, just put it in mods folder, when you are near a village, hit the V key and you will get information on your screen, each part of the information can toggle on/off by using control key combined with 1-5 numbers, very useful when you want to design your iron farm or villager breeding system
MOD PACKS : Feel free to use my mod in any mod pack you want, you don't need to ask for permission, have fun with it
Change log for 1.9-7 :
-------------------------------
1- Fixed the offset for village center
2- Fixed the offset and boundary calculations for village golem spawn area
3- Changed the algorithm for drawing village sphere (thanks tterrag and Limya)
4- Added key bindings to toggle more stuff on/off
5- Now you have ability to toggle depth calculation on/off
6- Added spawn chunk area indicator and graphical representation
7- Added chunk border drawing
8- Now you have ability to draw some parts as semi solid polygons (Village center block, golem area, chunk border, and spawn chunk boundary)
9- Can toggle per village coloring on/off
10- Added config file for destinations being used to draw spawn chunk and village information
11- Moved keybinding events to a single file
12- Moved different boolean flags to the main mod class
13- Other code cleanup and refactoring
Why do all the numbers seem slightly off? The bounding box for the golem is 17x17 and the village boundary is 33x33? Also, if I place only two doors on the east/west axis with 17 blocks of space in between, the center of the village will end up being 1 block south and 1 block east of center. Any insight into this?
Yahi just noticed that the center drawing was wrong, corrected, will upload a new version very soon, about golem spawn,i looked into vanilla code of 1.9 :
it is looking for a block from -8 to 8 in both x and z and -3 to 3 on y from the center, am i wrong?
I never learned Java, but I did a quick google (and figured it would be the same as C/C++, which I do know) and rand.nextInt(X) will pick a number from 0 to X-1. So it should generate a value from -8 to +7, which would be a 16x16 bounding box. This will probably affect your calculation on where the center is as well.
But one block off is not a major problem. Visually representing a village is a great aid, and I wanted to push it to its limit by seeing just how closely you can compact villages for a golem farm. Sure, I could copy someones design, but they all throw out numbers like "make an 18x18 box" without actually supporting their data. I prefer more precise info.
I was also wondering about the center of village calculations. If I place two doors 20 blocks apart, then throw down a villager in creative to make it a Village, sometimes it would count only one door and place the center by it, and sometimes it would shift the overlay to count both doors and place the center roughly between them. Is this due to the mod or the way Minecraft handles updates?
On another topic, you've stumbled upon something I've been wanting for a Minecraft mod for years: a shaping tool. I didn't know if it would be possible to overlay geometric shapes, like a giant dome, onto the client, but now I know that it is. Imagine if a mod could let the user input any of several shapes (sphere, ellipsoid, etc), pick a size and point of origin, and overlay the shape on the client to use a guide for placing blocks. Just dropping an idea.
1- looked into the code and you are right, the upper bound is not the number that would show up in random but one less than that, corrected the golem center now
2- the reason a door will not being registered as part of the village is vanilla and related to the villager not the village, each villager has a radius that he will look for doors to register them for his village
3- the center of the village is being calculated by the server, so i have nothing to do regarding that, i just get the position and draw stuff based on that position, the reason i had offset was the translate on open gl with wrong numbers
4- i suggest watching tango tek on you tube, he not only gives you a design, but in one of his videos he explains the concept of chaining villages and using my mod would really help you understand how this works specially if you show the center of the village and door lines and nothing else
5- the center of village calculation is really simple, when a villager registers door for village, the position of all doors will be evaluated to get the average point of all of them, and that would be the center of village, so if you have a door at (-10,0,0) and the other one at (10,0,0) the center would be (0,0,0) = (-10 + 10) / 2 !
6- about drawing other shapes, it is totally possible, that is simply open gl drawing, for base shapes like spehere, cube, prism, and others, you could find many many algorithms online, for more complex shapes (like drawing the borders of a building you made and want to show it some how) it is more complex, you may want to look for schematica mod and it's source for such a thing. but putting a block to indicate the center and then drawing the base stuff, well, there was a mod that had done it before, i don't remember it's name but it had such a block. in other words, it is totally possible and after i finish what i am doing with this mod (drawing a border of spawn chunk is now being coded for next update) i will look if i can add such a thing in the next mod i have in mind (a little teasing, it has an item like golden lasson, a block for chunk loading will be added to the mod soon, and if i can manage to learn how to write tanks, maybe something like ender chest mod stuff will be added, but no promis :D)
at the end, give me few hours and the next update of the mod should be ready with much cleaner code
There we go, everything is calculated properly now :
the red wool line is the same height as the village center, as you notice, there is only one door in this village and that causes the center of the village to be the same block as the bottom part of the door and the golem spawn area is corrected to, now it shows the correct boundary
last thing remaining for this part of the mod is to add two features, 1- per village coloring, 2- semi solid cubes instead of cube border for parts that make sense, specially the iron golem area
A new update, spawn chunk indication is finished
Sounds great! But... it looks like the hosted file is the same one from two days ago?
Awesome!
But I have a question.
Is this mod support vanilla server ?
for example, I install this mod at client side.
And I join a vanilla server ( like realms ) , can this mod work fine ?
Thank you!
Yah, working on some minor feature, today will push the update if final touches go the way i want.
No, for many parts i am using fml, the events for key binding and rendering all are fml content meaning that your server at least needs forge, but other than forge, there is 0 dependencies. so the server needs fml to recieve messages from player to collect village data.
Uploaded the new file with fixes and extra features
Do you know of a mod like this for 1710?
* Promoting this week: Captive Minecraft 4, Winter Realm. Aka: Vertical Vanilla Viewing. Clicky!
* My channel with Mystcraft, and general Minecraft Let's Plays: http://www.youtube.com/user/Keybounce.
* See all my video series: http://www.minecraftforum.net/forums/minecraft-editions/minecraft-editions-show-your/2865421-keybounces-list-of-creation-threads
(In regard to a mod that gives realistic animal genetics):
Would you really rather have bees that make diamonds and oil with magical genetic blocks?
... did I really ask that?
I think there was another mod like this for 1.7.10 but that mod had some other features that i won't add to this, like indicating strong hold, etc. but i am not sure if it was updated to 1.7.10 or it was just 1.7.2
@Keybounce, There is another mod thats similar that adds village info into the F3 screen, but I think it went back only to 1.8. IN any case, you can find it if you do a search on this forum.
@Jiraiya, mod is working and working well. Thanks!
your welcome glad it works without problem. also, FYI every video out there about spawn chunks are wrong, they say it's a 12 * 12 chunk, but in 1.9 it is 16 * 16, the way i find them is that i move back 256 blocks from the spawn point and check every block to see if their chunk is a spawn chunk or not, so regardless of MC version and how they will change it, unless they expand it beyound 256 blocks from spawn point in each direction, the mod should always indicate the correct chunks, i may change the loop a bit in future to reduce the number of blocks that is being checked but honestly, the currect loop goes so fast that i don't see any reason to change it.
Updated to 1.9-8, fixed critical issue with server / client crashing when you ask for spawn chunk information, donno what i was thinking to ask server information on client side of the stuff lmao, oopse
This work for minecraft 1.9.2 ??
This mod help with the creation of iron farm?
it needs forge, and there is no forge for minecraft 1.9.2 yet, but about the iron golem farm, i can't see any better tool to help you figure out what is going on, with iron titan, i would ruin the whole sequence of village chaining multiple times if it was not for this mod actually, those iron golem farms were the main purpose of me making this mod.
i absolutely love your mod! now that forge is out for 1.9.4 will there be an update to this village info mod?