Set item in main-hand of [entity] to [amount] [item]

Set item in main-hand of [entity] to [amount] [item]. Procedure block in the entity category. It runs an action.

Set item in main-hand of entity to amountitem
Category
Entity
Block type
Action block (stacks under a trigger)
Returns
Action (no value)
Needs
Nothing extra
Works with
NeoForge 26.1.2NeoForge 1.21.1

Inputs

InputKindAccepts
itemPlug-in valueMCItem
amountPlug-in valueNumber
entityPlug-in valueEntity