Add job for filling in a volume of blocks

This commit is contained in:
2020-12-05 10:56:56 +00:00
parent b8952db742
commit e0c5c3a6b9
8 changed files with 294 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ from minecraft.networking.types import (
VarInt, Integer, UnsignedByte, Position, Vector, MutableRecord,
attribute_alias, multi_attribute_alias, Long, Boolean, VarLong,
Short, UnsignedLong, Byte, BlockFace, String, UUID, Angle, Double,
Float,
Float, Direction, PositionAndLook
)
from protocol.types import Nbt, Slot, Entry
@@ -374,3 +374,19 @@ class EntityActionPacket(Packet):
{'action_id': VarInt},
{'jump_boost': VarInt},
]
class SpawnPlayerPacket(Packet):
# https://wiki.vg/Protocol#Spawn_Player
id = 0x04
packet_name = 'spawn player'
definition = [
{'entity_id': VarInt},
{'player_uuid': UUID},
{'x': Double},
{'y': Double},
{'z': Double},
{'yaw': Angle},
{'pitch': Angle},
]