Items added :
This mod only adds two items : the blank block and the blank tool :
- The blank tool can be obtained by pressing H (or whatever keybind you want it to be) and discarded in the same way. It can be used to place, break or even fill areas with blank blocks.
- The blank block can pe placed using the tool or obtained as items from dropping the tool and "extracting" blank blocks. They won't drop if placed and broken.
Tool functions :
When you have the blank tool in your hand, an outline will appear wherever you're looking :
- Right clicking will place a blank block where that outline is.
- Crouching and right clicking will set the first position for an area fill : Crouch and click again to pick a second position and fill the area. You can also do crouch and Q (or whatever your "drop item" keybind is) will cancel the current selection.
- If you break a block (blank block or any other) using the tool, nothing will happen. But if you crouch and break a blank block, it will trigger a domino-like effect and break every block adjacent to the one broken last and repeat indefinitely until there's no more. I might add some limitations afterwards as currently it can cause quite a bit of lag when removing big chunks. For example : It helps if you made a big tower of blank blocks and want all of it gone without waiting for them to delete themselves.
- As said earlier, if you drop the item with Q (or whatever keybind you have), it will "extract" blank blocks and put them in your inventory. You can also crouch and drop blank blocks and it will re-add them to your blank tool.
Block limit :
When placing a blank block using the tool, it will remove one block from your tool's durability.
This also happens when you extract blocks from it or fill an area. This limit starts at 10,000 and goes down per every block you place or extract. This is also why you can re-add extracted blocks to make sure you have enough next time you want to fill a big area.
For now, there is no way to make the limit higher or lower because i need to make the tool's durability equal to how many blocks you have left, so maybe in the future it will be shown as a percentage in the tool's durability.
This limit regenerates 1 block every 0.5 seconds, or 2 blocks per second by default as long as you are connected to the world.
Admin gamerules :
To manage the mod's config, this mod uses the classic /gamerule command :
- BlankBlockPlacingReach defines how far your cursor can go to place blank blocks. This has no restrictions but if you pur a really high value, expect the server to lag a lot because the cursor has to load every chunk it passes to make sure no blocks are in the way. Default : 5
- BlankBlockParticleIterations defines how many particles your cursor should be made of : a value of 1 would make it have 1 particle on each corner, 2 would have 1 on each corner and 1 in the middle of every edge, 3 would have 1 particle on each corner and 2 equally separated particles on every edge. Thats enought for examples, it is pretty simple to understand lol. This again doesn't have any restrictions but i dont reccomend values above 100 and 0 or less makes the cursor not appear. Default : 10
- AllowFloatingBlankBlocks defines if players can place blank blocks in mid air. If it is set to true, people can easily clutch falling by placing one below their feet abd landing on it, but if set to false, it will only work if you look at a block and place it like any other block. This also applies to area selections. Default : true.
- BlankBlockExpireTime defines how long (in seconds) a blank block will last after being placed. Set to 0 to make the blank blocks stay forever. Negative values will make the blank block destroy themselves after 0.25 seconds (because that's when they first tick). Default : 60
- BlankBlockExpireWarning defines when a warning particle should be shown on almost-expired blocks so players don't stand on them and fall. It sets how many seconds before expiring this warning should appear. For example : if set to 1, the warning will show up 1 second before the block deletes itself. This has no restrictions but 0 or less will make the warning never show up and too high values will make a lot of particles appear which causes lag. Default : 3
BlankBlockReplenishCooldown defines how long it takes (ticks) to regain one blank block. The higher the value, the longer it takes. This has no restrictions but negative values will make your blank blocks infinite and too high will bore out everyone ! Set to 0 to disable automatic replenishing. Default : 10
Also note that updating one of these gamerules will apply them automatically but not sync them with online players and will cause weird cursors and other visual glitches. All you need to do to fix it is just leaving and rejoining though.
Welp thats all i gotta say folks, have fun !
Also i didn't want to name it "Asteroid's blank blocks" but i had to cuz another mod with the name "Blank blocks" already existed :/