-
Notifications
You must be signed in to change notification settings - Fork 2
Custom_Item_Food
small_jiu edited this page May 26, 2022
·
1 revision
{
"main":[
{
"type":"item:food",
"entries":[
{
"id":"custom_item_food",
"unItem":"minecraft:dye@1@3",
//如果未压缩物品不是食物
//healAmount,saturation,isWolfFood必须出现并进行初始化操作
//分别代表:饱食度,饱和度,是否是狼的食物
"healAmount": 3,
"saturation": 4.09,
"isWolfFood": false,
//是否有附魔效果
//"hasEffect":true,
"hasEffect":{
"0":false,
"-1":true,
"1":false,
"6":true
},
//吃掉后给予的容器,须开启config配置项
//"result":"minecraft:glass_bottle",
"result": {
"0": "minecraft:glass_bottle",
"-1": "minecraft:stone",
"8": "minecraft:feather"
},
//吃掉后给予的药水效果
//格式:<药水id>@<等级>@<分>@<秒>@<tick>
//"potionEffect":"minecraft:speed@1@0@100@0",
//"potionEffect":[
//id@等级@分@秒@tick
//"minecraft:speed@1@0@100@0",
//"minecraft:jump_boost@2@0@100@0",
//"minecraft:fire_resistance@3@0@100@0"
//],
"potionEffect":{
"0":[
//id@等级@分@秒@tick
"minecraft:speed@1@0@100@0",
"minecraft:jump_boost@1@0@100@0",
"minecraft:fire_resistance@1@0@100@0"
],
"-1":[
//id@等级@分@秒@tick
"minecraft:speed@20@0@100@0",
"minecraft:jump_boost@1@0@100@0",
"minecraft:fire_resistance@1@0@100@0"
],
"8":[
//id@等级@分@秒@tick
"minecraft:jump_boost@1@0@100@0",
"minecraft:fire_resistance@1@0@100@0"
]
},
//另外的饱食度添加,支持meta
//"subHealAmount":13,
"subHealAmount":{
"0":30,
"-1":15,
"8":60
},
//另外的饱和度添加,支持meta
//"subSaturation":13,
"subSaturation":{
"0":20,
"-1":10,
"8":70.005
}
}
]
}
]
}