
hex blocks, by palkip


if you find bugs tell me on reddit, comments or dm

known bugs:
culling not working properly on some blocks: tinted glass, etc..
placing and breaking sometimes flashes holes


how to use:
in the quick actions [G] you can configure it
choose an atlas, or a player using the name


for color you can write the minecraft chat ones or an hex code

example of minecraft colors:
red, dark_red, blue, light_purple

example of hex codes:
red #FF0000
green #00FF00
blue #0000FF
purple #FF00FF
aqua marina #87ebc3

white or #FFFFFF resets the color to the default


atlases are not difficult to use
first you select the atlas: blocks, items, etc.
then based on what you selected you write the sprite, these are textures found in the minecraft jar
for example stone is atlas:blocks sprite:block/stone
most likely you can just keep using it like this, remember to always write block/ before the texture
you will find that tnt does not exist, this is because tnt has 3 textures, tnt_side, tnt_top, tnt_bottom
same for many other blocks such as the crafting table

you can extract the minecraft jar using the terminal: jar xvf minecraft.jar
just write minecraft and [TAB] to autocomplete


useful locations:

assets/minecraft/textures
the names in here correspond with what you need for atlases

assets/minecraft/atlases
here you can take a closer look on your options


repair command:
/function hex_blocks:repair


how the datapack works:
the placer summons 6 text displays and 1 marker, then culling is applied
the marker contains data about the custom hex block, so culling can be undone
right now hex blocks can only use 1 texture for all faces
if you have advanced questions, dm me


if you want to use this code on a custom map, other datapack, or any other project, dm me on reddit


my reddit
https://www.reddit.com/user/PALKIP/
