added bashing property for camel
This commit is contained in:
parent
f03162398c
commit
fc5df502f3
2 changed files with 7 additions and 1 deletions
|
@ -329,6 +329,11 @@ public class EntityPropertyRegistryImpl implements EntityPropertyRegistry {
|
|||
register(new BooleanProperty("has_right_horn", 19, true, legacyBooleans));
|
||||
|
||||
register(new EncodedIntegerProperty<>("shaking", false,7, enabled -> enabled ? 140 : 0));
|
||||
|
||||
if (!ver.isNewerThanOrEquals(ServerVersion.V_1_20)) return;
|
||||
|
||||
// Camel
|
||||
register(new BooleanProperty("bashing", 18, false, legacyBooleans));
|
||||
}
|
||||
|
||||
private void registerSerializer(PropertySerializer<?> serializer) {
|
||||
|
|
|
@ -335,7 +335,8 @@ public class NpcTypeRegistryImpl implements NpcTypeRegistry {
|
|||
.setHologramOffset(0.125));
|
||||
|
||||
register(builder(p, "camel", EntityTypes.CAMEL)
|
||||
.setHologramOffset(0.25));
|
||||
.setHologramOffset(0.25)
|
||||
.addProperties("bashing"));
|
||||
}
|
||||
|
||||
public Collection<NpcType> getAll() {
|
||||
|
|
Loading…
Reference in a new issue