- check_circle Functions
Published Oct 15th, 2023, 10/15/23 6:30 am
- 1,771 views, 7 today
- 84 downloads, 0 today
109
This Datapack is a framework to add Blocks with custom textures.
You can add any texture of any playerhead as a block.
The created block will not be darkened by blocks placed next to it or inside of it.
The creation of this framework Datapack has been inspired by KawaMood
You can, of course use this pack in your own packs and projects ^^
(Just copy the headblocks folder into the data folder in your datapack. You can just adress the functions as you would normally [/function headblocks:blocks/place/water] from your datapack. Just remember to also put the function "headblocks/meta/load" into your "minecraft:tags/functions/load.json)
To add a custom block, create a new mcfunction in blocks/place and give it your block name (or copy one of the 2 existing functions).
Copy the command from one of the example functions, and adjust the "Properties:{textures:[{Value:"TEXTUREHERE"}]} to your head texture.
[There are comments to explain the function in the example block mcfunctions too]
You can get the texture value from this website (there are other websites too)
If you want to place the block, just run the function you created at the block you want to place it at.
(for the water block for example: "/execute at @s run functon headblocks:blocks/place/water")
(if you place blocks dynamically, its better to use: "/execute at @s align xyz run ....")
To remove a block, run the function headblocks:blocks/remove/block at the block you want to remove your custom block from (this is the block it is displayed at).
Creating a Head Block only creates the texture! you can place any other block "inside" of the texture.
(Think of a custom crafting table, different barrel types, ...)
Every Head Block is one entity! The entity is only being processed by this datapack, if a player is within 100 blocks of it to reduce lag.
If you want the datapack to be more verbose with its actions, do "/scoreboard players set %debug headblocks.dummy 1". With this the datapack will announce what it does in chat. (It will announce to everyone)
If you want to reduce the datapacks chat output, just do "/scoreboard players set %debug headblocks.dummy 0". With that the chat output will be removed.
If you want to remove all Head Block entities, do "/function headblocks:meta/remove_all" to remove all entities this datapack has added. Keep in mind, that only loaded entities can be killed, so there might be some left in unloaded chunks.
The only other thing this datapack adds is a scoreboard called headblocks.dummy if you want to remove the pack, simply remove this scoreboard and all headblock entities in your world.
You can add any texture of any playerhead as a block.
The created block will not be darkened by blocks placed next to it or inside of it.
The creation of this framework Datapack has been inspired by KawaMood
You can, of course use this pack in your own packs and projects ^^
(Just copy the headblocks folder into the data folder in your datapack. You can just adress the functions as you would normally [/function headblocks:blocks/place/water] from your datapack. Just remember to also put the function "headblocks/meta/load" into your "minecraft:tags/functions/load.json)
To add a custom block, create a new mcfunction in blocks/place and give it your block name (or copy one of the 2 existing functions).
Copy the command from one of the example functions, and adjust the "Properties:{textures:[{Value:"TEXTUREHERE"}]} to your head texture.
[There are comments to explain the function in the example block mcfunctions too]
You can get the texture value from this website (there are other websites too)
If you want to place the block, just run the function you created at the block you want to place it at.
(for the water block for example: "/execute at @s run functon headblocks:blocks/place/water")
(if you place blocks dynamically, its better to use: "/execute at @s align xyz run ....")
To remove a block, run the function headblocks:blocks/remove/block at the block you want to remove your custom block from (this is the block it is displayed at).
Creating a Head Block only creates the texture! you can place any other block "inside" of the texture.
(Think of a custom crafting table, different barrel types, ...)
Every Head Block is one entity! The entity is only being processed by this datapack, if a player is within 100 blocks of it to reduce lag.
If you want the datapack to be more verbose with its actions, do "/scoreboard players set %debug headblocks.dummy 1". With this the datapack will announce what it does in chat. (It will announce to everyone)
If you want to reduce the datapacks chat output, just do "/scoreboard players set %debug headblocks.dummy 0". With that the chat output will be removed.
If you want to remove all Head Block entities, do "/function headblocks:meta/remove_all" to remove all entities this datapack has added. Keep in mind, that only loaded entities can be killed, so there might be some left in unloaded chunks.
The only other thing this datapack adds is a scoreboard called headblocks.dummy if you want to remove the pack, simply remove this scoreboard and all headblock entities in your world.
Compatibility | Minecraft 1.20 |
Tags |
1 Update Logs
Update #1 : by imalittlhigh 10/15/2023 9:14:00 amOct 15th, 2023
added project implementation "guide"
tools/tracking
6093236
119
head-blocks-custom-block-framework
Create an account or sign in to comment.
9. execute as @s[tag=headblocks.light.east] run tp @s ~-2.0002 ~ ~
need to replace
9. execute as @s[tag=headblocks.light.east] run tp @s ~-1.0002 ~ ~
If you dont make the sides thin, you get a lot of z fighting (which also looks bad)
Thats why i made this with only one head ^^
The problem is, that the custom block just disappears as soon as youre like 20 blocks away :D (And the Z fighting)
Might work on some sort of custom block face framework (to replace one face of a block with texture)
Also are we talking about the same thing? like replacing each face of a block with a plane of one of the sides of a head? Cause ur saying 8 heads, but blocks have 6 planes
But you could only rly use textures that repeat tho.
Might look into doing the 8 head thing ^^