
BlockForge LIB
一条命令即可为 Minecraft 打造新方块!让你的创意变为现实!
它完全不需要任何模组支持!
[非常重要提示]:
由于操作失误,文件曾被错误覆盖,对此造成的不便深表歉意!现在文件已正确整合,但不幸的是版本(Beta)v0.1 在过程中丢失了。感谢您的理解!
应用
- 作为建筑师,可以使用自定义方块为你的建筑添加更多细节!(尽量避免 到处 使用它们,以保持游戏的高帧率!)
- 作为数据包创作者,你可以将带有自定义机制的自定义方块加入游戏中!
- 你还可以尝试来自诸如《Minecraft Live》中展示的“硫磺洞穴”生物群系等概念的新方块,无需等待快照更新!

使用方法
要向 Minecraft 中添加一些方块,请在**重复命令方块(或独立的资源包)**中编写以下命令:
/function blockforge:define/<方块类型。示例:simple_block, pillar_block> {id:"<插入方块的 ID,通常使用蛇形命名法>",material:"<此处插入的方块将决定粒子效果、破坏时的声音以及在地图上显示的颜色等>",sound:"<放置方块时的声音(例如:'minecraft:block.stone.place')",name:"<在 HUD 和物品栏中显示的名称>",lore:"<(可选,如果不需要请留作 '[]')在工具提示中显示的物品描述>",synced:"<布尔值,对于柱状方块很重要>"}
要获取你的方块的物品,请运行:
/function blockforge:give {name:"<之前使用的相同名称>",lore:"<之前使用的相同描述>",id:"<你的方块的 ID;如果拼写错误,使用时将无法放置该方块!>"}
用你方块的特性替换这些描述!
方块类型
简单方块 (simple_block)
一个普通的 Minecraft 方块。无旋转功能,呈立方体形状。
柱状方块 (pillar_block)
一个简单的柱状方块。与橡木原木或任意其他柱状方块相同,其朝向取决于你放置它时所使用的方块面。它拥有三种朝向:x、y 和 z。“synced”组件描述了你的方块是否必须适配材料方块的朝向(当材料也是柱状/原木方块时生效)。这意味着调试棒也能正常工作。
柱状末端方块 (pillar_end_block)
它就像一个普通的柱状方块,但拥有全部六种朝向:北、南、东、西、上和下。它不支持“synced”组件。
可旋转方块 (rotatable_block)
类似于柱状末端方块,但它会面向玩家注视的方向。示例:发射器(向上和向下放置时的模型不同,但行为相同)。拥有全部六个方向。
方向性方块 (directional_block)
一个在放置时会面向玩家的方块。其行为与熔炉和箱子(方向性方块不连接)相同,具有四个方向:北、南、东和西。
简单台阶 (simple_slab)
一个简单的 Minecraft 台阶。需要两个额外组件:“upper”用于确定上半部分的模型,“double”用于确定完整台阶的模型。
它是如何工作的?(给极客看的)
它基本上模拟了真实方块的所有行为。首先创建一个普通方块(即材料),然后召唤出 6 个面的物品展示框,再加上另外 6 个用于阴影渲染的面(这会让方块看起来更真实,但代价是会产生一定的卡顿)。当你将物品拿在手中时,实际上它会给你一副带有特殊属性的物品展示框,使其看起来像是你的自定义物品。当物品展示框被放置后,数据包会自动将其替换为你的方块,并销毁该展示框。阴影渲染(环境光遮蔽)目前仍是一项实验性功能,如下图所示:

重要提示
- 请注意,你需要一个单独的资源包来将纹理和模型上传到游戏中;
- 在处理包含大量方块的地图时可能会非常卡顿!请小心!
- 这是一个库,它添加了轻松添加自定义方块的功能。它不会添加图片中显示的方块,那些只是示例,但你可以使用这个库来添加它们!
- “id”组件对于模型来说是相同的,因此请确保你的模型与 id 匹配!
未来计划
楼梯、栅栏和栅栏门将在稍后添加!

