I want to have a teleportation functionality for my mod's pickaxe similar to EnderIO's Dark Pick. I scoured the Dark Pick source code on GitHub along with some other teleportation stuff but wasn't able to work out how am I supposed to achieve the functionality in MCreator. Can someone please help with this? I am using MCreator 1.7.0 for MC 1.10.2 .
P.S: I am on the way of learning Java, so please don't keep telling me to learn Java.
I'm not sure about MCreator doing this but I know you can add some motionX and motionZ to the player to get him/her to move an amount of blocks on the x or z axis.
You mean for example to a block that is is some range (let's say 32 blocks) and player looks on it , or simply teleport to the direction 32 blocks far , even that there may not be any block?
Yeah. That's the exactly what i need. I mean to teleport even tho there is no block
I'm not sure about MCreator doing this but I know you can add some motionX and motionZ to the player to get him/her to move an amount of blocks on the x or z axis.
Could you elaborate a little on how can I achieve that? I'm pretty sure MCreator allows custom code.
Why? Because you aren't learning anything by using MCreator, MCreator does everything for you. You might think it's making sure things are being done correctly, or taking care of the boring stuff, but you don't know how to do either of those things yourself. Learning to do the basics(Simple blocks/items, eventhandlers & proxies) gives you a basic understanding of how parts of MC work; if you screw up along the way, that's even better, you've learnt what doesn't work(And hopefully why). An understanding of the MC engine is essential to making anything interesting. Additionally, if you don't understand how parts of your mod work, if there's a bug you can't fix it.
You've said you're learning Java, so continue doing so and dump MCreator. It's far better to make your mods yourself.
In regards to the teleportation functionality, once you have a Forge workspace setup, try finding CommandTeleport or EntityEnderPearl and seeing how they cause teleportation.
I want to have a teleportation functionality for my mod's pickaxe similar to EnderIO's Dark Pick. I scoured the Dark Pick source code on GitHub along with some other teleportation stuff but wasn't able to work out how am I supposed to achieve the functionality in MCreator. Can someone please help with this? I am using MCreator 1.7.0 for MC 1.10.2 .
P.S: I am on the way of learning Java, so please don't keep telling me to learn Java.
I actually want it to teleport the player to the direction he/she is facing on right click (similar to the dark pick functionality)
I'm not sure about MCreator doing this but I know you can add some motionX and motionZ to the player to get him/her to move an amount of blocks on the x or z axis.
Yeah. That's the exactly what i need. I mean to teleport even tho there is no block
Could you elaborate a little on how can I achieve that? I'm pretty sure MCreator allows custom code.
Just add this to your code:
player.motionX += 2
or if you want to move on the z axis
player.motionZ += 2
Step 1. Uninstall MCreator
Step 2. Delete all MCreator created code
Step 3. Write it yourself,
Why? Because you aren't learning anything by using MCreator, MCreator does everything for you. You might think it's making sure things are being done correctly, or taking care of the boring stuff, but you don't know how to do either of those things yourself. Learning to do the basics(Simple blocks/items, eventhandlers & proxies) gives you a basic understanding of how parts of MC work; if you screw up along the way, that's even better, you've learnt what doesn't work(And hopefully why). An understanding of the MC engine is essential to making anything interesting. Additionally, if you don't understand how parts of your mod work, if there's a bug you can't fix it.
You've said you're learning Java, so continue doing so and dump MCreator. It's far better to make your mods yourself.
In regards to the teleportation functionality, once you have a Forge workspace setup, try finding CommandTeleport or EntityEnderPearl and seeing how they cause teleportation.
Please don't PM me asking for help, I will just redirect you to the appropriate forum, where there are others who are far more skilled than me.
This is not the signature you are looking for.
Banners and such things