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
|
Register a tool called 'visual_harm_1nd' with specified capabilities
|
minetest.register_tool('mymod:visual_harm_1nd', {
description = 'HP bars for mobs/players',
inventory_image = 'visual_harm_1nd.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
|
Register a basic node called 'extreme_randomi' with description 'Randomises crafting, mob and block drops.'
|
minetest.register_node('mymod:extreme_randomi', {
description = 'Randomises crafting, mob and block drops.',
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
|
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 tool called 'stardust' with specified capabilities
|
minetest.register_tool('mymod:stardust', {
description = 'A mineral found at high altitude and items made wi',
inventory_image = 'stardust.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
|
Create a light-emitting node 'regulus_mtgj202' with light level 3
|
minetest.register_node('mymod:regulus_mtgj202', {
description = 'Darkness has come upon the world. Can you find the',
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
|
Register a basic node called 'wc_strata' with description 'Exploring the NodeCore underground has never been '
|
minetest.register_node('mymod:wc_strata', {
description = 'Exploring the NodeCore underground has never been ',
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
|
Register a basic node called 'babelfish_redo' with description 'Translate chat messages into other languages'
|
minetest.register_node('mymod:babelfish_redo', {
description = 'Translate chat messages into other languages',
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
|
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 'dreambuilder_ga' with description 'Dreambuilder is my attempt to give the player pret'
|
minetest.register_node('mymod:dreambuilder_ga', {
description = 'Dreambuilder is my attempt to give the player pret',
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 basic node called 'respawn' with description 'Manage respawn points, interesting places, telepor'
|
minetest.register_node('mymod:respawn', {
description = 'Manage respawn points, interesting places, telepor',
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
|
Register a basic node called 'auctions' with description 'Adds ingame auctions'
|
minetest.register_node('mymod:auctions', {
description = 'Adds ingame auctions',
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
|
Create a light-emitting node 'better_fences' with light level 11
|
minetest.register_node('mymod:better_fences', {
description = 'A Minetest mod which improves the usability of fen',
tiles = {'default_torch.png'},
light_source = 3
})
|
scaffold
|
|
Register a tool called 'darkage' with specified capabilities
|
minetest.register_tool('mymod:darkage', {
description = 'DarkAge adds several new nodes and crafts to creat',
inventory_image = 'darkage.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
|
Register a tool called 'minetest_game' with specified capabilities
|
minetest.register_tool('mymod:minetest_game', {
description = 'The classic "Minetest". A lightweight and well-mai',
inventory_image = 'minetest_game.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
|
Register a basic node called 'mines' with description 'Regenerating terrain'
|
minetest.register_node('mymod:mines', {
description = 'Regenerating terrain',
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
|
Register a basic node called 'bignum' with description 'A library that adds a data type for arbitrary prec'
|
minetest.register_node('mymod:bignum', {
description = 'A library that adds a data type for arbitrary prec',
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
|
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
|
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 tool called 'too_many_aliase' with specified capabilities
|
minetest.register_tool('mymod:too_many_aliase', {
description = 'Adds aliases to every item/node in MineClone to ma',
inventory_image = 'too_many_aliase.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
|
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
|
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 'simple_models' with description 'Very simple models.'
|
minetest.register_node('mymod:simple_models', {
description = 'Very simple models.',
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
|
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 'playertracker' with light level 3
|
minetest.register_node('mymod:playertracker', {
description = 'Mod for any game which logs what users join, and r',
tiles = {'default_torch.png'},
light_source = 3
})
|
scaffold
|
|
Register a tool called 'libox_controlle' with specified capabilities
|
minetest.register_tool('mymod:libox_controlle', {
description = 'A fork of mooncontroller made to use libox, also h',
inventory_image = 'libox_controlle.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
|
Register a tool called 'morecurves' with specified capabilities
|
minetest.register_tool('mymod:morecurves', {
description = 'Adds 10 new curve shapes to game.',
inventory_image = 'morecurves.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
|
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
|
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
|
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 'lightdead' with specified capabilities
|
minetest.register_tool('mymod:lightdead', {
description = 'Spawns a lightning over the dedposition of a playe',
inventory_image = 'lightdead.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
|
Create a light-emitting node 'flying_carpet' with light level 3
|
minetest.register_node('mymod:flying_carpet', {
description = 'Quickly explore the vast terrain with the magical ',
tiles = {'default_torch.png'},
light_source = 3
})
|
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 'mesecar' with light level 7
|
minetest.register_node('mymod:mesecar', {
description = 'Adds 4 styles of microcar: Car55, Nyancart, Meseca',
tiles = {'default_torch.png'},
light_source = 7
})
|
scaffold
|
|
Create a light-emitting node 'toolranks' with light level 7
|
minetest.register_node('mymod:toolranks', {
description = 'Counts the number of nodes a specific tool has dug',
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
|
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 'wc_fungi' with specified capabilities
|
minetest.register_tool('mymod:wc_fungi', {
description = 'Adds various fungi to NodeCore, in all their mycel',
inventory_image = 'wc_fungi.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
|
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 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 'survival' with light level 3
|
minetest.register_node('mymod:survival', {
description = 'Adds several survival related items.',
tiles = {'default_torch.png'},
light_source = 11
})
|
scaffold
|
|
Create a light-emitting node 'overpowered' with light level 3
|
minetest.register_node('mymod:overpowered', {
description = 'Adds super overpowered and expensive endgame tools',
tiles = {'default_torch.png'},
light_source = 3
})
|
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
|
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 'infchest' with light level 7
|
minetest.register_node('mymod:infchest', {
description = 'Adds a configurable chest that gives an infinite a',
tiles = {'default_torch.png'},
light_source = 3
})
|
scaffold
|
|
Create a light-emitting node 'feed_buckets' with light level 11
|
minetest.register_node('mymod:feed_buckets', {
description = 'Craftable bucket of feeds which can be used for fe',
tiles = {'default_torch.png'},
light_source = 11
})
|
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 'alien_tools' with light level 14
|
minetest.register_node('mymod:alien_tools', {
description = 'Alien Tools Mod for Minetest - adds Alien Tool, Sh',
tiles = {'default_torch.png'},
light_source = 7
})
|
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
|
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 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 'real_stamina' with description 'Adds stamina and sprinting (no hunger!)'
|
minetest.register_node('mymod:real_stamina', {
description = 'Adds stamina and sprinting (no hunger!)',
tiles = {'default_stone.png'}
})
|
scaffold
|
|
Create a light-emitting node 'adv_lightsabers' with light level 14
|
minetest.register_node('mymod:adv_lightsabers', {
description = 'Relatively Advanced Lightsabers for Minetest Game.',
tiles = {'default_torch.png'},
light_source = 7
})
|
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
|
Create a light-emitting node 'block_pys' with light level 3
|
minetest.register_node('mymod:block_pys', {
description = ' Add pieces of broken blocks when breaking them.',
tiles = {'default_torch.png'},
light_source = 14
})
|
scaffold
|
|
Create a light-emitting node 'mail' with light level 7
|
minetest.register_node('mymod:mail', {
description = 'Ingame mail-system',
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
|
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 'craftsystem' with description 'craft registration API which automatically deals w'
|
minetest.register_node('mymod:craftsystem', {
description = 'craft registration API which automatically deals w',
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
|
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 tool called 'meshport' with specified capabilities
|
minetest.register_tool('mymod:meshport', {
description = 'Easily export areas in Luanti to meshes for 3D ren',
inventory_image = 'meshport.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
|
Create a light-emitting node 'speed_boots' with light level 14
|
minetest.register_node('mymod:speed_boots', {
description = 'Adds a new pair of boots called the Boots of Swift',
tiles = {'default_torch.png'},
light_source = 3
})
|
scaffold
|
|
Register a tool called 'equippable_acce' with specified capabilities
|
minetest.register_tool('mymod:equippable_acce', {
description = 'adds accessories that you can equip for the looks ',
inventory_image = 'equippable_acce.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
|
Create a light-emitting node 'minetest_hardco' with light level 7
|
minetest.register_node('mymod:minetest_hardco', {
description = 'Adds durable building materials that won't break o',
tiles = {'default_torch.png'},
light_source = 7
})
|
scaffold
|
|
Register a tool called 'phonics_lib' with specified capabilities
|
minetest.register_tool('mymod:phonics_lib', {
description = 'Provides a library for creating Phonics (Learn how',
inventory_image = 'phonics_lib.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
|
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 'livetools' with description 'Craft tools which have a life of their own - they '
|
minetest.register_node('mymod:livetools', {
description = 'Craft tools which have a life of their own - they ',
tiles = {'default_stone.png'}
})
|
scaffold
|
|
Register a tool called 'resizeme' with specified capabilities
|
minetest.register_tool('mymod:resizeme', {
description = 'Become an Ant or a Giant! Exposes API',
inventory_image = 'resizeme.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
})
|
scaffold
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.