如题,配方代码:
复制代码报错代码
复制代码
- {
- "format_version": "1.16",
- "minecraft:recipe_shaped": {
- "description": {
- "identifier": "xiaobo:luck1"
- },
- "tags": [ "crafting_table" ],
- "pattern": [
- "###",
- "#*#",
- "###"
- ],
- "key": {
- "#": {
- "item": "minecraft:stick"
- },
- "*": {
- "item": "minecraft:emerald"
- }
- },
- "result": {
- "item": "xiaobo:luck1",
- "data": 1
- }
- }
- }
- [Blocks][error]-recipes/luck1.json | xiaobo:luck1 | Custom blocks only support default state when dropped. Consider adding a minecraft:loot component to make the dropped item explicit. Returning default state block.
已自行解决:加了个控制数量参数还有data