aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_item.cpp
Commit message (Expand)AuthorAge
* Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot2018-06-30
* Fix missing ignore textures (#7326)you2018-05-20
* Node definition manager refactor (#7016)Dániel Juhász2018-02-10
* Code modernization: subfolders (#6283)Loïc Blot2017-08-19
* Fix various copy instead of const ref reported by cppcheck (#5615)Loïc Blot2017-04-19
* Fix inability to change metadata using stack:to_table() (#5547)numberZero2017-04-12
* Replace luaL_reg with luaL_Reg as recent LuaJIT dropped the Lua 5.0 compat (#...Loïc Blot2017-04-08
* Add `get_wielded_item`red-0012017-03-13
* Fix incompatibility of ItemStack.to_table() introduced by stack metarubenwardy2017-02-07
* Add ItemStack key-value meta storagerubenwardy2017-02-04
* Add minetest.unregister_item and minetest.register_alias_forcepaly22016-09-08
* Make ItemStack:set_count(0) clear the item stacksfan52016-01-15
* LuaItemStack: Fix and document behavior of set_name, set_count, set_wear, set...kwolekr2014-12-28
* Use "core" namespace internallyShadowNinja2014-05-08
* Remove lua_State parameter from LuaError::LuaErrorShadowNinja2014-03-15
* Handle LuaErrors in Lua -> C++ calls on LuaJITShadowNinja2013-12-18
* Add set_name(), set_count(), set_wear() and set_metadata() to Lua ItemStackPilzAdam2013-09-28
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Change ContentFeatures array to a vectorKahrl2013-07-14
* Add minetest.get_mapgen_object to APIkwolekr2013-06-27
* Add LuaVoxelManipkwolekr2013-06-27
* Fix itemstack:add item not working correctsapier2013-05-25
* Move scriptapi to separate folder (by sapier)sapier2013-05-25
pt">, z=0}, driving_ctrl_access=true, group = "dstand", }, { name=S("Driver Stand (left)"), attach_offset={x=5, y=7, z=-8}, view_offset={x=-5.2, y=-4, z=0}, driving_ctrl_access=true, group = "dstand", }, }, seat_groups = { dstand={ name = "Driver Stand", access_to = {}, driving_ctrl_access = true, }, }, assign_to_seat_group = {"dstand"}, visual_size = {x=1, y=1}, wagon_span=2.6, is_locomotive=true, collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 4"}, horn_sound = "advtrains_industrial_horn", glow = -1, --supposed to disable effect of light to texture color, so that the entity always appears as full-bright }, S("Industrial Train Engine"), "advtrains_engine_industrial_inv.png") --big-- advtrains.register_wagon("engine_industrial_big", { mesh="advtrains_engine_industrial_big.b3d", textures = {"advtrains_engine_industrial_big.png"}, drives_on={default=true}, max_speed=30, seats = { { name=S("Driver Stand (right)"), attach_offset={x=5, y=7, z=20}, view_offset={x=5.2, y=-4, z=11}, driving_ctrl_access=true, group = "dstand", }, { name=S("Driver Stand (left)"), attach_offset={x=5, y=7, z=-8}, view_offset={x=-5.2, y=-4, z=0}, driving_ctrl_access=true, group = "dstand", }, }, seat_groups = { dstand={ name = "Driver Stand", access_to = {}, driving_ctrl_access = true, }, }, assign_to_seat_group = {"dstand"}, visual_size = {x=1, y=1}, wagon_span=4, is_locomotive=true, collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 4"}, horn_sound = "advtrains_industrial_horn", glow = -1, --supposed to disable effect of light to texture color, so that the entity always appears as full-bright }, S("Big Industrial Train Engine"), "advtrains_engine_industrial_inv.png") advtrains.register_wagon("wagon_tank", { mesh="advtrains_wagon_tank.b3d", textures = {"advtrains_wagon_tank.png"}, seats = {}, drives_on={default=true}, max_speed=20, visual_size = {x=1, y=1}, wagon_span=2.2, collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 4"}, has_inventory = true, get_inventory_formspec = function(self) return "size[8,11]".. "list[detached:advtrains_wgn_"..self.id..";box;0,0;8,3;]".. "list[current_player;main;0,5;8,4;]".. "listring[]" end, inventory_list_sizes = { box=8*3, }, glow = -1, --supposed to disable effect of light to texture color, so that the entity always appears as full-bright }, S("Industrial tank wagon"), "advtrains_wagon_tank_inv.png") advtrains.register_wagon("wagon_wood", { mesh="advtrains_wagon_wood.b3d", textures = {"advtrains_wagon_wood.png"}, seats = {}, drives_on={default=true}, max_speed=20, visual_size = {x=1, y=1}, wagon_span=1.8, collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 4"}, has_inventory = true, get_inventory_formspec = function(self) return "size[8,11]".. "list[detached:advtrains_wgn_"..self.id..";box;0,0;8,3;]".. "list[current_player;main;0,5;8,4;]".. "listring[]" end, inventory_list_sizes = { box=8*3, }, glow = -1, --supposed to disable effect of light to texture color, so that the entity always appears as full-bright }, S("Industrial wood wagon"), "advtrains_wagon_wood_inv.png")