Skip to main content

Prevent Item Pickup (Power Type)

Stops the entity that has the power from picking up items.

Type ID: apoli:prevent_item_pickup

Actors and targets

FieldActorTarget
bientity_action_throwerThe entity that threw the item.The entity about to pick up the item.
bientity_action_itemThe entity about to pick up the item.The item entity being picked up.
bientity_conditionThe entity that threw the item.The entity about to pick up the item.

Fields

FieldTypeDefaultDescription
bientity_action_throwerBi-entity Action TypeoptionalIf set, this action runs on the actor, the target or both, as listed in the table above.
bientity_action_itemBi-entity Action TypeoptionalIf set, this action runs on the actor, the target or both, as listed in the table above.
item_actionItem Action TypeoptionalIf set, this action runs on the item that the entity tried to pick up. The item stays on the ground with the change applied.
bientity_conditionBi-entity Condition TypeoptionalIf set, the pickup is only stopped when the actor and target pass this condition.
item_conditionItem Condition TypeoptionalIf set, the pickup is only stopped when the item passes this condition.
priorityInteger0When several of these powers stop the same pickup, every one of them runs its actions, highest priority first.

It works for players and for mobs that pick up loot. The actions run on every attempt to pick the item up, which for a player standing on the item means every tick, so keep them cheap or put a condition on them.

Examples

{
	"type": "apoli:prevent_item_pickup",
	"item_condition": {
		"type": "apoli:meat"
	}
}

This stops the entity from picking up any food that counts as meat.