这是 README.txt 的副本
Hex Blocks by PALKIP
如果你发现 bug,请在 Reddit、评论区或私信告诉我
已知 bug:
某些方块(如玻璃)的剔除效果工作不正常
放置和破坏时偶尔会出现闪烁的空洞
使用方法:
在快捷操作 [G] 中可以进行配置
选择图集,或者通过名称选择玩家
对于颜色,你可以输入 Minecraft 聊天代码或十六进制代码
Minecraft 颜色示例:
red
dark_red
blue
light_purple
我还添加了基岩版自定义颜色:
十六进制代码示例:
#FF0000
#00FF00
#0000FF
#FF00FF
#87ebc3
#FFFFFF or white resets the color to the default
图集的使用并不复杂
- 首先你选择图集:方块、物品等
- 然后根据你所选的类别编写精灵名称,这些是存在于 Minecraft jar 包中的纹理
例如石头是:
atlas: blocks sprite: block/stone
你很可能可以像这样继续使用它,记住始终在纹理前加上 block/
你会发现 tnt 不存在,这是因为 tnt 有 3 个纹理:tnt_side, tnt_top, tnt_bottom。
许多其他方块也是如此,比如工作台,仅制作台就有 14 个纹理!
你可以使用终端解压 Minecraft jar 包:
jar xvf minecraft.jar
文件名不会是 minecraft.jar,只需输入 minecraft 然后按 [TAB] 键自动补全。
你需要在一个包含 minecraft.jar 的文件夹中打开终端才能执行此操作
有用位置:
- assets/minecraft/textures
- assets/minecraft/atlases
- 在这里你可以更仔细地查看你的选项,即纹理名称之前的部分
有用命令:
- /function hex_blocks:repair
- /function hex_blocks:hex_block/inventory/clear
- /function hex_blocks:hex_block/item/give
- /function hex_blocks:help
数据包工作原理:
放置器召唤 6 个文本显示实体和 1 个标记实体,然后应用剔除效果
标记实体包含有关自定义 Hex Block 的数据,因此可以撤销剔除效果
目前 Hex Blocks 只能为所有面使用 1 个纹理
如果你有高级问题,请私信我
如果你想在自定义地图、其他数据包或任何其他项目中使用此代码,请在 Reddit 上联系我
我的 Reddit
this is a copy of the README.txt
Hex Blocks by PALKIP
if you find bugs tell me on reddit, comments or dm
known bugs:
Culling not working properly on some blocks: 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 codes or an hex code
Example of minecraft colors:
red
dark_red
blue
light_purple
I have also added bedrock edition and custom colors:
Example of hex codes:
#FF0000
#00FF00
#0000FF
#FF00FF
#87ebc3
#FFFFFF or white resets the color to the default
Atlases are not too 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
You can likely 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, the crafter alone has 14 textures!
You can extract the Minecraft jar using the terminal:
jar xvf minecraft.jar
The file won't be named minecraft.jar, just write minecraft and [TAB] to autocomplete.
You need to open the terminal in a folder containing the minecraft.jar to do this
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, what comes before the name of the texture
Useful commands:
- /function hex_blocks:repair
- fixes culling and sometimes performance
- /function hex_blocks:hex_block/inventory/clear
- fills hex blocks inventory with white wool
- /function hex_blocks:hex_block/item/give
- give the player a hex block placer item
- /function hex_blocks:help
- displays in chat a simple tutorial
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, message me on reddit
my reddit
评论 0
登录后参与评分
还没有评论,来抢沙发吧