I have updated this, eliminated some bugs, and made it so instead of getting the last block the player tapped, it gets the block the player is currently looking at. I even made the speed of which eatHook is called a little faster. Hope you all enjoy and find use out of this mod. https://www.dropbox.com/s/p1zh8868lpuap1a/ModPE - eatHook.js?dl=0
I told you this wasn't good on Kik :P. Just make an add on or get zhuowei to implement it
Well seeing how I am learning addons and everytime I make one it says it is not updated for this version whenI do exactly what people tell me to, to fix this issue, and people have been requesting an eatHook from zhuowei to make one for ages, I got tired of all this and said, hey let me do the "Impossible" with ModPE. This is the best there is until zhuowei adds it or a modder makes an addon. So this was a great idea.
Better if made into an add-on! Just saying... Very unique and helpful mod btw
**many potion and golden-apple mods soon bc of this
Would it better as an addon? Then the player would have to install two things the addon and the mod it uses, sure it probably would be easier but I dont know much about addons yet.
Have you ever wanted to get when the player ate an Item in ModPE? If yes then this is for you. If no then get out of here. like now, right now.
How this works:
Uses amazing modTick stuffs look in the code for more details...
now a custom hook, function eatHook(foodId){}
to use in your mod just copy this code below, and edit the eatHook - WARNING - Do not edit any modTick code unless you know what you are doing.
Updated: Fixed the hotbar glitch - checking the selected inventory slot.
To make custom food, just add your food's ID to the foodItems Array, then put in the eatHook:
if(foodId==myId){
//Do things!
}
Q: Wait, is this even possible?
A: Well clearly, because I have done it...
DOWNLOAD:
https://www.dropbox.com/s/p1zh8868lpuap1a/ModPE - eatHook.js?dl=0
If you use credit is appreciated but no needed.
-Darkserver-
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Size doesn't match quality.
Anyways here is an example mod:
https://www.dropbox.com/s/khpjhlqbrx5y148/Dig Forever Food.js?dl=0
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
I have updated this, eliminated some bugs, and made it so instead of getting the last block the player tapped, it gets the block the player is currently looking at. I even made the speed of which eatHook is called a little faster. Hope you all enjoy and find use out of this mod. https://www.dropbox.com/s/p1zh8868lpuap1a/ModPE - eatHook.js?dl=0
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
May i use this in my mods?
this is really helpful for me!
Yes! Use this as you need, It is under the GNU General Public License, meaning you have free will. As for credit, it is wanted but never needed
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
I told you this wasn't good on Kik :P. Just make an add on or get zhuowei to implement it
Well seeing how I am learning addons and everytime I make one it says it is not updated for this version whenI do exactly what people tell me to, to fix this issue, and people have been requesting an eatHook from zhuowei to make one for ages, I got tired of all this and said, hey let me do the "Impossible" with ModPE. This is the best there is until zhuowei adds it or a modder makes an addon. So this was a great idea.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
This is really useful. Thank you for doing this.
All the known bugs are fixed!
Now go out there and make some food mods!
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Please add this.link to the thread aswell: https://github.com/Trekhit/eatHook
This was supposed to be deleted off the Trekhit github, also it needs to be updated
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
This was supposed to be deleted off the Trekhit github, also it needs to be updated
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
wow a new function in modpe
and this time its an eat function
this could be very useful to a more food mods or
something huge mod like rpg,modpack or maybe a hardcore survivalcraft mods
Better if made into an add-on! Just saying... Very unique and helpful mod btw
**many potion and golden-apple mods soon bc of this
Would it better as an addon? Then the player would have to install two things the addon and the mod it uses, sure it probably would be easier but I dont know much about addons yet.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions