Skip to content

Instantly share code, notes, and snippets.

@toka7290
Last active July 24, 2021 08:23
Show Gist options
  • Save toka7290/a4e15c90946d641b149d4f84e426afe0 to your computer and use it in GitHub Desktop.
Save toka7290/a4e15c90946d641b149d4f84e426afe0 to your computer and use it in GitHub Desktop.
{
"format_version": "1.16.100",
"minecraft:item": {
"description": {
"identifier": "toka7290:test_food",
"category": "Equipment"
},
"components": {
"minecraft:icon": {
"texture": "test_food"
},
"minecraft:creative_category": {
"group": "itemGroup.name.miscFood"
},
"minecraft:use_duration": 1,
"minecraft:use_animation": "eat",
"minecraft:food": {
"nutrition": 3,
"can_always_eat": true,
"saturation_modifier": "low",
"using_converts_to": "minecraft:paper",
"on_consume": {
"event": "toka7290:on_consumed"
}
}
},
"events": {
"toka7290:on_consumed": {
"sequence": [
{
"add_mob_effect": {
"effect": "speed",
"target": "holder",
"duration": 5,
"amplifier": 2
}
},
{
"add_mob_effect": {
"effect": "jump_boost",
"target": "holder",
"duration": 5,
"amplifier": 4
}
},
{
"run_command": {
"command": ["particle minecraft:totem_particle ~ ~1 ~"],
"target": "holder"
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment