#"Secret" Entity Components

1 messages · Page 1 of 1 (latest)

tough lily
#

I'd only tested this on player entities. You'd need to test it on others. Seemingly all of the attributes are configurable via entity components. For example, you could add this to a component group on the player to remap the absorption range to 0 to 40 and instantly give them 11 absorption hearts:

"minecraft:absorption": {
    "value": 22,
    "min": 0,
    "max": 40
}

Possible but untested list of attributes:

  • minecraft:luck
  • minecraft:health
  • minecraft:absorption
  • minecraft:knockback_resistance
  • minecraft:movement
  • minecraft:underwater_movement
  • minecraft:lava_movement
  • minecraft:follow_range
  • minecraft:attack_damage
  • minecraft:player.hunger
  • minecraft:player.exhaustion
  • minecraft:player.saturation
  • minecraft:player.level
  • minecraft:player.experience

I know you can, for example, directly set the player hunger, set and limit levels, etc. Most stuff here is untested, though.

#

"Secret" Entity Components

wary niche
tough lily
#

No, it'd get 11. But it'd be allowed to have to 20 from then on.

wary niche
#

seems really cool

#

how did you even find out about this

tough lily
#

There are others, like minecraft:player.level to set the player level to a specific value or even limit the range of levels that a player can have.

wary niche
#

awesome

tough lily
#

@wary niche, see the list above.

wary niche
#

ty

tough lily
wary niche
#

ah ok

frail cradle
tough lily
#

Yes, health is a very well known one, for example. Not sure why all of these aren’t listed.

wary niche
#

there's alot of attributes on the mc wiki page for it, maybe they should be tested idk

lament kettle
#

attack_damage is one that kinda works from my tests, but I use melee attack for my entity attacks

tough lily
#

Yeah, some of these are used in various places already.

frosty anchor
#

all of that components are on player.json BP (except luck component and absortion)

#

but its interesting

serene linden
halcyon meteor
#

Knockback resistance, movement, underwater_movement, health, lava_movement, and attack_damage works on entities other than the player...but luck and absorption I have to test.

wary niche
tranquil mantle
#

They're known as attributes and seem to be able to be modified directly using the tools, but are currently impossible to modify using .getComponent in scripting.

tranquil mantle
frail cradle