Started by
TheSkruffy
on
Topic category: Help with Minecraft modding (Java Edition)
Trying to make a flying mount that can support 2 players on its back, i already made it mountable and usable but the probelm is that i want two players to be able to ride it at one time
You could do this the same way Minecraft handles parrots: a new entity is summoned at the position of the player's shoulder, and the parrot becomes its mount. That way the parrot seams to be riding on the player's shoulder. You could summon another entity at the position you want the second player to sit, and them make it ridable as well. If you want, you could make a procedure that happens when the player right clicks the flying mount and checks if the mount is already being ridden. If it is, then make the player sit on the second summoned entity. That's all.
Can you help me ? I dont know how to summon another entity on the main mount :c
Damn thats really smart, tnx
Only 1 probem, how do i force sit player onto the entity, also this can be easily glitched if 2 mounts are near eachother and you lets say teleport to the other one near it?
You did it ? Can you help me ?
Still can't do it, i think Argus doesn't know that a parrot on a shoulder doesn't count as an living entity ,its an player tag. I will try to do something but i can't gurantee that ill find out how
I think i got it, its quiet complicated, actually really complicated. First you need to make a ridable entity with an invisible model, using a command /execute at @e[type=ess:whaletest] run teleport @e[type=ess:ridable,limit=1] ^ ^ ^-1 (also whaletest is the entity that will have 2 seats and ridable is the entity that is next to it) the player can simply click on either one, also make sure they are far apart just about enough to so that their hitboxes dont collide too much cause it will be alot more difficult, also this is for "Entity tick"
Function:
/team add NO
/team modify NO collisionRule never
/team join NO @e[type=ess:whaletest]
/team join NO @e[type=minecraft:player]
/team join NO @e[type=minecraft:ridable]
This makes it so the ridable doesnt push around the real entity, also makes the player thats on the custom seat not collide with the hitbox. IM gonna try it out and imma update it if it works
one probelm, making the ridable is hard, maybe make it so you have to add two saddles or something, that can be a good atempt
I have to put the Entity tick procedure on the entity that has 2 munts or in the invisible entity?
yes, also it doesnt work the best, sometimes the invisible entity thats behind it dies for some oreason or despawns, also ^-1 ^ ^ makes it so its behind the entity
actually 2 people like a boat if we know how to do it. 'Cause I don't understand anything here
https://mcreator.net/forum/109088/tutorial-riding-two-players-one-entity