坩埚混凝土粉末
? CauldronConcretePowder 是一款简单却强大的数据包,它让你能够通过将混凝土粉末投入盛水的炼药锅中,瞬间将其转化为硬化混凝土,从而提升你的 Minecraft 体验。
再也不用进行繁琐的手动放置了。
⚡ 此数据包经过精心优化,以实现最佳的性能和效率。我们的基准测试表明,它的运行速度显著快于 VanillaTweaks 的等效方案。
? 最初由社区需求发起创建。

![]() |
![]() |
![]() |
|---|
⚙️ 配置
? 转换非玩家掉落的混凝土粉末
从版本 1.6.0 开始,你可以让数据包转换所有落入水盆中的混凝土粉末物品,
而不仅仅是玩家掉落的物品(例如:被水流携带的物品、发射器投放的物品、从掉落方块中破碎的物品等)。
运行此命令一次(它会随你的世界一起保存):
scoreboard players set #always_check cauldron_concrete_powder.config 1
若要恢复默认行为(仅检查玩家掉落的物品),请运行:
scoreboard players reset #always_check cauldron_concrete_powder.config
⚡ 默认情况下,仅在玩家掉落物品时才会检查物品,这是性能最优的选项。 启用
#always_check后,则会每秒检查一次盛有水的炼药锅中的物品。
? 添加自定义炼药锅配方
CauldronConcretePowder 使用函数标签(function tags)来允许其他数据包轻松添加它们自己的“炼药锅配方”。
这意味着你可以创建自定义物品,使其在掉入盛水的炼药锅时发生转化,就像混凝土粉末一样。
? 工作原理
dry_concrete 函数通过函数标签 #cauldron_concrete_powder:signals/dry_concrete 被调用。
当物品被投入盛水的炼药锅时,会执行此标签,
从而允许多个数据包添加各自的转化逻辑。
你的自定义函数应:
- 检查掉落的物品是否匹配你自定义的“粉末”物品。
- 如果匹配,将物品变为其“硬化”版本。
- 如果转化成功且物品数量达到 16 或更多,则调用
remove_water函数以降低炼药锅的水位。 - 重置任何临时分数。
? 创建自定义数据包
要添加你自己的坩埚配方,请创建具有以下结构的数据包:
your_datapack/
├── ? pack.mcmeta
└── ? data/
└── ? your_namespace/
├── ? functions/
│ └── ? cauldron_concrete_powder/
│ └── ? dry_concrete.mcfunction
└── ? tags/
└── ? functions/
└── ? signals/
└── ? dry_concrete.json
- ? 将
your_namespace替换为你自己的数据包命名空间。 - ?
dry_concrete.mcfunction应包含你自定义的转换逻辑。 - ?️
dry_concrete.json应定义指向该函数的函数标签:
{
"values": [
"your_namespace:cauldron_concrete_powder/dry_concrete"
]
}
你可以从 assets/function_tag_template.zip 下载模板数据包,并根据需要进行修改。
? 示例函数
以下是你的 dry_concrete.mcfunction 可能包含的内容示例:
#> your_namespace:cauldron_concrete_powder/dry_concrete
#
# @within #cauldron_concrete_powder:signals/dry_concrete
#
# 检查你的自定义粉末并进行转换
execute if score #success cauldron_concrete_powder.dropped matches 0 store success score #success cauldron_concrete_powder.dropped if items entity @s contents your_namespace:custom_powder run data modify entity @s Item.id set value "your_namespace:custom_hardened"
# 如果成功且数量 >=16,则移除水
execute if score #success cauldron_concrete_powder.dropped matches 1 store result score #count cauldron_concrete_powder.dropped run data get entity @s Item.count
execute if score #success cauldron_concrete_powder.dropped matches 1 if score #count cauldron_concrete_powder.dropped matches 16.. run function cauldron_concrete_powder:v1.4.0/remove_water
# 重置分数
scoreboard players reset #success cauldron_concrete_powder.dropped
scoreboard players reset #count cauldron_concrete_powder.dropped
请确保在调用 remove_water 时使用的版本号与 CauldronConcretePowder 的当前版本一致。
这实现了基于熔炉的酿造系统的无缝集成与扩展!
? 适用于 Fabric 模组开发者
Fabric 模组也可以通过在其模组的 src/main/resources/data/ 文件夹中包含符合数据包兼容格式的文件来添加自定义熔炉配方。使用与上述相同的结构,将你的自定义 dry_concrete.mcfunction 和函数标签 JSON 文件放置在相应的目录中。这样,你的模组就可以在不与其他数据包或模组冲突的情况下扩展熔炉转换系统。
例如,你的模组资源可能包含以下结构:
src/main/resources/data/
└── ? your_mod_namespace/
├── ? functions/
│ └── ? cauldron_concrete_powder/
│ └── ? dry_concrete.mcfunction
└── ? tags/
└── ? functions/
└── ? signals/
└── ? dry_concrete.json
⭐ Star History
Cauldron Concrete Powder
? CauldronConcretePowder is a simple yet powerful Datapack that enhances your Minecraft experience
by allowing you to instantly transform concrete powder into hardened concrete by dropping it into water cauldrons!
No more tedious manual placement required.
⚡ This Datapack has been meticulously optimized for maximum performance and efficiency. Our benchmarks show it runs significantly faster than VanillaTweaks' equivalent solution.
? Originally created as a community request.

