aboutsummaryrefslogtreecommitdiff
path: root/src/scriptapi.cpp
AgeCommit message (Collapse)Author
2012-11-25Add a subfolder for models and transfer models from server to clientMirceaKitsune
(obj, md2 and md3 are currently allowed) Get rid of the texture string and use the existing textures array. Segmented meshes have multiple materials, and this will allow us to texture each. Do not switch to this commit yet! If a texture string is left empty in LUA, don't modify that material. Useful so a script can change specific textures without affecting others
2012-11-25Properly read the mesh from LUA.MirceaKitsune
Players can now be set to meshes using the following test script: function switch_player_visual() prop = { mesh="player.obj", texture="player.png", visual="mesh", } for _, obj in pairs(minetest.get_connected_players()) do obj:set_properties(prop) end minetest.after(1.0, switch_player_visual) end minetest.after(1.0, switch_player_visual)
2012-11-03Merge pull request #243 from xyzz/liquid_renewablePilzAdam
Add liquid_renewable property, allow non-renewable liquids.
2012-09-09Add dtime_s to entity activationPerttu Ahola
2012-09-09Fix ObjectRef:punch()Perttu Ahola
2012-09-07Add liquid_renewable property.Ilya Zhuravlev
2012-09-01Add InventoryList width property & allow custom crafting grids.Ilya Zhuravlev
2012-08-12Add ban management routines to Lua APIMatthew I
Those functions are: * minetest.get_ban_list() * minetest.get_ban_description(ip_or_name) * minetest.ban_player(name) * minetest.unban_player_or_ip(ip_or_name)
2012-08-12Extend Lua API in order to implement chat commandsMatthew I
minetest.get_server_status() minetest.request_shutdown() EnvRef:clear_objects()
2012-08-12Allow digging of unknown nodesMatthew I
This allows the removal of nodes with unknown types. get_item_callback() (C++) would fail if a node has an unknown type. Now it will try using the callback from minetest.nodedef_default in this case. Also, minetest.node_dig() (Lua) was altered to always allow digging when the node definition is empty (i.e. unknown node).
2012-07-27Handle max<min in LuaPseudoRandom::l_next()Perttu Ahola
2012-07-27Experimental-ish rollback functionalityPerttu Ahola
2012-07-25Improve inventory callbacks a bitPerttu Ahola
2012-07-25Remove special handling of creative modePerttu Ahola
2012-07-25Detached inventory callbacks and reworked node metadata callbacksPerttu Ahola
2012-07-24Detached inventoriesPerttu Ahola
2012-07-23Implement node timersdarkrose
2012-07-22minetest.register_on_player_receive_fields()Perttu Ahola
2012-07-22Add minetest.get_modnames() to Lua APIMatthew I
2012-07-21Fix typo in scriptapi.cpp in minetest.get_craft_recipe()Perttu Ahola
2012-07-21Check for table type when reading groups from Luadarkrose
2012-07-21Add minetest.get_craft_recipe()darkrose
2012-07-19Allow defining player's inventory form in LuaPerttu Ahola
2012-06-19Fix /builtin/misc.lua:47: attempt to call method 'is_player' (a nil value)Perttu Ahola
2012-06-17Custom boxy nodes (stairs, slabs) and collision changesKahrl
2012-06-17Properly and efficiently use split utility headersPerttu Ahola
2012-06-16Fix "Node placement prediction failed for (places __default) - Name not known"Perttu Ahola
2012-06-16Node texture animationPerttu Ahola
2012-06-10Node placement client-side predictionPerttu Ahola
2012-06-06Allow replacements in cooking and fuel recipesKahrl
2012-06-05Add after_destruct and cache the existence of on_construct, on_destruct and ↵Perttu Ahola
after_destruct for quick skipping when a node does not have them
2012-06-05place_node, dig_node and punch_node; an in-game tester tool; remove old codePerttu Ahola
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-06-03Add InvRef:is_empty(listname) and make chests/furnaces not diggable if not ↵darkrose
empty in minimal game
2012-06-03Add ObjRef:is_player() and modify ObjRef:get_player_name() to always return ↵Perttu Ahola
a string to aid better inter-object compatibility of code that assumes objects to be players
2012-06-03minetest.get_craft_resultPerttu Ahola
2012-06-03NodeMetaRef:{to,from}_table and lua_api.txt additionsPerttu Ahola
2012-06-03on_metadata_inventory_{move,offer,take}Perttu Ahola
2012-06-03Implement sign using form field protocolPerttu Ahola
2012-06-03Add node on_construct, on_destruct callbacks and update lua_api.txtPerttu Ahola
2012-06-03Strip unneeded variables from NodeMetadatadarkrose
2012-06-03WIP node metadata, node timersKahrl
2012-04-08EnvRef:find_nodes_in_area(minp, maxp, nodenames)Perttu Ahola
2012-04-07PerlinNoise for Lua.Sergey Gilfanov
2012-04-06Add EnvRef:find_node_near(pos, radius, nodenames)Perttu Ahola
2012-04-04Remove debug outputPerttu Ahola
2012-04-04Fix dropped nodeitem visualsPerttu Ahola
2012-04-01Implement dropped items as LuaEntities; leave the old ones as is for ↵Perttu Ahola
compatibility
2012-04-01Remplement and improve /setting in Lua, now called /setPerttu Ahola
2012-04-01Allow getting the path of builtin.lua using minetest.get_modpath("__builtin")Perttu Ahola