#sittable chair
1 messages · Page 1 of 1 (latest)
👍 on interact -> summon entity -> use ride command to make player sit on entity
could you show what u mean
I dont have anything to show
Make a block that when interacted summons entity. Then use the entity to run a ride command to place the player on top of the entity
and the entity should be invisible right
Yes
oooh that sounds fun, gonna make people sit on command... hehehehe
when u place ur block make a entity spawn in it , and make the hitbox abit big so u can ride it
with minecraft:on_player_placing
That would cause lag which isn't ideal
i see
maybe like this but once rider is not ridng make it despawn ?
how would that work
i mean how would you make the entity despawn
after getting off
like entity sensor?
check if it doesnt have a rider
q.has_rider
if it doesnt, run the state that runs the despawn command or go @s despawn
animation controller^
@sly venture ^
wouldn’t we also have to make it so the chair can’t be ridden when another player is on it
ok so basically:
when the chair is interacted with, an entity is spawned which runs an event that forces the player to sit on it, and when the player gets off/when the block is broken the entity despawns
Yes
alr i’ll leave this open just in case
?
- Make the block/chair that you want to make sittable
- Make it on interact summon a dummy entity that is rideable and force them to ride it
- Make a dummy mob that despawns when no rider is riding using environment sensors
Yes...that's what we suggested