User Tools

Site Tools


items:item_components:zoom

Table of Contents

minecraft:zoom

The minecraft:zoom item component allows a player to zoom in when used.

Fields

Name Description Type Default Value
field_of_view_multiplier The factor to multiply the player's field of view by when used. A positive float that is at most 1.0
start_using_sound The sound event to play when zooming in. A sound event
stop_using_sound The sound event to play when zooming out. A sound event

Example

{
  "field_of_view_multiplier": 0.1,
  "start_using_sound": "minecraft:item.spyglass.use",
  "stop_using_sound": "minecraft:item.spyglass.stop_using"
}
items/item_components/zoom.txt · Last modified: 2024/04/24 22:09 by errorcraft