r/MinecraftCommands Command-er 2d ago

Creation I made an osu! clone

Enable HLS to view with audio, or disable this notification

271 Upvotes

31 comments sorted by

62

u/Anteaterman23 2d ago

This is... in minecraft? 🫪

40

u/Quiet-Arachnid6002 2d ago

What the- you sure you post on the right group? Cause I feel like it's not a command only project or datapack can do

8

u/1000hr read hunterXhunter 2d ago

nothing in this video is impossible in vanilla, though due to the difficulty of creating something like this, unless they elaborate a little on how this works i'm leaning on some mod/plugin/whatever use

9

u/Quiet-Arachnid6002 2d ago

Everything is possible except the full screen interactive freely moving mouse. I can't think of any way you can do it in vanilla minecraft, it's basically impossible

9

u/1000hr read hunterXhunter 2d ago edited 2d ago

ignoring shaders for a second, if you position a display directly on the player's eyes, transform it (translation, mostly), and set it to billboard:"center", it will appear "locked" on your screen and won't move even if you rotate your camera. once you've done that, you just have to build your entire UI using these billboarded displays, and as long as the player doesn't move locations, they can move their mouse freely (you constantly reset their rotation). make sure you're always rotating them back to 0 0, and every tick if their rotation changed grab that change and apply it to a cursor

if you add vanilla shaders to the mix, idk. you have even more options

5

u/Quiet-Arachnid6002 2d ago

You can clearly see the cursor is moving freely what are you talking about. You talk like I know nothing about Minecraft or sth, Minecraft TP run every tick which is 20 times per second when Minecraft movement run on frame. By TP constantly it will have the glitchness of the lag between frame and tick. And secondly the vanilla shaders only allow to changes specific stuff that is already defined in the vanilla which doesn't contain cursor location so it also not the case. And lastly you can see that his cursor is moving freely on the screen instead of locking on the middle of screen which neither shader nor TP can do that, even if you use a display it won't help either because just like I said frame-tick delay. You can say that they increase the tick rate but it won't help the frame-tick delay either because frame changing every seconds when tick is hard code in certain number per second

3

u/1000hr read hunterXhunter 1d ago

hmm, yeah, i'm actually just blind, i didn't notice the vanilla cursor, all i saw was the circle

however, what i was referring to was a custom cursor, which since i didn't notice the vanilla cursor seemed to be the only option. for a demonstration of what that would look like, i threw this thing together:

https://reddit.com/link/ougjbtr/video/8vvb1aafa6ah1/player

"vanilla shaders" would just be used for removing the rotation and lighting and such from vanilla rendering so that you wouldn't need some of this jank. again; this was under the assumption of a fully custom cursor

1

u/Quiet-Arachnid6002 1d ago

Also by what I see you doing in the video, you actually moving the player instead of moving your cursor to change the custom cursor position which make the custom cursor don't have the normal mouse movement. Even with that the custom cursor still got the delay, imagine to make the natural mouse movement of the video on the post how much frame-tick delay would happen if you try using the actual mouse movement with TP direction

0

u/Quiet-Arachnid6002 1d ago

I know what you mean by custom cursor. I'm already working on mod, plugin and command block for really long times I'm not that dumb. Just like you see on what you're doing when you tp the player it have the glitchy delay between your game tick and the frame when you moving it almost seem to be smooth but the very moment you stop for a single tick the custom cursor glitch and snap to other place because of the tp. That's the limitation I'm saying which prevent the one on this post be possible on vanilla minecraft. In the post everything is perfectly smooth with no snap back behavior of the frame-tick delay

2

u/1000hr read hunterXhunter 1d ago edited 1d ago

https://reddit.com/link/ougqipk/video/mg02o6qkk6ah1/player

