When downloading, please make sure to go to the Files tab, and download the version for your modloader. The files have "fabric" or "forge" in their name. Curseforge doesn't always show the correct versions on the main page.
Want to help translate this mod to your language?
You can help me translate this mod on https://crowdin.com/project/grid.
Looking for weekly versions?
Publishing a mod to CurseForge does, unfortunately, involve a lot of manual work. For this reason, starting with 21w03a, I'll only publish weekly versions on Modrinth, where publishing a version is just one button click for me. You can find weekly versions for all my mods on https://modrinth.com/mods?q=Giselbaer&s=downloads. Versions for official MC versions will still be published here.
Mod description
For a quick overview, see the screenshots!
Sometimes you want to place blocks in a regular pattern, so you need to count blocks, and if you mess up once, the error propagates to all subsequent blocks.
This mod displays a grid-like overlay over the world, with configurable spacing, so the blocks you're interested in get highlighted automatically.
For example, you're building a railroad and want to place a powered rail ever 20th block. Type /grid 20, walk to the first powered rail, type /grid here (or press the c button, can be configured), and the mod will highlight every 20th block from where you're standing.
Or, if you want to place torches in an area to prevent spawns, type /grid 5 - this highlights every 5th block; placing torches on each of them will light everything up enough.
You can switch between block mode (to highlight blocks to place stuff on) or line mode (to display borders; for example /grid chunks followed by grid lines will turn Grid into a chunk border highlighter), have the y-coordinate of the display floating with the player or fixed, and choose different X and Z spacings if you want that.
Commands:
/grid show and /grid hide: show/hide the grid, bound to the B key.
/grid here: set the origin of the grid to where the player is standing. Bound to C (for center)
/grid blocks: set Block mode: show blue squares above marked blocks
/grid lines: set Line mode: show yellow lines to the N/W of marked blocks
/grid chunks: set X and Y spacing to 16 and the origin to chunk borders. Use together with /grid lines to get a chunk border display that's less intrusive than F3-G
/grid <n> <m>: <n> and <m> are numbers; set the grid spacing to n in X direction and m in Y direction
/grid <n>: set the grid spacing to n in both horizontal directions
/grid fixy: toggle between floating the y coordinate of the grid with the player, or fixing it to where the player stands when you use the command. Bound to the Y key.
/grid spawns: show possible mob spawn locations
/grid circles: shows circle overlays. In line mode, this shows regular circles; in block mode, it tries to find and mark the blocks you should build on to get a circle. Obviously, this can't work well with very small diameters, for example, trying to mark a 3x3 circle will give you a square.
/grid distance <n>: sets the range in blocks, that the grid is rendered around you. If you use very large spacings/circle diameters, you need to adjust this too. Be careful though, high values for distance absolutely kill your framerate when you turn spawn locations on.
/grid biome <name>: draw a marker on all blocks in a certain biome. For example, /grid biome river helps when you want to build a drowned or squid farm. (Only with Grid version 1.5+).
/grid hex: Draw a hex grid. In block mode, you get the corners of each hex; in line mode, you get lines around the hexes. (Only with Grid version 1.6+)
All keys can be reconfigured using the standard Controls UI.
Fabulous Graphics Warning
In the 1.16.x versions, Grid has a bug where things get drawn, even when they should be invisible behind blocks. This doesn't happen with Fast or Fancy graphics, it's just Fabulous that has this bug. I'm at a loss what the cause may be, so I probably won't be able to fix this without help. In the meantime, if this bothers you, please set Graphics Quality to Fast/Fancy as a workaround.
Hi, is it possible to lock the grid in a certain block, because I don't want the grid to follow me. I want to know a certain perimeter and the command /grid here seems not working, because the grid moves with me. Thank you in advance!
The grid is always displayed around you, because that's where you see it. /grid here just sets the block that the grid is aligned around. But you can use /grid distance to set the distance the grid gets displayed, so you can set that to see it even when you're outside the perimeter.
[deleted | i cant read]
Grid renders as almost invisible very hard to see black frame in 1.16.4-1.6.4 forge version :(
It shouldn't. But newer versions allow you to set the color, maybe something went wrong on this side? Try the "/grid config" command, it'll allow you to set the colors for all the different HUD elements Grid has to offer.
well i thought it would help me make circles in minecraft nope just some weird ui suff and before you suggesrt circle genearator ive been trying to build a circle in creative for 8 hours following there guides.... sutch crap.,..
I thought the mod was broken since no /grid command(s) popped up, until I tested one of the commands and it worked???
(further explanation: when i typed /grid, it highlighted as red, it worked anyways so that aint a problem)
edit: nevermind it didnt work no grids were shown, the version im using is forge 1.16.4
Forge for 1.16 does not support client side commands (see https://forums.minecraftforge.net/topic/89495-client-side-commands-in-116/), so I can make the command itself work but not the autocompletion/syntax check, that's why the command is shown in red.
If no grids are shown, maybe you're using fabulous graphics mode? Fabulous graphics doesn't work with Grid in Forge; there's a workaround in Fabric that I can't use in Forge, unfortunately. With Forge, to use grid, you need to use Fast or Fancy graphics.
I normally use Fast graphics,
Also tried setting the graphics to fabulous and back to fast, but the grids still didn't show.
I thought it was just the commands but it is also on the key bind things.
Wow I should've put this in the issues section
I'll just use the fabric version for now until the forge one gets fixed or something
thanks for letting me know
Since the new Version of minecraft(1.16.4), the overlays, esspecialy the mob spawn locations dont render and I get this Error in my log:
Does that also happen when you disable all mods except Grid? Do you have any mods that mess with rendering, like Optifine, or some other mod that adds shaders or speed up the display? Or some mod that does (sometimes) draw some other overlay? The error message hints at something trying to display something, and passing a value that's not allowed - 26 in the first case, 27 in the second. The only such value I use is a 1, the internal value for "draw a line" as opposed to "draw a triangle" or "draw a bunch of lines". No 26 or 27 here.
Unfortunately, the error message provides no hint as to what the real cause is. But it's very well possible that some other mod draws something before Grid does, which aborts the drawing, so Grid never gets a chance to draw its stuff, or the other mod leaves the drawing subsystem in some weird state that Grid can't use.
You did see the warning about Fabulous Graphics? You need to switch MC to use Fast, or Fancy Graphics in combination with Grid and Forge; Fabulous will not work. There is a workaround for Fabric, but that kind of workaround isn't possible with Forge, unfortunately.
In reply to thorgeig:
Ok, I will test wich mod does creates the problem. Maybe optifine. Use a combination, and i have an Idea, but I need to check
Does this work with Optifine? (forge)
I don't know, just try it. And remember, the Forge version does not work in Fabulous Graphics mode, so try in Fast or Fancy as well.
Just waiting for the Fabric 1.16.4 update. Please?
It's right there: https://www.curseforge.com/minecraft/mc-mods/grid/files/3105633
Now this is a great idea, glad someone though of it!
Seems to not currently work with Canvas, which is weird because Block Meter Fabric *does*.
Originally, when I made BlockMeterFabric, I "copied" the line rendering stuff from Grid to BlockMeter. But, with 1.16, that method had lots of problems with the fabulous setting, so I converted the newer versions of Grid to use a VertexConsumer, change the mixin point, and use
RenderLayer.getLines()
for that VertexConsumer. On the other hand, I gave future development of BlockMeterFabric to someone who was quite active in adding new features, so that change to the rendering code never made it there.I'll put checking canvas compatibility on my todo list, but I don't know if I'm competent enough to find the problem.
This is the new mixin btw:
https://github.com/gbl/Grid/blob/fabric_1_16/src/main/java/de/guntram/mcmod/grid/mixin/MixinWorldRenderer.java
No, it doesn't, and can't work with Canvas. The old mixin injected into a place after the whole world was drawn, which worked in Fast and Fancy mode, but in Fabulous mode, the display had already lost its Z information at that point, so whatever I was drawing was either completely in front of or completely behind the world.
In order to fix that, I had to move the mixin into the WorldRenderer itself. However, Canvas completely replaces the vanilla WorldRenderer, so my mixin doesn't ever get called. The only way to get around this is a) mix into canvas itself if it's there, or b) rely on Canvas'
grondag.frex.api.event.WorldRenderEvents
, both of which opens a whole new can of worms that' I'm not willing to cater to.