[Mod] On eat [on_eat]
[Mod] On eat [on_eat]
On Eat
___________________________________________________________________________________________________
Download | Github
"Minecraft like" particles idea for eating
How it works? Using 1 mask texture we get this:
___________________________________________________________________________________________________
Download | Github
"Minecraft like" particles idea for eating
How it works? Using 1 mask texture we get this:
Last edited by bosapara on Wed Jun 05, 2019 18:16, edited 3 times in total.
- texmex
- Member
- Posts: 1753
- Joined: Mon Jul 11, 2016 21:08
- GitHub: tacotexmex
- In-game: tacotexmex
Re: [Mod] On eat [on_eat]
Excellent contribution. I’ve seen similar in MCL2 but not as standalone. You should submit this to either MTG or even the engine’s builtin Lua.
Re: [Mod] On eat [on_eat]
As i know mcl2 has just default textures idea for eat particles or you mean different particles?texmex wrote:Excellent contribution. I’ve seen similar in MCL2 but not as standalone. You should submit this to either MTG or even the engine’s builtin Lua.
local texture = minetest.registered_items[itemname].inventory_image
Re: [Mod] On eat [on_eat]
It does not work for me. Maybe it conflicts with Default or another mod, I do not know.
Re: [Mod] On eat [on_eat]
Yes of course, if you use hudbars or stamina mods - it will not workruns wrote:It does not work for me. Maybe it conflicts with Default or another mod, I do not know.
Try to turn off another mods or just add particles code to that mods
Re: [Mod] On eat [on_eat]
Oh, any workaround to get all of them?bosapara wrote:Yes of course, if you use hudbars or stamina mods - it will not workruns wrote:It does not work for me. Maybe it conflicts with Default or another mod, I do not know.
Try to turn off another mods or just add particles code to that mods
:-(
Re: [Mod] On eat [on_eat]
There are too many different mods with custom effect "on_eat". Write me to pm what is mods you want use with particles.runs wrote: Oh, any workaround to get all of them?
:-(
- texmex
- Member
- Posts: 1753
- Joined: Mon Jul 11, 2016 21:08
- GitHub: tacotexmex
- In-game: tacotexmex
Re: [Mod] On eat [on_eat]
Why not just wrap any existing on_eat function and add this code?
Code: Select all
Like,
existing_on_eat = on_eat
on_eat = function()
your stuff
existing_on_eat()
end
Re: [Mod] On eat [on_eat]
This is the way or in default mod.texmex wrote:Why not just wrap any existing on_eat function and add this code?
Code: Select all
Like, existing_on_eat = on_eat on_eat = function() your stuff existing_on_eat() end
Re: [Mod] On eat [on_eat]
Some mods already use overwrite, so just easy add particles code to each modtexmex wrote:Why not just wrap any existing on_eat function and add this code?
Re: [Mod] On eat [on_eat]
this is awesome! Now all we need is make it so eating takes a few seconds, and has a proper animation.
Testin' mines since 1989
Re: [Mod] On eat [on_eat]
Update
__________________________________________
- Added object collision and code reduced / optimized in 8x times
DOWNLOAD
__________________________________________
- Added object collision and code reduced / optimized in 8x times
DOWNLOAD
Who is online
Users browsing this forum: No registered users and 32 guests