• check_circle Functions
  • check_circle Loot Tables
  • check_circle Predicates
  • 940 views, 10 today
  • 104 downloads, 0 today
  • 4
  • 2
  • 3
AlpalcaLad's Avatar AlpalcaLad
Level 30 : Artisan Modder
10
Adds functionality to ride mobs and control their movement!
Mobs move in the direction you're looking if a tool is held, which works for flying mobs and allows mobs to climb blocks.
It is currently untested in multiplayer, so it may function strangely. Sorry!
Use /function mechs:give_mount_tools to get the tools to control and ride mobs.
Use /function mechs:add_rideable_area to make mobs in an area around you rideable.
Use the Ride entity tool close to a mob that has been tagged with the above function to ride it.
Hold the Move entity tool to move once riding.


Built in dependancy (alternative light version linked below): looking_filtered datapack to add raycasting (allows you to make your mount attack things)
/function mechs:add_rideable targets the mob you're looking at specifically
when holding the target entity tool and looking at a creature
The raycasting component comes from Cloudwolf, an insanely good datapack maker (please check them out)
[url=www.youtube.com/watch?v=dp5uYkfttQY&t=339s&ab_channel=CloudWolf

]www.youtube.com/watch?v=dp5uYkfttQY&t=339s&ab_channel=CloudWolf

[/url]
Light version: www.planetminecraft.com/data-pack/ride-mobs-light-version/
CompatibilityMinecraft 1.20
Tags

Create an account or sign in to comment.

1
11/14/2023 1:47 pmhistory
Level 1 : New Miner
Outcast_1
Outcast_1's Avatar
So, can this datapack make Ravagers rideable, like horses or pigs? And if so, don't they damage the rider?

(Edit) Ravagers are indeed rideable, but they barely move, and most certainly never look in the direction you are pointing towards. Furthermore, they still damage you when you are riding them.
1
11/27/2023 10:26 amhistory
Level 30 : Artisan Modder
AlpalcaLad
AlpalcaLad's Avatar
I think that would be pretty easy to change. I'll have a look :P
EDIT: During testing I couldn't recreate the issue so not sure whats going on there. On my end ravagers dont hurt riders and move at a normal pace. If you could share a video link that might help me identify the issue? To confirm you are using the tools right to control them?
1
11/27/2023 4:53 pmhistory
Level 1 : New Miner
Outcast_1
Outcast_1's Avatar
I could try, but I don't know where to share the video itself. I have no Discord, no Twitter, no Instagram, not even Facebook. And I'm not sure if you can share videos here on Planetminecraft.

Another issue I have discovered is that this datapack slightly conflicts with another one - Agabe's chairs, that allows you to summon an invisible pig with a saddle wherever you need, and remove it just as easily. The conflict consists in that I can summon the pig, can rotate it, but can no longer remove it. Furthermore, even after this datapack is deleted, the already existing pig chairs still refuse to die via intended command, so I have to kill it directly with /kill.

(EDIT) Okay, i have found out how to make the ravager walk where you need. You have to constantly move your cursor while looking towards needed direction. If you stop, the ravager stops. However, they still only look in one direction, specifically, the one they looked towards when you mounted them, and each time the direction changes. And they still attack me while I'm on them.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome