instruction stringlengths 46 116 | input stringclasses 7
values | output stringlengths 111 263 | family stringclasses 3
values |
|---|---|---|---|
Create a light-emitting node 'sus_sand' with light level 7 | minetest.register_node('mymod:sus_sand', {
description = 'Red isn’t acting sus… Red is sus.',
tiles = {'default_torch.png'},
light_source = 11
}) | scaffold | |
Register a tool called 'railbuilder' with specified capabilities | minetest.register_tool('mymod:railbuilder', {
description = 'This mod allows you to plan and build tunnels and ',
inventory_image = 'railbuilder.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 |
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 'moth' with light level 14 | minetest.register_node('mymod:moth', {
description = 'Adds moths which can send messages (from Lord of t',
tiles = {'default_torch.png'},
light_source = 7
}) | scaffold | |
Register a basic node called 'autobox' with description 'Auto Collision/Selection Loading Boxes' | minetest.register_node('mymod:autobox', {
description = 'Auto Collision/Selection Loading Boxes',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a basic node called 'bridges' with description 'bridges....and auto bridges' | minetest.register_node('mymod:bridges', {
description = 'bridges....and auto bridges',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a basic node called 'myparkour' with description 'Nodes for making a parkour track' | minetest.register_node('mymod:myparkour', {
description = 'Nodes for making a parkour track',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a basic node called 'pbmarks' with description 'Allows players to create a limited number of perso' | minetest.register_node('mymod:pbmarks', {
description = 'Allows players to create a limited number of perso',
tiles = {'default_stone.png'}
}) | scaffold | |
Using the provided API documentation, write code to register a node | minetest.register_node(name, definition)
Registers a node with the given name and definition table.
Required fields: description, tiles | minetest.register_node('mymod:example', {
description = 'Example Node',
tiles = {'default_dirt.png'}
}) | doc |
Register a tool called 'joke_currency' with specified capabilities | minetest.register_tool('mymod:joke_currency', {
description = 'Adds a joke economy in game with controllable infl',
inventory_image = 'joke_currency.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Using the provided API documentation, write code to register a node | minetest.register_node(name, definition)
Registers a node with the given name and definition table.
Required fields: description, tiles | minetest.register_node('mymod:example', {
description = 'Example Node',
tiles = {'default_dirt.png'}
}) | doc |
Use this API to create a tool with the specified properties | minetest.register_tool(name, definition)
tool_capabilities = {
full_punch_interval = <number>,
max_drop_level = <number>
} | minetest.register_tool('mymod:hammer', {
description = 'Hammer',
inventory_image = 'hammer.png',
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level = 2
}
}) | doc |
Register a tool called 'ethereal_all_fa' with specified capabilities | minetest.register_tool('mymod:ethereal_all_fa', {
description = 'All-faces tree block for Ethereal trees',
inventory_image = 'ethereal_all_fa.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 'nebula_combat' with specified capabilities | minetest.register_tool('mymod:nebula_combat', {
description = 'A combat customizer for competitive servers: custo',
inventory_image = 'nebula_combat.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Create a light-emitting node 'teleporter_plat' with light level 3 | minetest.register_node('mymod:teleporter_plat', {
description = 'VoxeLibre Teleporter was created due to Travelnet ',
tiles = {'default_torch.png'},
light_source = 7
}) | scaffold | |
Create a light-emitting node 'lightning' with light level 11 | minetest.register_node('mymod:lightning', {
description = 'A mod that adds thunder and lightning effects.',
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 |
Register a basic node called 'x_enchanting' with description 'Adds Enchanting Mechanics and API.' | minetest.register_node('mymod:x_enchanting', {
description = 'Adds Enchanting Mechanics and API.',
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 |
Create a light-emitting node 'composter' with light level 14 | minetest.register_node('mymod:composter', {
description = 'Adds a composter to make dirt out of your leaves.',
tiles = {'default_torch.png'},
light_source = 14
}) | scaffold | |
Register a tool called 'morebricks' with specified capabilities | minetest.register_tool('mymod:morebricks', {
description = 'Adds an assortment of new bricks to build with.',
inventory_image = 'morebricks.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 'autofarmer' with light level 11 | minetest.register_node('mymod:autofarmer', {
description = 'Adds LV-MV-HV Auto Planter and a customizable MV H',
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 |
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 'mapfix' with specified capabilities | minetest.register_tool('mymod:mapfix', {
description = 'Fix some map errors (flow and light problems)',
inventory_image = 'mapfix.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Using the provided API documentation, write code to register a node | minetest.register_node(name, definition)
Registers a node with the given name and definition table.
Required fields: description, tiles | minetest.register_node('mymod:example', {
description = 'Example Node',
tiles = {'default_dirt.png'}
}) | doc |
Implement a node that uses the light_source property from the documentation | Node definition fields:
- light_source: integer from 0-14, amount of light emitted
- tiles: array of texture names
- description: human readable name | minetest.register_node('mymod:glowstone', {
description = 'Glowing Stone',
tiles = {'glowstone.png'},
light_source = 9
}) | doc |
Using the provided API documentation, write code to register a node | minetest.register_node(name, definition)
Registers a node with the given name and definition table.
Required fields: description, tiles | minetest.register_node('mymod:example', {
description = 'Example Node',
tiles = {'default_dirt.png'}
}) | doc |
Using the provided API documentation, write code to register a node | minetest.register_node(name, definition)
Registers a node with the given name and definition table.
Required fields: description, tiles | minetest.register_node('mymod:example', {
description = 'Example Node',
tiles = {'default_dirt.png'}
}) | doc |
Fix the missing tiles field in this node registration | minetest.register_node('mymod:broken', {
description = 'Broken Node'
}) | --- a/file.lua
+++ b/file.lua
@@ -1,3 +1,4 @@
minetest.register_node('mymod:broken', {
description = 'Broken Node',
+ tiles = {'default_stone.png'}
}) | repair |
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 'jail_escape' with description 'Escape the Jail! Don't get caught!' | minetest.register_node('mymod:jail_escape', {
description = 'Escape the Jail! Don't get caught!',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a tool called 'anti_join' with specified capabilities | minetest.register_tool('mymod:anti_join', {
description = 'Stops players from joining',
inventory_image = 'anti_join.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Register a basic node called 'mesecraft' with description 'The best game for Minetest. A survival game with n' | minetest.register_node('mymod:mesecraft', {
description = 'The best game for Minetest. A survival game with n',
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 |
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 'advtrains_train' with description 'A tram for Advtrains inspired by the Japanese TLR0' | minetest.register_node('mymod:advtrains_train', {
description = 'A tram for Advtrains inspired by the Japanese TLR0',
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 |
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 'luablock' with description 'Adds blocks that can execute lua code. Admin purpo' | minetest.register_node('mymod:luablock', {
description = 'Adds blocks that can execute lua code. Admin purpo',
tiles = {'default_stone.png'}
}) | scaffold | |
Create a light-emitting node 'teacher' with light level 14 | minetest.register_node('mymod:teacher', {
description = 'Turotial API',
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 |
Register a tool called 'db_manager' with specified capabilities | minetest.register_tool('mymod:db_manager', {
description = 'Database Manager API',
inventory_image = 'db_manager.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Register a tool called 'hud_notify' with specified capabilities | minetest.register_tool('mymod:hud_notify', {
description = 'Shows a message to a player in-game, by means of a',
inventory_image = 'hud_notify.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 |
Add the missing light_source field to make this node emit light | minetest.register_node('mymod:lamp', {
description = 'Lamp',
tiles = {'default_torch.png'}
}) | --- a/file.lua
+++ b/file.lua
@@ -1,4 +1,5 @@
minetest.register_node('mymod:lamp', {
description = 'Lamp',
- tiles = {'default_torch.png'}
+ tiles = {'default_torch.png'},
+ light_source = 11
}) | repair |
Add the missing light_source field to make this node emit light | minetest.register_node('mymod:lamp', {
description = 'Lamp',
tiles = {'default_torch.png'}
}) | --- a/file.lua
+++ b/file.lua
@@ -1,4 +1,5 @@
minetest.register_node('mymod:lamp', {
description = 'Lamp',
- tiles = {'default_torch.png'}
+ tiles = {'default_torch.png'},
+ light_source = 11
}) | repair |
Register a tool called 'chat_history' with specified capabilities | minetest.register_tool('mymod:chat_history', {
description = 'Interactive chat history viewer with a variety of ',
inventory_image = 'chat_history.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 |
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 'redef' with description 'Changes smaller things that are issues for either ' | minetest.register_node('mymod:redef', {
description = 'Changes smaller things that are issues for either ',
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 'bucket' with description 'Bucket - fork of Minetest Game mod with reduced "b' | minetest.register_node('mymod:bucket', {
description = 'Bucket - fork of Minetest Game mod with reduced "b',
tiles = {'default_stone.png'}
}) | 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 |
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 |
Create a light-emitting node 'gear_up' with light level 7 | minetest.register_node('mymod:gear_up', {
description = 'A mod that adds wearable gear and allows re-color ',
tiles = {'default_torch.png'},
light_source = 14
}) | scaffold | |
Register a tool called 'epf' with specified capabilities | minetest.register_tool('mymod:epf', {
description = 'Adds New Bright Blocks',
inventory_image = 'epf.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Register a basic node called 'lucky_block' with description 'Craft and break lucky blocks to give something goo' | minetest.register_node('mymod:lucky_block', {
description = 'Craft and break lucky blocks to give something goo',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a basic node called 'modname_tooltip' with description 'Modname Tooltip Minecraft mod for MineClone2' | minetest.register_node('mymod:modname_tooltip', {
description = 'Modname Tooltip Minecraft mod for MineClone2',
tiles = {'default_stone.png'}
}) | scaffold | |
Create a light-emitting node 'flight' with light level 11 | minetest.register_node('mymod:flight', {
description = 'Adds three different methods of flying, wings, jet',
tiles = {'default_torch.png'},
light_source = 14
}) | scaffold | |
Register a tool called 'xcopper' with specified capabilities | minetest.register_tool('mymod:xcopper', {
description = 'This mod aims to make copper/bronze more realistic',
inventory_image = 'xcopper.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
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 | |
Create a light-emitting node 'backroomtest' with light level 14 | minetest.register_node('mymod:backroomtest', {
description = 'A game about exploring uncanny, vaguely unsettling',
tiles = {'default_torch.png'},
light_source = 11
}) | scaffold | |
Create a light-emitting node 'scriptblocks2' with light level 7 | minetest.register_node('mymod:scriptblocks2', {
description = 'Adds nodes that can be used to build reusable prog',
tiles = {'default_torch.png'},
light_source = 11
}) | scaffold | |
Implement a node that uses the light_source property from the documentation | Node definition fields:
- light_source: integer from 0-14, amount of light emitted
- tiles: array of texture names
- description: human readable name | minetest.register_node('mymod:glowstone', {
description = 'Glowing Stone',
tiles = {'glowstone.png'},
light_source = 9
}) | doc |
Implement a node that uses the light_source property from the documentation | Node definition fields:
- light_source: integer from 0-14, amount of light emitted
- tiles: array of texture names
- description: human readable name | minetest.register_node('mymod:glowstone', {
description = 'Glowing Stone',
tiles = {'glowstone.png'},
light_source = 9
}) | doc |
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 |
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 |
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 'no_melterns_no_' with description 'You can't craft tools without melters now. Progres' | minetest.register_node('mymod:no_melterns_no_', {
description = 'You can't craft tools without melters now. Progres',
tiles = {'default_stone.png'}
}) | scaffold | |
Register a tool called 'mesecons_wirele' with specified capabilities | minetest.register_tool('mymod:mesecons_wirele', {
description = ' Wireless Mesecons and Digilines ',
inventory_image = 'mesecons_wirele.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Register a tool called 'we_undo' with specified capabilities | minetest.register_tool('mymod:we_undo', {
description = 'Undo and Redo executed WorldEdit chat commands',
inventory_image = 'we_undo.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Use this API to create a tool with the specified properties | minetest.register_tool(name, definition)
tool_capabilities = {
full_punch_interval = <number>,
max_drop_level = <number>
} | minetest.register_tool('mymod:hammer', {
description = 'Hammer',
inventory_image = 'hammer.png',
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level = 2
}
}) | doc |
Implement a node that uses the light_source property from the documentation | Node definition fields:
- light_source: integer from 0-14, amount of light emitted
- tiles: array of texture names
- description: human readable name | minetest.register_node('mymod:glowstone', {
description = 'Glowing Stone',
tiles = {'glowstone.png'},
light_source = 9
}) | doc |
Use this API to create a tool with the specified properties | minetest.register_tool(name, definition)
tool_capabilities = {
full_punch_interval = <number>,
max_drop_level = <number>
} | minetest.register_tool('mymod:hammer', {
description = 'Hammer',
inventory_image = 'hammer.png',
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level = 2
}
}) | doc |
Using the provided API documentation, write code to register a node | minetest.register_node(name, definition)
Registers a node with the given name and definition table.
Required fields: description, tiles | minetest.register_node('mymod:example', {
description = 'Example Node',
tiles = {'default_dirt.png'}
}) | doc |
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 'cvl_tools' with description 'Add tools created by YCaTGameRT and farfind for Vo' | minetest.register_node('mymod:cvl_tools', {
description = 'Add tools created by YCaTGameRT and farfind for Vo',
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 |
Create a light-emitting node 'autorestart' with light level 3 | minetest.register_node('mymod:autorestart', {
description = 'Automatically restarts the server after a certain ',
tiles = {'default_torch.png'},
light_source = 14
}) | scaffold | |
Register a basic node called 'obdy' with description 'Adds some pretty OP tools :)' | minetest.register_node('mymod:obdy', {
description = 'Adds some pretty OP tools :)',
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 tool called 'savoia_s21' with specified capabilities | minetest.register_tool('mymod:savoia_s21', {
description = 'Savoia S-21',
inventory_image = 'savoia_s21.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1
}
}) | scaffold | |
Create a light-emitting node 'batch_screwdriv' with light level 7 | minetest.register_node('mymod:batch_screwdriv', {
description = 'With this you can rotate all nodes in a row at onc',
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 'stoneblocks' with description 'Adds a range of stone blocks and lanterns that lit' | minetest.register_node('mymod:stoneblocks', {
description = 'Adds a range of stone blocks and lanterns that lit',
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 |
Register a tool called 'zinc' with specified capabilities | minetest.register_tool('mymod:zinc', {
description = 'Zinc metal, used for making brass',
inventory_image = 'zinc.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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.