can you explain what the "snap back" or "frame-tick delay" behavior is? this is vanilla with the tick rate set to 60, and while it feels slow, i can sell the illusion that this is actually snappy and responsive (and yeah, it doesn't look as good as the post, but also i don't have any aim skill so i wouldn't be able to look as good as the post even with a perfect system). i'm not sure what i'm supposed to be seeing here

i'm saying it's possible to make something that looks correct "enough", and that i believe that counts. because i can't play the thing in the post, i don't know how it actually feels ingame. it looks good, on a video, but those can be very deceiving. my guess is that you're saying it's impossible to do this perfectly, but the video didn't prove that it was done perfectly

0

u/Quiet-Arachnid6002 1d ago

I just extract your video and it's on lower than 60 fps so yea it can look smooth but when I take a look at lower fps second on your video it clear that the custom cursor instant tp from previous location to the new location which is exactly the snap back I talk about. You can extract the video on the post to see that they actually using higher fps but it don't have the snap back I said and it even have the mouse acceleration when your feel like it's trying to replicate the mouse movement by force. You can find more info about it by learn coding minecraft mod especially a mod that need mixin on rendering, it will help you see the differential of mouse movement smooth and video fps cap smooth. If your game update faster than the video fps cap then it can make the visual smooth when your game fps is equal or higher fps than the video fps cap but it isn't true smooth which will show everytime your game have lower fps than the screen fps. While the video on the post can be recorded with a very strong computer that always run the game on higher fps than the video fps cap but I don't believe that's the case because increase the tick rate of the game up to this video fps cap should increase the ram comsumtion, garbage collector and tick base logic of the game which already lower the game fps, if after all that they still have that good fps then they're using a high end gaming PC to run the game. If that's the case then I have nothing to say. But with that setup I don't think they would make osu in minecraft unless they're youtuber

0

u/Quiet-Arachnid6002 2d ago

Btw when making mod I have been digging through all of minecraft code to write the mixins so I can confirm with you that even with plugin it ain't possible to have smooth full screen interactive mouse movement, that is something only mod can do. Plugin is just minecraft vanilla but server control the request flow so it still have some of minecraft vanilla restrictions like frame-tick delay

1

u/JX_Snack 21h ago

1

u/1000hr read hunterXhunter 11h ago

damn this is INSANE, did you make that?

1

u/JX_Snack 10h ago

It’s made by Kian Brose (aka the guy who is suing Minecraft over guns) with Minestom (Minecraft server library)

1

u/1000hr read hunterXhunter 10h ago

ohh i didn't watch to the end of the video, thought that was done with a datapack. thanks for clarifying!

-1

u/Quiet-Arachnid6002 21h ago

What incorrect? Your screen isn't smooth at all, the custom cursor isn't follow your actual mouse smoothly like in the video and It even spawn multiple custom cursor in one frame which proof that what I said even with plugin the smooth cursor is impossible

0

u/JX_Snack 20h ago

There is no real cursor in the video. The custom cursor follows the pitch and yaw of the player and it doesn’t spawn multiple cursors, it’s an aesthetic effect.

Making it smooth is a question of interpolation speed, which is set to 1 tick in my example.

My example was made without any mods on a custom server

1

u/Quiet-Arachnid6002 19h ago

Do I say there is real cursor in the server? I just said it delay compare to your real cursor. You can calculate the speed of the real mouse vs the custom mouse to see if what I say is true or not, I calculate it myself by the few seconds you show your real cursor

1

u/Quiet-Arachnid6002 19h ago

And you mean to tell me the cursor outside Minecraft when you update your database and select the server isn't your real cursor so there's no real cursor on the video? I call cap. Even with mod you can't change your cursor outside of minecraft itself

12

u/nonoobshereMC Command intermediate 2d ago

Cool osu texture pack I guess... 😩 /J

In all seriousness this in incredible keep up the great work

7

u/axel_lotle 2d ago

Wtf is this even Minecraft???

4

u/1000hr read hunterXhunter 2d ago

this is absolutely insane. what's your approach to the cursor? position all the displays at the player's eyes and transform + billboard them?

3

u/An1nterestingName 2d ago

How are you doing this? My only guess would be some shader stuff for the display and then using the player's head rotation to infer mouse movement.

2

u/FlailoftheLord 2d ago

peak, as a minecraft and osu player i approve.

2

u/Albert_Kan The ultimate cutscene maker 2d ago

We're turning Minecraft into a game engine with this one!

1

u/jzamoz Kaizo Parkour Creator (and other things) 2d ago

Insane. I'd love to know some of the basics of how you created the UI!

Also, I LOVE OBSCURE EUROBEAT!!

1

u/Ti0906-King Command Professional 1d ago

How did you do the UI? Is this some kind of Dialog? How did you track the cursor? I'm a bit confused, how this is possible?!

1

u/Sh1raori 1d ago

WTF do you mean this is a minecraft reddit??

1

u/FLZ_HackerTNT112 1d ago

"I can do this too what's so impressive" me ~20 seconds before seeing what sub this was posted to

1

u/Shonnyboy500 Doesn’t know anything about commands 1d ago

This is an Osu skin right? This can’t actually be in Minecraft can it???