2021-06-06 10:07:19 +00:00
{
"$id" : "blockception.minecraft.behavior.entities.1.16.0.minecraft.giveable" ,
"additionalProperties" : false ,
"description" : "Defines sets of items that can be used to trigger events when used on this entity. The item will also be taken and placed in the entity's inventory." ,
"type" : "object" ,
"title" : "Giveable 1.16.0" ,
2021-07-04 16:02:48 +02:00
2021-06-06 10:07:19 +00:00
"properties" : {
"triggers" : {
2021-07-03 11:45:14 +02:00
"description" : "Defines sets of items that can be used to trigger events when used on this entity. The item will also be taken and placed in the entity's inventory." ,
2021-06-09 11:12:18 +02:00
"title" : "Triggers" ,
2021-07-03 11:45:14 +02:00
"type" : "object" ,
"additionalProperties" : false ,
2021-06-06 10:07:19 +00:00
"properties" : {
"cooldown" : {
"type" : "number" ,
"default" : 0.0 ,
"description" : "An optional cool down in seconds to prevent spamming interactions." ,
"title" : "Cooldown"
} ,
"items" : {
"type" : "array" ,
2021-07-03 11:45:14 +02:00
"title" : "Properties" ,
2021-06-06 10:07:19 +00:00
"description" : "The list of items that can be given to the entity to place in their inventory." ,
"items" : {
"description" : "An items that can be given to the entity to place in their inventory." ,
"$ref" : "../../../../general/item/identifier.json" ,
"title" : "Properties"
2021-07-03 11:45:14 +02:00
}
2021-06-06 10:07:19 +00:00
} ,
"on_give" : { "$ref" : "../types/event.json" , "description" : "Event to fire when the correct item is given." , "title" : "On Give" }
}
}
}
}