mojira.dev
MCPE-17906

Consistent Naming Scheme for Add-On Components and Properties

Please update the naming scheme for the add-on components and properties to be more consistent. It'll make it easier for external developers.

Component names are fairly consistent. Here are all the ones released with 0.16:

breathable
minecraft:attack
minecraft:attack_damage
minecraft:behavior.avoid_mob_type
minecraft:behavior.beg
minecraft:behavior.break_door
minecraft:behavior.breed
minecraft:behavior.eat_block
minecraft:behavior.enderman_leave_block
minecraft:behavior.enderman_take_block
minecraft:behavior.flee_sun
minecraft:behavior.float
minecraft:behavior.follow_parent
minecraft:behavior.guardian_attack
minecraft:behavior.hurt_by_target
minecraft:behavior.leap_at_target
minecraft:behavior.look_at_player
minecraft:behavior.look_at_target
minecraft:behavior.melee_attack
minecraft:behavior.mount_pathing
minecraft:behavior.move_indoors
minecraft:behavior.move_through_village
minecraft:behavior.move_towards_restriction
minecraft:behavior.move_towards_target
minecraft:behavior.nearest_attackable_target
minecraft:behavior.ocelot_sit_on_block
minecraft:behavior.ocelotattack
minecraft:behavior.offer_flower
minecraft:behavior.open_door
minecraft:behavior.panic
minecraft:behavior.pickup_items
minecraft:behavior.player_ride_tamed
minecraft:behavior.rabbit_panic
minecraft:behavior.raid_garden
minecraft:behavior.random_look_around
minecraft:behavior.random_stroll
minecraft:behavior.ranged_attack
minecraft:behavior.restrict_open_door
minecraft:behavior.restrict_sun
minecraft:behavior.silverfish_merge_with_stone
minecraft:behavior.slime_attack
minecraft:behavior.slime_float
minecraft:behavior.slime_keep_on_jumping
minecraft:behavior.slime_random_direction
minecraft:behavior.squid_dive
minecraft:behavior.squid_flee
minecraft:behavior.squid_idle
minecraft:behavior.squid_move_away_from_ground
minecraft:behavior.squid_out_of_water
minecraft:behavior.stay_while_sitting
minecraft:behavior.swell
minecraft:behavior.tempt
minecraft:behavior.wither_random_attack_pos_goal
minecraft:behavior:avoid_mob_type
minecraft:behavior:panic
minecraft:breathable
minecraft:burns_in_daylight
minecraft:collision_box
minecraft:damage_sensor
minecraft:equipment
minecraft:equippable
minecraft:explode
minecraft:fall_damage
minecraft:fire_immune
minecraft:follow_range
minecraft:healable
minecraft:health
minecraft:horse.jump_strength
minecraft:hurt_when_wet
minecraft:identifier
minecraft:interact
minecraft:inventory
minecraft:is_stackable
minecraft:is_tamed
minecraft:leashable
minecraft:loot
minecraft:monster
minecraft:movement
minecraft:nameable
minecraft:npc
minecraft:on_calm
minecraft:on_target_escape
minecraft:player.exhaustion
minecraft:player.experience
minecraft:player.level
minecraft:player.saturation
minecraft:player_ride_tamed
minecraft:projectile
minecraft:rail_movement
minecraft:rail_sensor
minecraft:rideable
minecraft:scale
minecraft:shooter
minecraft:target_nearby_sensor
minecraft:teleport
minecraft:type_family
minecraft:variant
minecraft:wither_target_highest_damage
minecraft:zombie.spawn_reinforcements

And here are some of the properties for these components:

alert_same_type
allowNameTagRenaming
alwaysShow
anchor
angleoffset
attack_interval
attack_interval_max
attack_interval_min
attack_radius
auxVal
avoid_types
blocks
breathesAir
breathesWater
burst_interval
burst_shots
can_be_siphoned_from
can_get_scared
catchFire
causesFire
charge_charged_trigger
charge_shoot_trigger
close_door_after
container_type
control_flags
damage
deals_damage
def
effect_duration
effect_name
eject_on_activate
entity_types
event
family
family_types
fuseLength
fuseLit
generatesBubbles
goal_radius
gravity
hard_distance
height
hitSound
hurt_item
id
inertia
inside_range
interact_text
inventory_size
isdangerous
items
lightTeleportChance
liquid_inertia
look_distance
look_time
max
maxRandomTeleportTime
max_dist
max_distance
min
must_reach
must_see
offset
onHit
on_damage
on_eat
on_inside_range
on_interact
on_leash
on_outside_range
on_unleash
only_at_night
outside_range
particle
power
priority
probability
randomTeleportCube
randomTeleports
random_stop_interval
reach_multiplier
reflectOnHurt
search_range
seat_count
seats
semirandomdiffdamage
shootSound
shoottarget
slots
sneak_speed_multiplier
soft_distance
speed_modifier
speed_multiplier
sprint_speed_multiplier
start_distance
stop_distance
suffocateTime
swing
table
target
targetDistance
target_dist
target_distance
totalSupply
track_target
type
uncertaintyBase
uncertaintyMultiplier
use_item
value
walk_speed_multiplier
width
within_radius
xz_dist
y_dist

As you can see, for the properties, the names use a variety of naming schemes, I would just like them to be more consistent.

Comments 4

This site is for bug reports only; feature suggestions are not accepted.

To be honest, at Minecon they said they would appreciate to hear feedback and this is productive feedback.

Adrian, where should this go?

Anthony Stewart

(Unassigned)

Unconfirmed

Windows

0.16.0

Retrieved