I'm trying to make a player be able to "ride" a snowball as it is thrown through the air. I've tried simply teleporting the player to the snowball every tick using the execute command, but this makes the ride very jittery and messy looking. Is there a way to improve this, perhaps with riding an entity?
Well, 4 years later and you're finally getting an answer.
The command: /execute if entity @e[type=snowball] run ride *player name* mount @e[type=snowball,limit=1]
You should paste the command in a repeating command block with optional always active enabled.
This command works as of 2024, but is buggy in multiplayer worlds (as you will ride any snowball thrown as long as it is the only one)
This will only work if the chunk with the command block is loaded, but you can force load the chunk by enabling chunk boarders: f3+g, standing inside the chunk you want to load, and execute the command: /forceload add ~ ~
I'm sure there is another longer command to make it fully functional in multiplayer worlds, and enable you to dismount (which you can't do with the current command because it is a repeating command), but this should get you started.
I am attempting to make a specific snowball, named cloud, for my minecraft server which allows you to throw it and the nearest player will ride it, so not all snowballs will be like this. I currently have this in a repeating command block: /execute as @ e[type=snowball,tag=fly] run ride @ p[] mount @ s. I don't know why this isn't working, i checked that the snowball I was throwing had the correct tags and I tried multiple times with different tags and it didn't work. Does anyone know what is going on?
I'm trying to make a player be able to "ride" a snowball as it is thrown through the air. I've tried simply teleporting the player to the snowball every tick using the execute command, but this makes the ride very jittery and messy looking. Is there a way to improve this, perhaps with riding an entity?
Well, 4 years later and you're finally getting an answer.
The command: /execute if entity @e[type=snowball] run ride *player name* mount @e[type=snowball,limit=1]
You should paste the command in a repeating command block with optional always active enabled.
This command works as of 2024, but is buggy in multiplayer worlds (as you will ride any snowball thrown as long as it is the only one)
This will only work if the chunk with the command block is loaded, but you can force load the chunk by enabling chunk boarders: f3+g, standing inside the chunk you want to load, and execute the command: /forceload add ~ ~
I'm sure there is another longer command to make it fully functional in multiplayer worlds, and enable you to dismount (which you can't do with the current command because it is a repeating command), but this should get you started.
I am attempting to make a specific snowball, named cloud, for my minecraft server which allows you to throw it and the nearest player will ride it, so not all snowballs will be like this. I currently have this in a repeating command block: /execute as @ e[type=snowball,tag=fly] run ride @ p[] mount @ s. I don't know why this isn't working, i checked that the snowball I was throwing had the correct tags and I tried multiple times with different tags and it didn't work. Does anyone know what is going on?
Das ist sehr gut geschrieben, das war auch sehr hilfreich. Ich mag so etwas Interessantes!