#sittable chair

1 messages · Page 1 of 1 (latest)

sly venture
#

i need a block that when interacted with can be sat on

gleaming notch
#

👍 on interact -> summon entity -> use ride command to make player sit on entity

sly venture
#

could you show what u mean

gleaming notch
#

I dont have anything to show

sly venture
#

or i mean liek

#

elaborate

#

i didn’t really mean show i just mean elaborate

gleaming notch
#

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

sly venture
#

and the entity should be invisible right

gleaming notch
#

Yes

uncut bramble
#

oooh that sounds fun, gonna make people sit on command... hehehehe

zinc silo
#

with minecraft:on_player_placing

gleaming notch
zinc silo
#

i see

zinc silo
sly venture
#

how would that work

zinc silo
#

how he is saying it

#

use a animation controller for the despawn put

sly venture
#

i mean how would you make the entity despawn

#

after getting off

#

like entity sensor?

zinc silo
#

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 ^

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

gleaming notch
#

Yes

sly venture
#

alr i’ll leave this open just in case

zinc silo
#

?

junior mango
#
  1. Make the block/chair that you want to make sittable
  2. Make it on interact summon a dummy entity that is rideable and force them to ride it
  3. Make a dummy mob that despawns when no rider is riding using environment sensors
gleaming notch