instruction
stringlengths
46
116
input
stringclasses
7 values
output
stringlengths
111
263
family
stringclasses
3 values
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Fix the missing tiles field in this node registration
minetest.register_node('mymod:broken', { description = 'Broken Node' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,4 @@ minetest.register_node('mymod:broken', { description = 'Broken Node', + tiles = {'default_stone.png'} })
repair
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Create a light-emitting node 'denseores' with light level 7
minetest.register_node('mymod:denseores', { description = 'Adds rare ores with twice the drops of their norma', tiles = {'default_torch.png'}, light_source = 11 })
scaffold
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Add the missing light_source field to make this node emit light
minetest.register_node('mymod:lamp', { description = 'Lamp', tiles = {'default_torch.png'} })
--- a/file.lua +++ b/file.lua @@ -1,4 +1,5 @@ minetest.register_node('mymod:lamp', { description = 'Lamp', - tiles = {'default_torch.png'} + tiles = {'default_torch.png'}, + light_source = 11 })
repair
Register a tool called 'computing' with specified capabilities
minetest.register_tool('mymod:computing', { description = 'Add multiple computing devices such as: Smartphone', inventory_image = 'computing.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Add the missing light_source field to make this node emit light
minetest.register_node('mymod:lamp', { description = 'Lamp', tiles = {'default_torch.png'} })
--- a/file.lua +++ b/file.lua @@ -1,4 +1,5 @@ minetest.register_node('mymod:lamp', { description = 'Lamp', - tiles = {'default_torch.png'} + tiles = {'default_torch.png'}, + light_source = 11 })
repair
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Fix the syntax error in this tool registration
minetest.register_tool('mymod:pick' { description = 'Pickaxe' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,3 @@ -minetest.register_tool('mymod:pick' { +minetest.register_tool('mymod:pick', { description = 'Pickaxe' })
repair
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Fix the syntax error in this tool registration
minetest.register_tool('mymod:pick' { description = 'Pickaxe' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,3 @@ -minetest.register_tool('mymod:pick' { +minetest.register_tool('mymod:pick', { description = 'Pickaxe' })
repair
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Register a basic node called 'fraktur' with description 'Adds a whole set of Fraktur type metals in the for'
minetest.register_node('mymod:fraktur', { description = 'Adds a whole set of Fraktur type metals in the for', tiles = {'default_stone.png'} })
scaffold
Register a tool called 'joke_currency' with specified capabilities
minetest.register_tool('mymod:joke_currency', { description = 'Adds a joke economy in game with controllable infl', inventory_image = 'joke_currency.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Register a basic node called 'additional_grav' with description 'Adds overgrown gravel, similar to mossy cobbleston'
minetest.register_node('mymod:additional_grav', { description = 'Adds overgrown gravel, similar to mossy cobbleston', tiles = {'default_stone.png'} })
scaffold
Add the missing light_source field to make this node emit light
minetest.register_node('mymod:lamp', { description = 'Lamp', tiles = {'default_torch.png'} })
--- a/file.lua +++ b/file.lua @@ -1,4 +1,5 @@ minetest.register_node('mymod:lamp', { description = 'Lamp', - tiles = {'default_torch.png'} + tiles = {'default_torch.png'}, + light_source = 11 })
repair
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Register a tool called 'agon' with specified capabilities
minetest.register_tool('mymod:agon', { description = 'Fight against some monsters!', inventory_image = 'agon.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Register a tool called 'advtrains_info_' with specified capabilities
minetest.register_tool('mymod:advtrains_info_', { description = 'A library that uses font_api to render text outsid', inventory_image = 'advtrains_info_.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Fix the missing tiles field in this node registration
minetest.register_node('mymod:broken', { description = 'Broken Node' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,4 @@ minetest.register_node('mymod:broken', { description = 'Broken Node', + tiles = {'default_stone.png'} })
repair
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Create a light-emitting node 'temp_password' with light level 14
minetest.register_node('mymod:temp_password', { description = 'Assign temporary passwords to accounts', tiles = {'default_torch.png'}, light_source = 14 })
scaffold
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Create a light-emitting node 'mt2d' with light level 11
minetest.register_node('mymod:mt2d', { description = 'Transforms the minetest world into 2d dimension', tiles = {'default_torch.png'}, light_source = 11 })
scaffold
Register a tool called 'batch_screwdriv' with specified capabilities
minetest.register_tool('mymod:batch_screwdriv', { description = 'With this you can rotate all nodes in a row at onc', inventory_image = 'batch_screwdriv.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Create a light-emitting node 'the_confluence' with light level 11
minetest.register_node('mymod:the_confluence', { description = 'A luamap example - a small (500x100x500) Island in', tiles = {'default_torch.png'}, light_source = 14 })
scaffold
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Register a basic node called 'biomeinfo' with description 'Simple API to get data about biomes.'
minetest.register_node('mymod:biomeinfo', { description = 'Simple API to get data about biomes.', tiles = {'default_stone.png'} })
scaffold
Register a basic node called 'mynumbers' with description 'Numbers and math signs'
minetest.register_node('mymod:mynumbers', { description = 'Numbers and math signs', tiles = {'default_stone.png'} })
scaffold
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Register a basic node called 'msg_color' with description 'Add colored chat messages to your server.'
minetest.register_node('mymod:msg_color', { description = 'Add colored chat messages to your server.', tiles = {'default_stone.png'} })
scaffold
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Fix the syntax error in this tool registration
minetest.register_tool('mymod:pick' { description = 'Pickaxe' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,3 @@ -minetest.register_tool('mymod:pick' { +minetest.register_tool('mymod:pick', { description = 'Pickaxe' })
repair
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Add the missing light_source field to make this node emit light
minetest.register_node('mymod:lamp', { description = 'Lamp', tiles = {'default_torch.png'} })
--- a/file.lua +++ b/file.lua @@ -1,4 +1,5 @@ minetest.register_node('mymod:lamp', { description = 'Lamp', - tiles = {'default_torch.png'} + tiles = {'default_torch.png'}, + light_source = 11 })
repair
Register a basic node called 'naturalbiomes' with description 'Adds 9 new biomes'
minetest.register_node('mymod:naturalbiomes', { description = 'Adds 9 new biomes', tiles = {'default_stone.png'} })
scaffold
Create a light-emitting node 'giad' with light level 3
minetest.register_node('mymod:giad', { description = 'WIP Library for creating walking vehicles', tiles = {'default_torch.png'}, light_source = 11 })
scaffold
Register a basic node called 'sedimentology' with description 'A mod that adds realistic erosion and degradation '
minetest.register_node('mymod:sedimentology', { description = 'A mod that adds realistic erosion and degradation ', tiles = {'default_stone.png'} })
scaffold
Register a basic node called 'colored_steel' with description 'Adds colored steel blocks.'
minetest.register_node('mymod:colored_steel', { description = 'Adds colored steel blocks.', tiles = {'default_stone.png'} })
scaffold
Fix the missing tiles field in this node registration
minetest.register_node('mymod:broken', { description = 'Broken Node' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,4 @@ minetest.register_node('mymod:broken', { description = 'Broken Node', + tiles = {'default_stone.png'} })
repair
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Register a basic node called 'lib_mount' with description 'API Framework for mounting objects.'
minetest.register_node('mymod:lib_mount', { description = 'API Framework for mounting objects.', tiles = {'default_stone.png'} })
scaffold
Create a light-emitting node 'table_goodies' with light level 14
minetest.register_node('mymod:table_goodies', { description = 'A small package for extra (can't live without) fun', tiles = {'default_torch.png'}, light_source = 7 })
scaffold
Register a basic node called 'talkers' with description 'Adds an API to add talking NPCs with AI.'
minetest.register_node('mymod:talkers', { description = 'Adds an API to add talking NPCs with AI.', tiles = {'default_stone.png'} })
scaffold
Create a light-emitting node 'hl_marker' with light level 14
minetest.register_node('mymod:hl_marker', { description = 'Teleportation Marker is a unique item that allows ', tiles = {'default_torch.png'}, light_source = 7 })
scaffold
Register a basic node called 'vl_skyblock' with description 'Skyblock for VoxeLibre'
minetest.register_node('mymod:vl_skyblock', { description = 'Skyblock for VoxeLibre', tiles = {'default_stone.png'} })
scaffold
Register a basic node called 'smoke_signals' with description 'Signal your friends, or warn your enemies!'
minetest.register_node('mymod:smoke_signals', { description = 'Signal your friends, or warn your enemies!', tiles = {'default_stone.png'} })
scaffold
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Register a tool called 'stripped_tree' with specified capabilities
minetest.register_tool('mymod:stripped_tree', { description = 'Adds Stripped tree trunks.', inventory_image = 'stripped_tree.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Register a tool called 'marinaramobs' with specified capabilities
minetest.register_tool('mymod:marinaramobs', { description = 'adds mobs to the marinara oceans', inventory_image = 'marinaramobs.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Register a tool called 'tsalagi_letters' with specified capabilities
minetest.register_tool('mymod:tsalagi_letters', { description = 'Tsalagi Letters', inventory_image = 'tsalagi_letters.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Fix the missing tiles field in this node registration
minetest.register_node('mymod:broken', { description = 'Broken Node' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,4 @@ minetest.register_node('mymod:broken', { description = 'Broken Node', + tiles = {'default_stone.png'} })
repair
Register a basic node called 'hades_endgame' with description 'Adds various goodies to Hades Revisited, focused o'
minetest.register_node('mymod:hades_endgame', { description = 'Adds various goodies to Hades Revisited, focused o', tiles = {'default_stone.png'} })
scaffold
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Add the missing light_source field to make this node emit light
minetest.register_node('mymod:lamp', { description = 'Lamp', tiles = {'default_torch.png'} })
--- a/file.lua +++ b/file.lua @@ -1,4 +1,5 @@ minetest.register_node('mymod:lamp', { description = 'Lamp', - tiles = {'default_torch.png'} + tiles = {'default_torch.png'}, + light_source = 11 })
repair
Add the missing light_source field to make this node emit light
minetest.register_node('mymod:lamp', { description = 'Lamp', tiles = {'default_torch.png'} })
--- a/file.lua +++ b/file.lua @@ -1,4 +1,5 @@ minetest.register_node('mymod:lamp', { description = 'Lamp', - tiles = {'default_torch.png'} + tiles = {'default_torch.png'}, + light_source = 11 })
repair
Fix the missing tiles field in this node registration
minetest.register_node('mymod:broken', { description = 'Broken Node' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,4 @@ minetest.register_node('mymod:broken', { description = 'Broken Node', + tiles = {'default_stone.png'} })
repair
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Fix the missing tiles field in this node registration
minetest.register_node('mymod:broken', { description = 'Broken Node' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,4 @@ minetest.register_node('mymod:broken', { description = 'Broken Node', + tiles = {'default_stone.png'} })
repair
Register a basic node called 'poi' with description 'Mod to create or visit Points of Interest'
minetest.register_node('mymod:poi', { description = 'Mod to create or visit Points of Interest', tiles = {'default_stone.png'} })
scaffold
Create a light-emitting node 'spectator_mode' with light level 11
minetest.register_node('mymod:spectator_mode', { description = 'A mod for Minetest allowing you to watch other pla', tiles = {'default_torch.png'}, light_source = 14 })
scaffold
Register a basic node called 'w_api' with description 'Adds an API to easily register custom weapons'
minetest.register_node('mymod:w_api', { description = 'Adds an API to easily register custom weapons', tiles = {'default_stone.png'} })
scaffold
Fix the missing tiles field in this node registration
minetest.register_node('mymod:broken', { description = 'Broken Node' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,4 @@ minetest.register_node('mymod:broken', { description = 'Broken Node', + tiles = {'default_stone.png'} })
repair
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Register a basic node called 'travelnet' with description 'Network of teleporter-boxes that allows easy trave'
minetest.register_node('mymod:travelnet', { description = 'Network of teleporter-boxes that allows easy trave', tiles = {'default_stone.png'} })
scaffold
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Using the provided API documentation, write code to register a node
minetest.register_node(name, definition) Registers a node with the given name and definition table. Required fields: description, tiles
minetest.register_node('mymod:example', { description = 'Example Node', tiles = {'default_dirt.png'} })
doc
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc
Register a basic node called 'boomstick' with description 'a tool for testing the behavior of tnt'
minetest.register_node('mymod:boomstick', { description = 'a tool for testing the behavior of tnt', tiles = {'default_stone.png'} })
scaffold
Fix the missing tiles field in this node registration
minetest.register_node('mymod:broken', { description = 'Broken Node' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,4 @@ minetest.register_node('mymod:broken', { description = 'Broken Node', + tiles = {'default_stone.png'} })
repair
Create a light-emitting node 'go' with light level 14
minetest.register_node('mymod:go', { description = 'A game of Go', tiles = {'default_torch.png'}, light_source = 7 })
scaffold
Register a basic node called 'otherkin_flags' with description 'Adds a selection of Otherkin + Furry specific flag'
minetest.register_node('mymod:otherkin_flags', { description = 'Adds a selection of Otherkin + Furry specific flag', tiles = {'default_stone.png'} })
scaffold
Create a light-emitting node 'pathogen' with light level 11
minetest.register_node('mymod:pathogen', { description = 'Anables users to get a pathogen.', tiles = {'default_torch.png'}, light_source = 11 })
scaffold
Register a basic node called 'cronjob' with description 'A more flexible alternative to the builtin minetes'
minetest.register_node('mymod:cronjob', { description = 'A more flexible alternative to the builtin minetes', tiles = {'default_stone.png'} })
scaffold
Implement a node that uses the light_source property from the documentation
Node definition fields: - light_source: integer from 0-14, amount of light emitted - tiles: array of texture names - description: human readable name
minetest.register_node('mymod:glowstone', { description = 'Glowing Stone', tiles = {'glowstone.png'}, light_source = 9 })
doc
Create a light-emitting node 'limit_physics_m' with light level 7
minetest.register_node('mymod:limit_physics_m', { description = 'overrides monoids controlling player physics provi', tiles = {'default_torch.png'}, light_source = 14 })
scaffold
Add the missing light_source field to make this node emit light
minetest.register_node('mymod:lamp', { description = 'Lamp', tiles = {'default_torch.png'} })
--- a/file.lua +++ b/file.lua @@ -1,4 +1,5 @@ minetest.register_node('mymod:lamp', { description = 'Lamp', - tiles = {'default_torch.png'} + tiles = {'default_torch.png'}, + light_source = 11 })
repair
Fix the syntax error in this tool registration
minetest.register_tool('mymod:pick' { description = 'Pickaxe' })
--- a/file.lua +++ b/file.lua @@ -1,3 +1,3 @@ -minetest.register_tool('mymod:pick' { +minetest.register_tool('mymod:pick', { description = 'Pickaxe' })
repair
Use this API to create a tool with the specified properties
minetest.register_tool(name, definition) tool_capabilities = { full_punch_interval = <number>, max_drop_level = <number> }
minetest.register_tool('mymod:hammer', { description = 'Hammer', inventory_image = 'hammer.png', tool_capabilities = { full_punch_interval = 1.2, max_drop_level = 2 } })
doc