rahonejm wrote:Hey, here's something that i would like to see and i'm sure that many other people would:
MarkTraceur wrote:rahonejm wrote:Hey, here's something that i would like to see and i'm sure that many other people would:
Please don't post this in the mods forum, it should go in the General Discussion. Especially not in this topic.
neko259 wrote:I've noticed that furnace_burntime is deprecated and I should use new craft syntax. Formerly I used this parameter to check material flammability in my fire mod. How can I check it now?
Shortcomings
It's currently not possible to retrieve the result of a crafting operation from Lua. ...
You can now use all fields allowed in item definitions.
neko259 wrote:You can now use all fields allowed in item definitions.
Maybe I can use material.flammability for nodes from now?
dug_item = 'node "default:dirt" 1',
minetest.register_craft({
type = "fuel",
output = "default:leaves",
burntime = 3,
})
minetest.register_craft({
type = "fuel",
recipe = "default:leaves",
burntime = 3,
})
For now the best way is probably to check material.cuttability and material.weight. Of course this is far from ideal.
// Handle the case where render-to-texture
// is not supported
if(def->inventory_texture == NULL)
{
def->inventory_texture =
tsrc->getTextureRaw(f.tname_tiles[0]);
}
Users browsing this forum: No registered users and 16 guests