Герхард PICCORO Lenz McKAY
3eacc17e73
Fix 0.4 compatibility (#16)
* added minetest 0.4 compatibility due the trasnlation missing support * if translation is not supported use english on compat/mtg.lua * improved the code of translation of the already init.lua * this solves: closes https://github.com/minetest-mods/lavastuff/issues/13 * this solves: closes https://codeberg.org/minenux/lavastuff/issues/1 * close https://codeberg.org/minenux/lavastuff/issues/1 * real fix for compatibility later trasnlations * real fix for https://github.com/minetest-mods/lavastuff/issues/13 * use native translator or intlib property as must be, but mock if both fails * fix modname and use intlib depennds only in older engines * autodetect mod name from minetest api * added only intllib in depends.txt for older 0.4.X, mod.conf its for 5+ so due 5+ has built in internationalization its not necesary in that file * added the depends only when necesary for intllib * Update init.lua usage or MODNAME and MODPATH Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com> * puff also uage ot the MODNAME in get translator * update luacheck as suggested by lonewolf i dont know how to avoid the usage of those variables.. but he suggested to just put those .. https://github.com/minetest-mods/lavastuff/pull/16#issuecomment-1036497969 * move intllib to others to do not fail in checks agains moderns engine also added ',' at the en of the line Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
Lavastuff
Adds lava armor (where possible), tools, and blocks
Please tell me (and everyone else) what you think at https://content.minetest.net/packages/Lone_Wolf/lavastuff/review/
API
- lavastuff.burn_drops("tool:itemstring") - Cooks all of the nodes that tool:itemstring digs
- lavastuff.enable_tool_fire - Enable/Disable the lava tool fire feature
- lavastuff.blacklisted_items - Prevent lava tools from smelting certain nodes. See code for how to add an item to the list
- lavastuff.cook_limit - Prevent lava tools from smelting dug nodes if cooktime is too high
- lavastuff.tool_fire_func - The function used by lavastuff tools to place fire
Game support
- Minetest Game - 100% support
- MineClone2 - (Partial support)
- NodeCore - (Coming soon, /give works)
Language support
- Spanish - (Thanks to runs & xenonca)
- French - (Thanks to Brian Gaucher and louisroyer)
- German - (Thanks to xenonca)
- Italian - (Thanks to xenonca)
Special Features
- Tool Fire - Lights flammable nodes on fire when rightclicked. If node has set on_ignite then that function will be run instead of the fire being placed
- Autosmelt - All nodes dug with a lava tool will be automatically smelted before being added to your inventory
- Buurn - If the fire_plus mod is enabled players will catch on fire when hit with a lava tool
Most features can be disabled. If I don't have a setting to disable something you want to disable: Just ask!
Description
Languages
Lua
100%