generated from Snownee/KiwiTemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
More Attributes
Snownee edited this page Oct 20, 2021
·
5 revisions
More Attributes
- value: Object
Makes item edible.
{
"food": {
"nutrition": 2, // mandatory
"saturation": 0.5, // mandatory
"fast": false,
"alwaysEat": false,
"meat": false,
"animation": "eat", // or "drink", "none"
"effect": [
{
"probability": 1,
"effect": "speed",
"duration": 100, // in tick
"amplifier": 0,
"ambient": false,
"visible": true
},
{
"probability": 0.5,
"effect": "poison",
"duration": 100, // in tick
}
]
}
}
- value: Action string or object or a list of them.
Performs actions when a player right-clicks on the block.
{
"event.useOnBlock": {
"action": [
{
"type": "sit"
}
]
}
}
{
"event.useOnBlock": {
"action": [ "sit" ]
}
}
{
"event.useOnBlock": {
"action": "sit"
}
}
- value: Action object or objects
Performs actions when a player left-clicks on the block.
- value: Action object or objects
Performs actions when a projectile hits on the block.