1. Wiki
  2. /Entities
  3. /minecraft:not_pickable_from_inside

minecraft:not_pickable_from_inside

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

Overview

minecraft:not_pickable_from_inside is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Stops players who are inside this entity's hitbox from targeting or hitting it by looking at it.

Example

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

BP/entities/<name>.json
{
  "minecraft:not_pickable_from_inside": {}
}

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