Search found 4 matches

Return to advanced search

Re: Overriding default "eat" behavior with register_on_item_

Ok, sorry, something went wrong with another mod.
Returning ItemStack prevents the default behavior, like it should.
However, returning true really crashes the game, like mentioned earlier.
The wiki doc must be fixed.
by cronvel
Thu Nov 14, 2019 14:16
 
Forum: Modding Discussion
Topic: Overriding default "eat" behavior with register_on_item_eat
Replies: 1
Views: 22

Overriding default "eat" behavior with register_on_item_eat

I'm trying to code a small survival mod with hunger/thirst management (and more). The documentation on minetest.register_on_item_eat() says that overriding the default behavior (healing) can be done if the callback return true but instead it crashes the game, or return an ItemStack but healing occur...
by cronvel
Thu Nov 14, 2019 13:04
 
Forum: Modding Discussion
Topic: Overriding default "eat" behavior with register_on_item_eat
Replies: 1
Views: 22

Entity/mobs hit detection is really buggy

Hi, I upgraded from 0.4.x to 5.1.0 few days ago and decided to add mobs to the game (Minetest game). I play with my 6 year old son (LAN game only), and since he is more confortable with the mouse now, I decided to spice things up and add mobs, mobs_animals, mobs_humans, mobs_wolf and mobs_dwarves. B...
by cronvel
Thu Nov 14, 2019 10:08
 
Forum: Problems
Topic: Entity/mobs hit detection is really buggy
Replies: 1
Views: 21

Impossible to type a 7 in the Minetest menu (Fedora)

Hi! That's in the title : I can't type a 7 in the menu, so for example I can't enter an IP address to join if it contains a 7. I'm on Linux Fedora 29, never had issue with the keyboard in any software, my laptop running Fedora 28 has the same issue. My keyboard layout is french (hardware), but it do...
by cronvel
Fri Jan 11, 2019 17:04
 
Forum: Problems
Topic: Impossible to type a 7 in the Minetest menu (Fedora)
Replies: 1
Views: 167

Return to advanced search