#Make player ride visible

1 messages Β· Page 1 of 1 (latest)

near pike
#

This seems to be an existing bug. But it only seems to affect riders directly on you, so a workaround is to have an invisible entity be a rider on the player while also holding the model you wish the player to hold.

half rivet
#

So you mean having a rider on the invisible rider of the player?
I have tried that, but I hate how it looks, because the second rider doesn't rotate with your view. So it looks really buggy.
Do you have an idea how to fix that?

umbral dawn
#

make it look where you look

near pike
half rivet
#

Rip πŸ˜…
I have changed it now and added it to the player geometry. Works really well now

#

Although you need to get the entity properties if you change them for the rp

near pike
near pike
half rivet
half rivet
# near pike I'd be really interesteed to see how you made it work

you basically add your model geo, texture and another render controller to your player entity (rp) and then refer to the model texture+geo in your added render controller.
That's gonna look really buggy, but you can change the positioning/rotation of the model with an animation

#

oh, and to "connect" the model to a player bone, you need to use the vanilla bone structure and put your model into the correct bone

near pike
#

Would the rider be able to be interacted with as an individual entity? I feel like if it's part of the player model, it'd be affected by effects on the player, like being hurt or going invisible w/ the player

half rivet
#

yeah, that wouldn't work if you need it to be another entity...

#

for the interact you could add a custom hit test component, but that's about it

near pike
#

Though one could use an invisible entity in it's position, where the rotation of it won't matter reeally πŸ˜›

half rivet
#

true!

near pike
#

How about texturing the 'rider' on the player model? For context, I made a bubble wand + bubble entities, and they come in all the colors and many sizes

half rivet
#

wait, why not use attachables then?

#

or which entity has to ride the player?

near pike
#

the bubble is on the wand while it is being blown bigger and bigger, but it can be popped during this time too

half rivet
#

oh, that sounds interesting

#

but yeah, adding it to the player geo would work then

#
  • invisible rider entity
near pike
#

Any thoughts on the texturing of it? Or would it be invariably tied to the player texture?

#

Like, if the player changes skins from Steve to Alex, can the rider texture remain unchanged?

half rivet
#

just add another texture to the player file like you do with the geo

near pike
#

I guess that's true, the player already has multiple textures on it's model through armor/weapons

#

Haven't really though about it like that before lol

#

Thanks!

half rivet
#
{
    "format_version": "1.10.0",
    "minecraft:client_entity": {
      "description": {
        "identifier": "minecraft:player",
        "materials": {
            //...
        },
        "textures": {
            //...
            "new_texture": "path/new_texture"
        },
        "geometry": {
            //...
            "new_geo": "geometry.new_geo"
        },
        "scripts": {
          "scale": "0.9375",
          "initialize": [
            //...
          ],
          "pre_animation": [
            //...
          ],
          "animate": [
            //...
          ]
        },
        "animations": {
          //...
        },
        "render_controllers": [
            //...
            "controller.render.new_render_controller"
        ],
        "enable_attachables": true
      }
    }
  }
#
{
    "format_version": "1.17.0",
    "render_controllers": {
      "controller.render.new_render_controller": {
        "geometry": "geometry.new_geo",
        "materials": [ { "*": "material.default" } ],
        "textures": [ "texture.new_texture" ]
      }
    }
  }```
#

that's it

half rivet
near pike
#

that's the player.geo file

#

And that's what it looks like in-game