BlockForge LIB
Forge new blocks to Minecraft with one command! Bring your ideas to life!
It does not require any mods at all!
[Very Important Note]:
The files were originally overwritten because of a mistake, sorry for the inconvinience! The files are now put together correctly, but unfortunately the version (Beta) v0.1 was lost in the process. Thanks for the comprehension!
Applications
- As a builder, add more details to your builds using custom blocks! (Try not using them everywhere so that the game still has high FPS!)
- As a datapack creator, you can add custom blocks with custom mechanics into the game!
- You can also experiment new blocks from concepts like the Sulfur Caves biome represented in the Minecraft Live before any snapshots come into play!

How to use
To add some block to Minecraft, you write the following command in a repeating command block (or in a separate datapack):
/function blockforge:define/<block type. Examples: simple_block, pillar_block> {id:"<insert the id of the block, normally written in snake_case>",material:"<the block inserted here will decide things like the particles, the sound for breaking the block and the color shown in a map>",sound:"<the sound for placing the block (example: 'minecraft:block.stone.place')>",name:"<the name shown on your hud and inventory>",lore:"<(optional, if not wanted, leave it as '[]') the item description which shows on the tooltip>",synced:"<boolean, important for pillar blocks>"}
To get the item for your block, you run:
/function blockforge:give {name:"<the same name from earlier>",lore:"<the same from earlier>",id:"<the id of your block; MISTYPING THIS WILL NOT PLACE THE BLOCK WHEN USED!>"}
Substitute the descriptions with the characteristics of your block!
Block types
Simple Block (simple_block)
Just a simple Minecraft block. No rotations. Cube shaped.
Pillar Block (pillar_block)
A simple pillar block. The same as an oak log or as any pillar block. The orientation depends on which face of the block you've placed it. It has three orientations: x, y and z. The "synced" components describes if your block has to adapt the orientation of the material block (works if the material is also a pillar/log). That means the debug stick would also work.
Pillar End Block (pillar_end_block)
It's like just a normal pillar block, but it has all six orientations: north, south, east, west, up, and down. It does not have support for the "synced" component.
Rotatable Block (rotatable_block)
Just like the pillar end block, but it faces the direction the player is looking. Example: dispenser (the models are different when placing it facing up and down, but the behavior is the same). Has all six directions.
Directional Block (directional_block)
A block which faces the player when placed. It is the same behavior of furnaces and chests (directional blocks don't connect), which have four directions: north, south, east and west.
Simple Slab (simple_slab)
Just a simple Minecraft slab. Needs two extra components: "upper" determines the model for the upper variant and "double" for the double.
How does it work? (for nerds)
It basically imitates everything that a real block would do. It firstly creates a normal block (the material), then summons the 6 faces as item displays, plus other 6 faces for shading (it makes the blocks appear real, but at the cost of being a bit laggy). When you give the item to yourself, it actually gives you an item frame with special properties, so it appears like your custom item. When the item frame is placed down, the data pack automatically replaces it with your block, killing it. The shading (ambient occlusion) is still an experimental feature, represented below:

Important notes
- Notice that you will need a separate resource pack to upload the textures and the models into the game;
- It can be very laggy when dealing with a world with many blocks! Be careful!
- This is a library, which adds the functionality to add custom blocks easily. It does not add the blocks shown on the images, they're only examples, but you can add them using this library!
- The "id" component is the same for the model, so be sure that your models match the id!
Plans for the future
Stairs, fences, fence gates will be added later on!
下载 BlockForge LIB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlockForge LIB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlockForge LIB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlockForge LIB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlockForge LIB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlockForge LIB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 添加了用于自定义台阶的
define/simple_slab。 - 进行了细微调整。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
为下界添加了名为“贝尔泽布城堡”的新闻结构,以及新的 Boss、新工具、新物品、新敌人和新音乐唱片!
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
数据包
为你的 Minecraft 世界添加了超过 900 个新的进度
评论 0
登录后参与评分
还没有评论,来抢沙发吧