User Tools

Site Tools


actions:action_types:modify_item

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
actions:action_types:modify_item [2024/04/30 20:01] – remove comma errorcraftactions:action_types:modify_item [2024/05/15 13:01] (current) – fix loot context type link errorcraft
Line 7: Line 7:
 ===== Fields ===== ===== Fields =====
 ^  Name  ^  Description  ^  Type  ^  Default Value  ^ ^  Name  ^  Description  ^  Type  ^  Default Value  ^
-| ''item_modifier'' | The [[mc>Item_modifier|item modifier]] to apply. Note that it uses the [[extras:loot_tables:loot_types:action]] [[mc>Loot_table#Loot_context_types|loot context type]]. | An [[mc>Item_modifier|item modifier]] | | +| ''item_modifier'' | The [[mc>Item_modifier|item modifier]] to apply. Note that it uses the [[extras:loot_tables:loot_context_types:action]] [[mc>Loot_context|loot context type]]. | An [[mc>Item_modifier|item modifier]] | | 
-| ''context'' | The context to use for applying the item modifier. | An [[actions:action_contexts|action context parameter set]] | |+| ''context'' | The context to use for applying the item modifier. | An [[actions:action_contexts#parameter_sets|action context parameter set]] | |
  
  
Line 15: Line 15:
 { {
   "type": "minecraft:modify_item",   "type": "minecraft:modify_item",
-    "item_modifier": {+  "item_modifier": {
     "function": "minecraft:set_count",     "function": "minecraft:set_count",
     "count": 1     "count": 1
actions/action_types/modify_item.1714507272.txt.gz · Last modified: 2024/04/30 20:01 by errorcraft