mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 22:41:30 +11:00
Add Giant to entity_raycast example
This commit is contained in:
parent
5bdac7fbb0
commit
cab1337716
|
@ -298,6 +298,13 @@ impl Config for Game {
|
|||
e.set_position([5.0, 103.0, -3.5]);
|
||||
e.set_yaw(270.0);
|
||||
e.set_head_yaw(90.0);
|
||||
|
||||
// ==== Giant ==== //
|
||||
let (_, e) = server.entities.insert(EntityKind::Giant, ());
|
||||
e.set_world(world_id);
|
||||
e.set_position([20.0, 101.0, -5.0]);
|
||||
e.set_yaw(270.0);
|
||||
e.set_head_yaw(90.0);
|
||||
}
|
||||
|
||||
fn update(&self, server: &mut Server<Self>) {
|
||||
|
|
|
@ -781,7 +781,7 @@ impl<C: Config> Entity<C> {
|
|||
TrackedData::FallingBlock(_) => with_object_data(1), // TODO: set block state ID.
|
||||
TrackedData::FishingBobber(e) => with_object_data(e.get_hook_entity_id()),
|
||||
TrackedData::Warden(e) => {
|
||||
with_object_data((e.get_pose() == types::Pose::Emerging).into())
|
||||
with_object_data((e.get_pose() == Pose::Emerging).into())
|
||||
}
|
||||
_ => with_object_data(0),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue