Ominous Item Spawner
{ "title": "Ominous Item Spawner", "rows": [ { "field": "None", "label": "(link to Health article, displayed as Health points)" }, { "field": "Height: 0.25 blocks<br>Width: 0.25 blocks", "label": "(link to Hitbox article, displayed as Hitbox size)" } ], "invimages": [], "images": [ "Ominous_Item_Spawner.png" ] }
Ominous item spawners are entities spawned by ominous trial spawners that display an item for 3 to 6 seconds before dispensing it downwards.
Spawning[edit | edit source]
When an ominous trial spawner detects at least one player within its activation range, every 8 seconds it spawns an ominous item spawner above any such player or any mob that was spawned by this ominous trial spawner. The location where it should spawn is determined by first performing a raycast from the feet of the entity to a random height between 2 and 6 blocks above the entity. If it hits a block, this block is used, otherwise the end of the line is used. Which block can be hit is determined by the same algorithm as the third-person view. The item spawns in the center of the block below it, unless the block has a collision box.
Behavior[edit | edit source]
An ominous item spawner displays an item rotating in the air for a specified amount of time. When spawned by an ominous trial spawner, that time varies between 3 and 6 seconds. After that time, the item is dispensed downwards. If the item is a projectile, it is shot as an entity. Otherwise the item is dropped.
Sounds[edit | edit source]
[hide]Sounds | ||||||||
---|---|---|---|---|---|---|---|---|
Sound | Subtitles | Source | Description | Resource location | Translation key | Volume | Pitch | Attenuation distance |
Ominous item prepares | Friendly Creatures | When a trial spawner is about to spawn an ominous item spawner | block | subtitles | 1.0 | 1.0 | 16 | |
Ominous item drops | Blocks | When an ominous item spawner summons an item | block | subtitles | 1.0 | 0.8-1.2 | 16 | |
Ominous item appears | Blocks | When an ominous item spawner is summoned | block | subtitles | 1.0 | 0.8-1.2 | 16 |
[hide]Sounds | |||||
---|---|---|---|---|---|
Sound | Source | Description | Resource location | Volume | Pitch |
Blocks | When a trial spawner is about to spawn an ominous item spawner | ominous_item_spawner | 1.0 | 0.8-1.1 | |
Blocks | When an ominous item spawner summons an item | ominous_item_spawner | 1.0 | 0.8-1.1 | |
Blocks | When an ominous item spawner is summoned | ominous_item_spawner | 1.0 | 0.8-1.1 |
Data values[edit | edit source]
ID[edit | edit source]
Name | Identifier | [hide]Translation key |
---|---|---|
![]() | ominous_item_spawner | entity |
Name | Identifier | Numeric ID | [hide]Translation key |
---|---|---|---|
![]() | ominous_item_spawner | 145 | — |
Entity data[edit | edit source]
Ominous item spawners have entity data associated with them that contain various properties.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] item: The item to display and dispense.
- Tags common to all items see Template:Nbt inherit/itemnoslot/template
- [Long] spawn_item_after_ticks: Total time in ticks to display the item, before dispensing it.
History[edit | edit source]
[hide]Java Edition | |||||||
---|---|---|---|---|---|---|---|
1.20.5 Experiment | 24w13a | Added ominous item spawners. | |||||
1.21 | 24w18a | Ominous item spawners are now available without using the "Update 1.21" experimental data pack. | |||||
24w21a | spawn_item_after_ticks is now read from nbt.[1] | ||||||
[hide]Bedrock Edition | |||||||
1.21.0 Experiment | Preview 1.21.0.21 | Added ominous item spawners. | |||||
1.21.0 | Preview 1.21.0.22 | Ominous item spawners are now available without using the "Update 1.21" experimental toggle. |
Issues[edit | edit source]
Issues relating to "Ominous Item Spawner" are maintained on the bug tracker. Issues should be reported and viewed there.
References[edit | edit source]
[edit | edit source]
[hide] | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||
|