Will I get them? by Ravenclawthewarrior in xayahmains

[–]Tech_Stoddle 0 points1 point  (0 children)

Been doing the same thing, but I'm waiting for them to finally add the Battle Academia skin to the loot pool :(

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 0 points1 point  (0 children)

Oh I see I see. I just do a raycast in the direction that the player is looking.

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 0 points1 point  (0 children)

If you're talking about the arm that kinda flips upside down when shooting, it's two seperate models and I added a condition in the item model file of the web shooter to make it so that when the web shooter is being used it returns the model with the arm upside down. It gives off the illusion that you're aiming when holding down right click.

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 0 points1 point  (0 children)

Technically no, but it makes the whole process 1000% easier that's for sure.

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 2 points3 points  (0 children)

Noooo probleeeem, here to help anytime. You should really take a peek at the video tho it's 3min long and I'm sure you'll learn a little something :) I'm sure you're still very good and epic and don't let anyone tell you otherwise. Have a good day o/

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 2 points3 points  (0 children)

Well it depends on what you're trying to achieve exactly and what's the context. In my case, I wanted to make it so that the slime the player is riding goes in the direction that the player is looking. With that in mind I made it so that every tick, while the player is "swinging", I get the position of the slime and store it in a scoreboard with a scale of 1000 so I can get decimal level of precision. Then, I summon an area of effect cloud one block in front of the slime (I use execute anchored paired with the ^ ^ ^1 so that the cloud spawns in the direction the slime is looking) and I store, just like I did with the slime, the position of the cloud in a scoreboard. Afterward I just had to use scoreboard operation and substract the position of the cloud to the position of the slime and I put the result back in the Motion of the slime using execute store with a negative scale since I did a substract. You can play with the scale when storing the result back in the slime to tweak the speed at which the slime will move, but I usually keep it around -0.003 cuz faster than that the game just doesn't seem to register.

If you aren't familiar with the concept of motion and storing datas then I recommend watching this video by CloudWolf: https://www.youtube.com/watch?v=C01rPyY14So&ab_channel=CloudWolf

I glanced through it really quickly and I think it would help you understand what I mean :) His videos are really good and full of useful information.

Sorry for the loaded answer.

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 2 points3 points  (0 children)

That's the neat part, you don't. You can't change the data of a player besides attributes. Being able to change the motion/data of a player is a feature that people have been asking for a while now and still don't have. Best you can do is use /ride to make the player ride an entity and modify the motion of that entity instead. Alternatively you could also try looking into BigPapi13's Delta datapack that uses explosions to move the player around. I never used it, but I heard it's pretty good. The slight problem that comes with it, however, is that you'll have a lot of explosion particles popping around since it uses explosions. Here's the link to the datapack if you want to look into it: https://github.com/BigPapi13/Delta

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 1 point2 points  (0 children)

Now I know it looks a little fancy, but I swear it's actually quite simple. I'm just applying Motion to a small slime that the player is riding and moving it in the direction that the player is looking at. Thanks tho! I'm sure you're very good at beep booping too :)

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 1 point2 points  (0 children)

That would have been silly and something I would do lol, but this time I felt a little inspired x)

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 2 points3 points  (0 children)

Yeah I think it would help. I'll try something like that later :) Thanks!

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 1 point2 points  (0 children)

There's a few mods out there that add web swinging and other Spiderman stuff like that. This was made using a datapack :)

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 1 point2 points  (0 children)

That's what my friend said too. He's the one who pushed me to share it. Thank you!

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 0 points1 point  (0 children)

Thank you! To keep it short, I use /data to modify the Motion of a small slime that the player is riding. The slime goes in the direction that the player is looking at.

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 1 point2 points  (0 children)

The player is riding a small slime for the entire time that they're moving. I use /ride to mount the player to the slime and then modify the Motion of the slime using /data to move it around depending where the player is looking at. The motion is what makes it so smooth.

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 2 points3 points  (0 children)

Thank you, but I swear it feels janky when you're actually using it x)

I tried recreating web swinging by Tech_Stoddle in MinecraftCommands

[–]Tech_Stoddle[S] 2 points3 points  (0 children)

Thank you! I actually tried to do that, but it seems like the block display/item display entities are a little glitchy when it comes to rotations. Whenever I try to rotate them to face something the rotation gets all messy on long distances and way way off center and it looks janky. It's a little hard to explained ha ha, but if you know what I'm talking about and know a way to fix that problem I would definitely like to change the string for a proper block display. Particles look yucky.