Unsure how to make an entity only rideable when tamed

Started by dootch on

Topic category: Help with MCreator software

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unsure how to make an entity only rideable when tamed

So I've created this so far, 

Which makes the entity sit, alongside that when its sitting and you want to ride it it stands up. I thought all i would need to make this work was the 'stop riding entity' block at the end when any of the conditions aren't met, but it seems to do.. nothing.

Does anyone have any solutions? I've tried alot of things but after hours I just can't seem to get anywhere. Maybe I'm missing a small thing I just can't think of right now?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why do you need the stop…
Sun, 08/31/2025 - 07:05

Why do you need the stop riding block?

You can get off the entity with shift can't you?

And if you want to like kick the player off if their hand is no longer empty, or the entity is no longer tamed. Doing it in the right click event wouldn't be the best idea..

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh nah thats not what im…
Sun, 08/31/2025 - 08:41

Oh nah thats not what im trying to do, im aware that wouldnt work in here. 
What Im trying is that if the player right clicks an entity and is holding air, the entity is tamed and has that attribute, the player is able to ride it. But if the player isn't holding air, or the entity isnt tamed or doesnt have that attribute, the player Cant ride it. 
Because right now its possible for untamed entities to be ridden, and for when you right click the entity with a stick to make it sit down, you also ride it :P

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
huh, well that shouldn't…
Sun, 08/31/2025 - 09:16

huh, well that shouldn't happen, is it because you have made the entity rideable in the entity element?

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You mean the Rideable…
Sun, 08/31/2025 - 09:32

You mean the Rideable checkbox right? yeah, because if i dont check that, even if i keep 'Forward movement control' checked on, you wont be able to move the entity when riding it.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmmm well that'd be the…
Sun, 08/31/2025 - 10:30

hmmm well that'd be the problem,

do you know how to use custom code?

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unfortunately no, but id be…
Sun, 08/31/2025 - 10:37

Unfortunately no, but id be willing to look into it if this is not too difficult

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you might be able to…
Sun, 08/31/2025 - 10:39

I think you might be able to use this event,

but without a plugin that implements it, you'd have to use the custom element...

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it's non-java so you don't…
Sun, 08/31/2025 - 11:15

it's non-java so you don't have to turn that on

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
prevents all riding, target…
Sun, 08/31/2025 - 11:16

prevents all riding,

target entity is the entity that is mounting

source entity is the entity that is being mounted

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wow! thank you so much for…
Sun, 08/31/2025 - 11:38

Wow! thank you so much for making a plug-in for this! At the risk of sounding dumb, could you explain how to use it? (it is loaded)

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it should just add the…
Sun, 08/31/2025 - 11:40

it should just add the trigger shown in the picture, unless you're not using neoforge 1.21.4

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NVM IM DENSE i didnt see the…
Sun, 08/31/2025 - 11:42

NVM IM DENSE i didnt see the last comment, this is amazing!! thank you so much, true lifesaver!

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no problem at all :3
Sun, 08/31/2025 - 11:43

no problem at all :3