So I am taking in a dead mod (Sly Cooper Mod) and was working on some of the coding. One thing that I really would love to know how to do would be the "parkour" parts of Sly cooper. Such as certain objects in sly cooper you could grapple or climb on (the glowing particles). I would want the same thing. Is there any way that say when i right click with a staff the player would teleport/move to a specific approved block? Much like how sly would grapple onto the ring in this picture
I can't (and won't) give you exact code, but the way you approach this is by casting a ray into the world to detect the block the player is currently looking at (if any, and you probably want to limit the range as well). Once you find the location of that block you need to move the entity (player) directly on top of that block (same x/z location but y + 1). Of course you'll need to do some extra checks to make sure there is enough free space to place the entity on that location as well as making sure the block under the entity is solid etc.
Perhaps dig around the Minecraft code and see how the game figures out what block the player is currently facing (the game needs this for things as mining blocks, tools also have a limited range so you should find a perfect solution to your problem within the original code).
Okay, the problem is (at least for me) I can no longer look at the minecraft files because of how the new coding works with gradle. Can you give me a tip on that?
It should be in .java. It's located at build > tmp > recompSrc > net > minecraft. Everything should be .java files. If you went to recompCls, all the files would be .class.
http://3.bp.blogspot...c/s400/sly1.jpg
tl;dr
Is there a way to right click with a tool and you teleport/move to and grapple/stay on a block (like in sly cooper).
Any help is greatly appreciated
Okay, the problem is (at least for me) I can no longer look at the minecraft files because of how the new coding works with gradle. Can you give me a tip on that?
Awesome! Thanks so much! I have been searching for this everywhere!
So i cannot view the code as a .java file? only .class? (read only) Because it is in awful format now. :/