#Skateboards!!! (Player seating positions)

1 messages · Page 1 of 1 (latest)

median remnant
#

Well I am encountering an issue where I want the player to either stand on the board or to sit on it rather than floating above it
Is there anyway I can fix this in the JSON files???

opal cosmos
median remnant
#

how

#

what do I do?

#

@opal cosmos

#

I use blockbench

opal cosmos
#

?vp

dull pelicanBOT
median remnant
opal cosmos
median remnant
#

wdym

#

So i have the player.animation.json file but where is RP/animations

#

@opal cosmos

wanton crystal
#

@median remnant have you figured this out at all? My entites for some reason float higher when sitting down than the player does and I assume this is a similar problem to yours.

cobalt rivet
#

i think i've got a suggestion which involves scripting but will let you avoid messing with any player.json files

wanton crystal
#

Okay, what's the code look like?

cobalt rivet
#
//get the rideable component
const riders = skateboard.getComponent("minecraft:rideable").getRiders()
if (riders[0] != undefined) {
  //if there is a rider in seat 0, then play this animation until the rider is no longer riding
  riders[0].playAnimation("ANIM-NAME", {nextState:"root", stopExpression:"!(query.is_riding)"});
}```
#

I haven't tested this fully, but i've been working on a similar script atm for guns

#

there are probably better ways to go about this, if you're making a skateboard i'd probably use the "playerInteractWithEntity", which will let you cut out the middle man

#

idk if any of this helps, if y'all want a hand with animations that'll work with this lemme know