1. Wiki
  2. /Items
  3. /minecraft:should_despawn

minecraft:should_despawn

Don't want to write this by hand? GodCraft sets minecraft:should_despawn for you with a switch.Get GodCraft

Overview

minecraft:should_despawn is an item component: it goes in the components object of a custom item. Controls whether the item disappears after lying on the ground for a while (about 5 minutes).

Fields

FieldTypeDefaultDescription
valuebooleanfalseSet to false so a dropped item never vanishes on its own.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:should_despawn": {
    "value": false
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more