[SOLVED]Entity only rideable when conditions are met

Started by Rebuilt on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED]Entity only rideable when conditions are met
Fri, 10/03/2025 - 15:28 (edited)

So I'm aware that there are many forums on this topic and it is probably repetitive at this point. I want to know if there is a plugin/the ability to make a plugin that adds a condition parameter to entities that define when you can ride and control them sort of like the entity layer conditions but for the attempt to ride the entity.

Edited by Rebuilt on Fri, 10/03/2025 - 15:28
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Someone else asked for this…
Fri, 10/03/2025 - 07:58

Someone else asked for this not long ago but I can't find it now. I added ride state change to my plugin,

which you can cancel to kind of get the effect you want.

 

I think I ported it to 1.20.1 forge correctly now,

https://files.catbox.moe/yyejo3.zip

 

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thx! could you show me how…
Fri, 10/03/2025 - 14:02

Thx! could you show me how to use it? idk how it works :/ I already have the code for the saddle and everything and just need to make this not be canceled when the entity has a saddle

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
something like this
Fri, 10/03/2025 - 14:07

something like this

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you! however, I am…
Fri, 10/03/2025 - 14:34

Thank you! however, I am encountering a problem. I still mount the entity when I have a similar setup

when (global trigger) Entity ride state change

If - is Entity dependency [entity_being_ridden] (sub)type
of [nautilus]
do - Custom code snippet [return;]
If - not Logic dependency [is_dismounting]
do - Custom code snippet [return;]
If - get the base value of attribute [NautilusSaddled] from entity [entity_being_ridden] = 0
do - Cancel event that triggered global trigger

The attribute [NautilusSaddled] is how I've been determining the mob state to be able to ride it and display the saddle texture instead of custom tags as that is client.

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Never mind figured it out!…
Fri, 10/03/2025 - 14:37

Never mind figured it out! TYSM