paramat wrote:afeys and others, the new feature will soon be added https://github.com/minetest/minetest/pull/3339
"This commit adds a new API function minetest.place_schematic_on_vmanip()"
Brilliant !
Thanks
paramat wrote:afeys and others, the new feature will soon be added https://github.com/minetest/minetest/pull/3339
"This commit adds a new API function minetest.place_schematic_on_vmanip()"
Ferk wrote:Btw, is a version string exposed anywhere in the api to know what minetest version the server runs? it looks like it's available for the clients but not for the server.
It would be nice to have the version so the mod can exit gracefully if the engine is too old for it to run. But yeah just "nice-to-have", not very important.
paramat wrote:When the chunk above has not been generated yet, lighting is assumed from whether y is above or below water_level
minetest.register_on_mapgen_init(function(mgparams)
minetest.set_mapgen_params({mgname="singlenode", water_level = -31000, flags = "nolight" })
end)
paramat wrote:See new vm docs https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L2814
Don wrote:Is there a way to change the inventory slots in formspec like you can with buttons?
<some meta getter>:set_stack(<list>, <index>, <itemstack>)jp wrote:Don wrote:Is there a way to change the inventory slots in formspec like you can with buttons?
You don't really change a slot, but an item stack.Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
<some meta getter>:set_stack(<list>, <index>, <itemstack>)
jp wrote:No it's not possible and hardcoded to fit the fixed size of an inventory item.
jp wrote:No it's not possible and hardcoded to fit the fixed size of an inventory item.
GunshipPenguin wrote:Is there a way to get minetest.find_nodes_in_area_under_air() to return an array of the positions of all nodes under air, rather than just the nodes or groups specified in the nodenames argument?
fruits = {
orange = "farming_plus:orange",
apple = "default:apple",
meat = "mobs:meat",
}Users browsing this forum: No registered users and 7 guests