Entity Documentation - minecraft:conditional_bandwidth_optimization
minecraft:conditional_bandwidth_optimization
defines the Conditional Spatial Update Bandwidth Optimizations of the entity.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
conditional_values | not set | List | The object containing the conditional bandwidth optimization values. |
default_values | not set | JSON Object | The object containing the default bandwidth optimization values. |
conditional_values
conditional_values
is a list defined by three parameters. Each item has the following properties:
Name | Default Value | Type | Description |
---|---|---|---|
max_dropped_ticks | not set | Integer | In relation to the optimization value, determines the maximum ticks spatial update packets can be not sent. |
max_optimized_distance | not set | Integer | The maximum distance considered during bandwidth optimizations. Any value below the max is interpolated to find optimization, and any value greater than or equal to the max results in max optimization. |
use_motion_prediction_hints | false | Boolean | When set to true, smaller motion packets will be sent during drop packet intervals, resulting in the same amount of packets being sent as without optimizations but with less data being sent. This should be used to prevent visual oddities when entities are traveling quickly or teleporting. |
default_values
default_values
is a JSON object defined by two parameters. Each item has the following properties:
Name | Default Value | Type | Description |
---|---|---|---|
max_dropped_ticks | not set | Integer | In relation to the optimization value, determines the maximum ticks spatial update packets can be not sent. |
max_optimized_distance | not set | Integer | The maximum distance considered during bandwidth optimizations. Any value below the max is interpolated to find optimization, and any value greater than or equal to this max results in max optimization. |
use_motion_prediction_hints | false | Boolean | When set to true, smaller motion packets will be sent during drop packet intervals, resulting in the same amount of packets being sent as without optimizations but with less data being sent. This should be used to prevent visual oddities when entities are traveling quickly or teleporting. |
Example
"minecraft:conditional_bandwidth_optimization":{
"conditional_values" : {
"max_dropped_ticks": 20,
"max_optimized_distance": 200,
"use_motion_prediction_hints": false
},
"default_values" : {
"max_dropped_ticks": 10,
"max_optimized_distance": 100,
"use_motion_prediction_hints": false
}
}
Vanilla entities examples
fireworks_rocket
"minecraft:conditional_bandwidth_optimization": {
"default_values": {
"max_optimized_distance": 80.0,
"max_dropped_ticks": 10,
"use_motion_prediction_hints": true
}
}
Vanilla entities using minecraft:conditional_bandwidth_optimization
- area_effect_cloud
- armor_stand
- arrow
- bat
- bee
- blaze
- boat
- cat
- cave_spider
- chest_minecart
- chicken
- command_block_minecart
- cow
- creeper
- dolphin
- donkey
- dragon_fireball
- drowned
- egg
- elder_guardian
- ender_crystal
- ender_dragon
- ender_pearl
- enderman
- endermite
- evocation_illager
- eye_of_ender_signal
- fireball
- fireworks_rocket
- fish
- fishing_hook
- fox
- ghast
- guardian
- hoglin
- hopper_minecart
- horse
- husk
- iron_golem
- lightning_bolt
- lingering_potion
- llama_spit
- llama
- magma_cube
- minecart
- mooshroom
- mule
- npc
- ocelot
- panda
- parrot
- phantom
- pig
- piglin_brute
- piglin
- pillager
- player
- polar_bear
- pufferfish
- rabbit
- ravager
- salmon
- sheep
- shulker_bullet
- shulker
- silverfish
- skeleton_horse
- skeleton
- slime
- small_fireball
- snow_golem
- snowball
- spider
- splash_potion
- squid
- stray
- strider
- thrown_trident
- tnt_minecart
- tnt
- tripod_camera
- tropicalfish
- turtle
- vex
- villager_v2
- villager
- vindicator
- wandering_trader
- witch
- wither_skeleton
- wither_skull_dangerous
- wither_skull
- wither
- wolf
- xp_bottle
- xp_orb
- zoglin
- zombie_horse
- zombie_pigman
- zombie_villager_v2
- zombie_villager
- zombie
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for