instruction
stringlengths
46
116
input
stringclasses
7 values
output
stringlengths
111
263
family
stringclasses
3 values
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
Register a tool called 'hades_biofuel' with specified capabilities
minetest.register_tool('mymod:hades_biofuel', { description = 'Produce biofuel from unused plants. ', inventory_image = 'hades_biofuel.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
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 'livingfloatland' with description 'Adds various prehistoric animals to your Floatland'
minetest.register_node('mymod:livingfloatland', { description = 'Adds various prehistoric animals to your Floatland', tiles = {'default_stone.png'} })
scaffold
Register a tool called 'superflat' with specified capabilities
minetest.register_tool('mymod:superflat', { description = '(Yet Another) Superflat Map Generator: Customize w', inventory_image = 'superflat.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Register a basic node called 'bloopy1_ctf_pac' with description 'A texture pack made by bloopy1 for ctf'
minetest.register_node('mymod:bloopy1_ctf_pac', { description = 'A texture pack made by bloopy1 for ctf', 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
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 'lwscratch' with specified capabilities
minetest.register_tool('mymod:lwscratch', { description = 'Scratch programmable robots.', inventory_image = 'lwscratch.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Register a tool called 'wintercore_vibr' with specified capabilities
minetest.register_tool('mymod:wintercore_vibr', { description = 'Custom Nodecore textures by Wintersknight', inventory_image = 'wintercore_vibr.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
Create a light-emitting node 'mtzip' with light level 14
minetest.register_node('mymod:mtzip', { description = ' zip-library', tiles = {'default_torch.png'}, light_source = 11 })
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
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 'technic_use_bat' with description 'Use energy from RE batteries in the inventory'
minetest.register_node('mymod:technic_use_bat', { description = 'Use energy from RE batteries in the inventory', 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
Create a light-emitting node 'void_chest' with light level 7
minetest.register_node('mymod:void_chest', { description = 'Access your belongings anywhere by using the power', tiles = {'default_torch.png'}, light_source = 14 })
scaffold
Register a tool called 'trophies' with specified capabilities
minetest.register_tool('mymod:trophies', { description = 'Showcase player achievements with a personalized g', inventory_image = 'trophies.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
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
Create a light-emitting node 'logging' with light level 3
minetest.register_node('mymod:logging', { description = 'Create logging functions for mods easily', tiles = {'default_torch.png'}, light_source = 11 })
scaffold
Create a light-emitting node 'stamina' with light level 11
minetest.register_node('mymod:stamina', { description = 'Adds stamina, hunger and sprinting (this fork adds', 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
Register a tool called 'tntrun' with specified capabilities
minetest.register_tool('mymod:tntrun', { description = 'Players compete to be the last one standing on a l', inventory_image = 'tntrun.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
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 'inv_inspector' with specified capabilities
minetest.register_tool('mymod:inv_inspector', { description = 'Allows you to view the inventory of the players', inventory_image = 'inv_inspector.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
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
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 tool called 'overpowered' with specified capabilities
minetest.register_tool('mymod:overpowered', { description = 'Adds super overpowered and expensive endgame tools', inventory_image = 'overpowered.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Register a basic node called 'nc_vanillapack' with description 'NodeCore's Default Textures, as a Texture Pack'
minetest.register_node('mymod:nc_vanillapack', { description = 'NodeCore's Default Textures, as a Texture Pack', 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
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 'extended_protec' with specified capabilities
minetest.register_tool('mymod:extended_protec', { description = 'Extended interaction restriction rule', inventory_image = 'extended_protec.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
Create a light-emitting node 'repainter' with light level 14
minetest.register_node('mymod:repainter', { description = 'Add tools for editing node param2 for different co', tiles = {'default_torch.png'}, light_source = 11 })
scaffold
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
Create a light-emitting node 'nc_sky_ultra_ha' with light level 11
minetest.register_node('mymod:nc_sky_ultra_ha', { description = 'The ultimate skyblock challenge', tiles = {'default_torch.png'}, light_source = 11 })
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
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
Create a light-emitting node 'skinsdb' with light level 3
minetest.register_node('mymod:skinsdb', { description = 'Custom player skins manager with support for 1.0 a', tiles = {'default_torch.png'}, light_source = 3 })
scaffold
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
Register a basic node called 'blockcolor' with description 'BlockColor is a creative sandbox with only 8 color'
minetest.register_node('mymod:blockcolor', { description = 'BlockColor is a creative sandbox with only 8 color', tiles = {'default_stone.png'} })
scaffold
Register a tool called 'reject' with specified capabilities
minetest.register_tool('mymod:reject', { description = 'Simply reject all login attempts and show them a m', inventory_image = 'reject.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Create a light-emitting node 'unified_stamina' with light level 3
minetest.register_node('mymod:unified_stamina', { description = 'Provides a universal API for handling different mo', 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
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 'useful_contrapt' with specified capabilities
minetest.register_tool('mymod:useful_contrapt', { description = 'Some useful contraptions / machines.', inventory_image = 'useful_contrapt.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
Create a light-emitting node 'shooter' with light level 11
minetest.register_node('mymod:shooter', { description = 'First person shooter mod.', tiles = {'default_torch.png'}, light_source = 3 })
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
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
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
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 'hl_marker' with description 'Teleportation Marker is a unique item that allows '
minetest.register_node('mymod:hl_marker', { description = 'Teleportation Marker is a unique item that allows ', 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
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
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
Register a tool called 'polygraph' with specified capabilities
minetest.register_tool('mymod:polygraph', { description = 'A formspec-based charting API providing a rich set', inventory_image = 'polygraph.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
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
Create a light-emitting node 'precise_jump' with light level 3
minetest.register_node('mymod:precise_jump', { description = 'Time your jumps to go higher or lower!', tiles = {'default_torch.png'}, light_source = 7 })
scaffold
Register a tool called 'tower_defense' with specified capabilities
minetest.register_tool('mymod:tower_defense', { description = 'The Tanks are coming. Are you ready?', inventory_image = 'tower_defense.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
Register a basic node called 'prop_hunt_modpa' with description 'Transform into nodes and with a minigame.'
minetest.register_node('mymod:prop_hunt_modpa', { description = 'Transform into nodes and with a minigame.', 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
Register a tool called 'itemquantifierm' with specified capabilities
minetest.register_tool('mymod:itemquantifierm', { description = 'a mod for mineclone 2 which adds a comparator whic', inventory_image = 'itemquantifierm.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
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
Register a basic node called 'regrowing_fruit' with description 'Fruits on trees from various mods will regrow.'
minetest.register_node('mymod:regrowing_fruit', { description = 'Fruits on trees from various mods will regrow.', tiles = {'default_stone.png'} })
scaffold
Register a tool called 'inv_cycle' with specified capabilities
minetest.register_tool('mymod:inv_cycle', { description = 'With sneak+use, cycle rows in your inventory!', inventory_image = 'inv_cycle.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
Register a basic node called 'tunnelmaker' with description 'Easily create arbitrarily curved tunnels, paths, a'
minetest.register_node('mymod:tunnelmaker', { description = 'Easily create arbitrarily curved tunnels, paths, a', tiles = {'default_stone.png'} })
scaffold
Register a tool called 'regenerative_or' with specified capabilities
minetest.register_tool('mymod:regenerative_or', { description = 'Adds regenerative ores to the game, allowing playe', inventory_image = 'regenerative_or.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
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
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 basic node called 'more_triggers' with description 'Adds more triggers for Awards'
minetest.register_node('mymod:more_triggers', { description = 'Adds more triggers for Awards', tiles = {'default_stone.png'} })
scaffold
Register a tool called 'rocks' with specified capabilities
minetest.register_tool('mymod:rocks', { description = 'Adds fun rocks to bring new life to your survival ', inventory_image = 'rocks.png', tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 1 } })
scaffold
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
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
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
Create a light-emitting node 'copier' with light level 7
minetest.register_node('mymod:copier', { description = 'A tool to copy and paste nodes from a file or from', tiles = {'default_torch.png'}, light_source = 3 })
scaffold
Create a light-emitting node 'wc_strata' with light level 7
minetest.register_node('mymod:wc_strata', { description = 'Exploring the NodeCore underground has never been ', 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