Hey guys,today i have a mod idea,it basically resembles the pc weight mod,the more stuff u have in your inventory slots,the heavier you get,the slower you walk!!! I wish them pe modders are able to do it for me,no,for the future of MCPE!!!
You can decrease the player speed by using modTick() and setVelX/Z(getPlayerEnt(), Entity.getVelX/Z(getPlayerEnt())*numberLessThanOne);
I was thinking about checking the speed if is higher than a limit and if it is set the speed of the player to the limit.
But your code is more simple and works, so thanks
My ****.
---------------------------------
| |
---------------------------------
Edit: the only problem could be how to decrease efficiently the speed of the player. I'm thinking about it.
All the other things I've made for Minecraft: desno365.net/minecraft/
Follow me on Twitter: @desno365
Visit my website: desno365.net
I was thinking about checking the speed if is higher than a limit and if it is set the speed of the player to the limit.
But your code is more simple and works, so thanks
All the other things I've made for Minecraft: desno365.net/minecraft/
Follow me on Twitter: @desno365
Visit my website: desno365.net
Actually I finished it many days ago but I haven't found the time to post it.
I made a video while a made it, here it is:
Here the link:
P.S.: the link for download is in the description of the video.
All the other things I've made for Minecraft: desno365.net/minecraft/
Follow me on Twitter: @desno365
Visit my website: desno365.net
thanks Desno! we can always count on you for great mods ^^
---------------------------------
| |
---------------------------------
My ****.