mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 04:00:29 +00:00
Merge branch 'stable'
# Conflicts: # changelogs/3.14.md # resources/vanilla # src/VersionInfo.php # src/entity/Attribute.php
This commit is contained in:
@@ -46,6 +46,7 @@ class Attribute{
|
||||
public const FALL_DAMAGE = self::MC_PREFIX . "fall_damage";
|
||||
public const HORSE_JUMP_STRENGTH = self::MC_PREFIX . "horse.jump_strength";
|
||||
public const ZOMBIE_SPAWN_REINFORCEMENTS = self::MC_PREFIX . "zombie.spawn_reinforcements";
|
||||
public const LAVA_MOVEMENT = self::MC_PREFIX . "lava_movement";
|
||||
|
||||
/** @var string */
|
||||
protected $id;
|
||||
|
@@ -48,6 +48,7 @@ final class AttributeFactory{
|
||||
$this->register(Attribute::FALL_DAMAGE, 0.0, 340282346638528859811704183484516925440.0, 1.0);
|
||||
$this->register(Attribute::HORSE_JUMP_STRENGTH, 0.0, 2.0, 0.7);
|
||||
$this->register(Attribute::ZOMBIE_SPAWN_REINFORCEMENTS, 0.0, 1.0, 0.0);
|
||||
$this->register(Attribute::LAVA_MOVEMENT, 0.0, 340282346638528859811704183484516925440.0, 0.02);
|
||||
}
|
||||
|
||||
public function get(string $id) : ?Attribute{
|
||||
|
Reference in New Issue
Block a user