![]() |
![]() |
![]() |
|---|
⚙️ Configuration
? Convert concrete powder not dropped by a player
Starting version 1.6.0, you can make the datapack convert every concrete powder item that lands in a water cauldron,
not only the ones dropped by a player (e.g. items carried by a water stream, dispensed by droppers, broken from falling blocks, etc.).
Run this command once (it is saved with your world):
scoreboard players set #always_check cauldron_concrete_powder.config 1
To go back to the default behavior (only player-dropped items), run:
scoreboard players reset #always_check cauldron_concrete_powder.config
⚡ By default, items are only checked when a player has dropped something, which is the most performant option. When
#always_checkis enabled, items inside water cauldrons are checked every second instead.
? Adding Custom Cauldron Recipes
CauldronConcretePowder uses function tags to allow other datapacks to easily add their own "cauldron recipes".
This means you can create custom items that transform when dropped into water cauldrons, just like concrete powder.
? How It Works
The dry_concrete function is called via the function tag #cauldron_concrete_powder:signals/dry_concrete.
When an item is dropped into a water cauldron, this tag is executed,
allowing multiple datapacks to add their own transformation logic.
Your custom function should:
- Check if the dropped item matches your custom "powder" item.
- If it matches, change the item to its "hardened" version.
- If the transformation is successful and the item count is 16 or more, call the
remove_waterfunction to reduce the cauldron's water level. - Reset any temporary scores.
? Creating a Custom Datapack
To add your own cauldron recipe, create a datapack with the following structure:
your_datapack/
├── ? pack.mcmeta
└── ? data/
└── ? your_namespace/
├── ? functions/
│ └── ? cauldron_concrete_powder/
│ └── ? dry_concrete.mcfunction
└── ? tags/
└── ? functions/
└── ? signals/
└── ? dry_concrete.json
- ? Replace
your_namespacewith your datapack's namespace. - ? The
dry_concrete.mcfunctionshould contain your custom transformation logic. - ?️ The
dry_concrete.jsonshould define the function tag with your function:
{
"values": [
"your_namespace:cauldron_concrete_powder/dry_concrete"
]
}
You can download a template datapack from assets/function_tag_template.zip and modify it to fit your needs.
? Example Function
Here's an example of what your dry_concrete.mcfunction might look like:
#> your_namespace:cauldron_concrete_powder/dry_concrete
#
# @within #cauldron_concrete_powder:signals/dry_concrete
#
# Check for your custom powder and transform it
execute if score #success cauldron_concrete_powder.dropped matches 0 store success score #success cauldron_concrete_powder.dropped if items entity @s contents your_namespace:custom_powder run data modify entity @s Item.id set value "your_namespace:custom_hardened"
# If success and count >=16, remove water
execute if score #success cauldron_concrete_powder.dropped matches 1 store result score #count cauldron_concrete_powder.dropped run data get entity @s Item.count
execute if score #success cauldron_concrete_powder.dropped matches 1 if score #count cauldron_concrete_powder.dropped matches 16.. run function cauldron_concrete_powder:v1.4.0/remove_water
# Reset scores
scoreboard players reset #success cauldron_concrete_powder.dropped
scoreboard players reset #count cauldron_concrete_powder.dropped
Make sure to adjust the version in the remove_water call to match the current version of CauldronConcretePowder.
This allows for seamless integration and expansion of cauldron-based crafting!
? For Fabric Mod Developers
Fabric mods can also add custom cauldron recipes by including datapack-compatible files in their mod's src/main/resources/data/ folder. Use the same structure as above, placing your custom dry_concrete.mcfunction and the function tag JSON in the appropriate directories. This way, your mod can extend the cauldron transformation system without conflicting with other datapacks or mods.
For example, your mod's resources might include:
src/main/resources/data/
└── ? your_mod_namespace/
├── ? functions/
│ └── ? cauldron_concrete_powder/
│ └── ? dry_concrete.mcfunction
└── ? tags/
└── ? functions/
└── ? signals/
└── ? dry_concrete.json
⭐ Star History
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
下载 Cauldron Concrete Powder
更新日志
新功能
- ✨ 新增
#always_check配置项,用于转换未被玩家掉落的混凝土粉末 10d448f
文档
- ? 在 README 中说明了如何配置
#always_check95d1359
性能改进
- ⚡ 仅在玩家物品栏发生变化时(
inventory_changed进度)运行@a选择器 c3d79bb - ⚡ 移除了
check_all中不必要的return 1(return run本身已会丢弃调用者的帧)a8743a1
构建系统
其他
- Merge pull request #3 from Stoupy51/feat/always-check-config 100929a
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。



评论 0
登录后参与评分
还没有评论,来抢沙发吧