instruction stringlengths 46 116 | input stringclasses 7 values | output stringlengths 111 263 | family stringclasses 3 values |
|---|---|---|---|
Create a light-emitting node 'tph_spyglass' with light level 7 | minetest.register_node('mymod:tph_spyglass', {
description = 'Provides a Spyglass for zooming in and out (if RMB',
tiles = {'default_torch.png'},
light_source = 14
}) | scaffold | |
Register a tool called 'cement' with specified capabilities | minetest.register_tool('mymod:cement', {
description = 'A craftable and “makeable“ cement blocks for Minet',
inventory_image = 'cement.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 |
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 |
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 'minegistic' with description 'Build a great rail and logistics empire' | minetest.register_node('mymod:minegistic', {
description = 'Build a great rail and logistics empire',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a tool called 'dropthecaps' with specified capabilities | minetest.register_tool('mymod:dropthecaps', {
description = 'Kicks players that spew all-caps messages',
inventory_image = 'dropthecaps.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 |
Register a basic node called 'lootchest_modpa' with description 'Modpack adding a lot of various loot containers ac' | minetest.register_node('mymod:lootchest_modpa', {
description = 'Modpack adding a lot of various loot containers ac',
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 |
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 |
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 'doors' with light level 3 | minetest.register_node('mymod:doors', {
description = 'Doors mod with lock tool to open, lock or protect ',
tiles = {'default_torch.png'},
light_source = 7
}) | 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 |
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 'troll' with specified capabilities | minetest.register_tool('mymod:troll', {
description = 'This adds a lot of commands to troll! Its ver WIP',
inventory_image = 'troll.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 |
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 'rp_analysis_gui' with light level 3 | minetest.register_node('mymod:rp_analysis_gui', {
description = 'Formspec GUI for rPlace Analysis',
tiles = {'default_torch.png'},
light_source = 7
}) | 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 'rock_piles' with light level 14 | minetest.register_node('mymod:rock_piles', {
description = 'Adds rock piles which generate randomly on the sur',
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 |
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 |
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 'scifi_nodes' with specified capabilities | minetest.register_tool('mymod:scifi_nodes', {
description = 'Adds some nodes for building futuristic/sci-fi the',
inventory_image = 'scifi_nodes.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 |
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 'face_objects' with specified capabilities | minetest.register_tool('mymod:face_objects', {
description = 'Calculate the facing of objects',
inventory_image = 'face_objects.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 'irc_commands' with description 'Control your server from IRC' | minetest.register_node('mymod:irc_commands', {
description = 'Control your server from IRC',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a basic node called 'postool' with description 'Adds a HUD to show current ingame time and positio' | minetest.register_node('mymod:postool', {
description = 'Adds a HUD to show current ingame time and positio',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a tool called 'atl_shears' with specified capabilities | minetest.register_tool('mymod:atl_shears', {
description = 'This mod adds a pair of shears to easily cut folia',
inventory_image = 'atl_shears.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Create a light-emitting node 'magic_compass' with light level 14 | minetest.register_node('mymod:magic_compass', {
description = 'Teleport system, all inside a compass',
tiles = {'default_torch.png'},
light_source = 3
}) | scaffold | |
Register a tool called 'chat_tools' with specified capabilities | minetest.register_tool('mymod:chat_tools', {
description = 'chat commands that people might need',
inventory_image = 'chat_tools.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Create a light-emitting node 'wc_crystals' with light level 11 | minetest.register_node('mymod:wc_crystals', {
description = 'Adds various crystal types to Nodecore',
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 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 'britsignals' with description 'Adds british-inspired signs and signals' | minetest.register_node('mymod:britsignals', {
description = 'Adds british-inspired signs and signals',
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 |
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 |
Register a basic node called 'mymeshnodes' with description 'A machine that makes different shape node' | minetest.register_node('mymod:mymeshnodes', {
description = 'A machine that makes different shape node',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a basic node called 'random_teleport' with description 'Allows players to teleport to a random location us' | minetest.register_node('mymod:random_teleport', {
description = 'Allows players to teleport to a random location us',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a basic node called 'place_node' with description 'Add `setblock` and `place` command' | minetest.register_node('mymod:place_node', {
description = 'Add `setblock` and `place` command',
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 |
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 'x_spawners_mobs' with light level 11 | minetest.register_node('mymod:x_spawners_mobs', {
description = 'Adds mob spawners.',
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 |
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 'stopwatch' with light level 3 | minetest.register_node('mymod:stopwatch', {
description = 'Stopwatch is Lua-based benchmarking API for Minete',
tiles = {'default_torch.png'},
light_source = 14
}) | 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 tool called 'blueprints' with specified capabilities | minetest.register_tool('mymod:blueprints', {
description = 'Allows Minetest players to easily copy+paste nodes',
inventory_image = 'blueprints.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Register a basic node called 'belfry' with description 'Adds a set of church bells that are chimed automat' | minetest.register_node('mymod:belfry', {
description = 'Adds a set of church bells that are chimed automat',
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 |
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 'xcam' with light level 3 | minetest.register_node('mymod:xcam', {
description = 'Adds a command to take in-game photos.',
tiles = {'default_torch.png'},
light_source = 7
}) | scaffold | |
Register a basic node called 'challenge' with description 'challenges to create route challenges or to train ' | minetest.register_node('mymod:challenge', {
description = 'challenges to create route challenges or to train ',
tiles = {'default_stone.png'}
}) | 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 | |
Create a light-emitting node 'moretorches' with light level 3 | minetest.register_node('mymod:moretorches', {
description = 'Adds new types of torches and lamps',
tiles = {'default_torch.png'},
light_source = 7
}) | 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 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 'drawstruct' with light level 7 | minetest.register_node('mymod:drawstruct', {
description = 'Draw or generate random structures',
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 |
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 |
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 |
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 tool called 'lighting_rocket' with specified capabilities | minetest.register_tool('mymod:lighting_rocket', {
description = 'For temporary lighting large areas',
inventory_image = 'lighting_rocket.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 'dlxtrains' with specified capabilities | minetest.register_tool('mymod:dlxtrains', {
description = 'Additional railway related content for use with Ad',
inventory_image = 'dlxtrains.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 |
Create a light-emitting node 'underbed_toilet' with light level 3 | minetest.register_node('mymod:underbed_toilet', {
description = 'Voxelmanip mapgen with strange layered zone experi',
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 |
Register a basic node called 'inv_inspector' with description 'Allows you to view the inventory of the players' | minetest.register_node('mymod:inv_inspector', {
description = 'Allows you to view the inventory of the players',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a tool called 'labyrinth' with specified capabilities | minetest.register_tool('mymod:labyrinth', {
description = 'An aMAZEing Game',
inventory_image = 'labyrinth.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 |
Register a tool called 'tungsten_carbid' with specified capabilities | minetest.register_tool('mymod:tungsten_carbid', {
description = 'Adds tools made from tungsten carbide that are mor',
inventory_image = 'tungsten_carbid.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Register a tool called 'anti_exploit' with specified capabilities | minetest.register_tool('mymod:anti_exploit', {
description = 'Protects against exploits',
inventory_image = 'anti_exploit.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 'tfl_s7_stock_ge' with description 'This mod provides generic liveries for use with th' | minetest.register_node('mymod:tfl_s7_stock_ge', {
description = 'This mod provides generic liveries for use with th',
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.