Wooden blocks: Refactoring lottplants: add planks API. Closes lord-server/lord#1236
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
--- @class ItemDefinition
|
--- @class ItemDefinition
|
||||||
ItemDefinition = {
|
local ItemDefinition = {
|
||||||
description = "",
|
description = "",
|
||||||
-- Can contain new lines. "\n" has to be used as new line character.
|
-- Can contain new lines. "\n" has to be used as new line character.
|
||||||
-- See also: `get_description` in [`ItemStack`]
|
-- See also: `get_description` in [`ItemStack`]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--- @class NodeDefinition: ItemDefinition
|
--- @class NodeDefinition: ItemDefinition
|
||||||
NodeDefinition = {
|
local NodeDefinition = {
|
||||||
|
|
||||||
drawtype = "normal", -- See "Node drawtypes"
|
drawtype = "normal", -- See "Node drawtypes"
|
||||||
|
|
||||||
|
|||||||
@@ -344,6 +344,8 @@ function minetest.log(level, text) end
|
|||||||
|
|
||||||
-- Environment:
|
-- Environment:
|
||||||
|
|
||||||
|
--- @param name string technical node name ("<mod>:<node>").
|
||||||
|
--- @param node_definition NodeDefinition table with node definition properties.
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4471-L4471)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4471-L4471)
|
||||||
function minetest.register_node(name, node_definition) end
|
function minetest.register_node(name, node_definition) end
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4472-L4472)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4472-L4472)
|
||||||
@@ -2286,12 +2288,12 @@ minetest.env = {}
|
|||||||
--- * Map of registered items, indexed by name
|
--- * Map of registered items, indexed by name
|
||||||
---
|
---
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5838-L5839)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5838-L5839)
|
||||||
--- @type table
|
--- @type table|ItemDefinition[]
|
||||||
minetest.registered_items = {}
|
minetest.registered_items = {}
|
||||||
--- * Map of registered node definitions, indexed by name
|
--- * Map of registered node definitions, indexed by name
|
||||||
---
|
---
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5840-L5841)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5840-L5841)
|
||||||
--- @type table
|
--- @type table<string,NodeDefinition>|NodeDefinition[]
|
||||||
minetest.registered_nodes = {}
|
minetest.registered_nodes = {}
|
||||||
--- * Map of registered craft item definitions, indexed by name
|
--- * Map of registered craft item definitions, indexed by name
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user