They may be sent more quickly than this interval during specific actions. The update packets contain information like position, rotation, and velocity. How often, in ticks, update packets should be sent to all client players tracking this entity (see clientTrackingRange). True for MobCategory.CREATURE and MobCategory.MISC, false otherwise.Ĭalling this allows an entity to spawn outside of the despawn distance of its mob category. If the player is outside this chunk range, they will not know of the entity's existence.Įffectively useless for modding purposes. Sending update information about an entity to a player is known as the player tracking that entity. Sets the maximum range in chunks in which players should be sent update packet information about the entity. Unloading a chunk with a noSave entity will effectively delete the entity.Ĭalling this prevents the entity from taking any fire/lava damage. This also prevents summoning through natural spawning in biomes, if it is configured.Ĭalling this prevents the entity from ever saving to disk. The base cannot be configured with a separate width and length.Ĭalling this prevents spawning the entity through /summon intended for internal entities that a user should not be able to create. A value of 1.0 would be equivalent to the length of 1 full block. Sets the default pose dimensions of the entity in order of square base width then height in meters/blocks. The possible properties that can be configured are listed below:Ġ.6 meters wide by 1.8 meters tall (player dimensions) It must be configured to match the desired properties of the entity. How many blocks away a player must be for an entity in a given mob category to despawnĪn entity type builder by itself is not very useful.Whether the entity is persistent (and therefore will save to disk and be reloaded).Whether the entity is friendly (and therefore will spawn in peaceful difficulty).How many entities in a given mob category can spawn per chunk.The mob category is an enum describing mostly spawning properties about a category of mobs. This requires a class of the name MyEntity to actually exist (see the entity class section for more info). The entity factory is usually an entity class with a constructor taking its own EntityType and Level of the form MyEntity::new. It requires two parameters: an EntityType.EntityFactory and a MobCategory. Creating an entity type builder is done using the static factory EntityType.Builder#of. The primary way to make an EntityType is to create and configure an EntityType$Builder. An entity type must exist and be registered for the corresponding entity to be summonable. This contains information universal to an entity. Much of the identity of an entity is determined by its entity type.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |