lwscratch/commands.lua
2021-10-23 04:32:35 +10:00

737 lines
18 KiB
Lua

local utils = ...
local S = utils.S
minetest.register_craftitem ("lwscratch:cmd_act_dig_back", {
description = S("Dig backward"),
short_description = S("Dig backward"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_dig_back.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_dig_back_down", {
description = S("Dig backward, down"),
short_description = S("Dig backward, down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_dig_back_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_dig_back_up", {
description = S("Dig backward, up"),
short_description = S("Dig backward, up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_dig_back_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_dig_down", {
description = S("Dig down"),
short_description = S("Dig down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_dig_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_dig_front", {
description = S("Dig forward"),
short_description = S("Dig forward"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_dig_front.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_dig_front_down", {
description = S("Dig forward, down"),
short_description = S("Dig forward, down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_dig_front_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_dig_front_up", {
description = S("Dig forward, up"),
short_description = S("Dig forward, up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_dig_front_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_dig_up", {
description = S("Dig up"),
short_description = S("Dig up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_dig_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_move_back", {
description = S("Move backward"),
short_description = S("Move backward"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_move_back.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_move_down", {
description = S("Move down"),
short_description = S("Move down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_move_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_move_front", {
description = S("Move forward"),
short_description = S("Move forward"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_move_front.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_move_up", {
description = S("Move up"),
short_description = S("Move up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_move_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_place_back", {
description = S("Place backward"),
short_description = S("Place backward"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_place_back.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_place_back_down", {
description = S("Place backward, down"),
short_description = S("Place backward, down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_place_back_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_place_back_up", {
description = S("Place backward, up"),
short_description = S("Place backward, up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_place_back_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_place_down", {
description = S("Place down"),
short_description = S("Place down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_place_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_place_front", {
description = S("Place forward"),
short_description = S("Place forward"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_place_front.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_place_front_down", {
description = S("Place forward, down"),
short_description = S("Place forward, down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_place_front_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_place_front_up", {
description = S("Place forward, up"),
short_description = S("Place forward, up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_place_front_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_place_up", {
description = S("Place up"),
short_description = S("Place up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_place_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_pull", {
description = S("Pull item"),
short_description = S("Pull item"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_pull.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_put", {
description = S("Put item"),
short_description = S("Put item"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_put.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_turn_left", {
description = S("Turn left"),
short_description = S("Turn left"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_turn_left.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_turn_right", {
description = S("Turn right"),
short_description = S("Turn right"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_turn_right.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_craft", {
description = S("Craft"),
short_description = S("Craft"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_craft.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_drop", {
description = S("Drop"),
short_description = S("Drop"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_drop.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_trash", {
description = S("Trash"),
short_description = S("Trash"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_trash.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_stop", {
description = S("Stop"),
short_description = S("Stop"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_stop.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_wait", {
description = S("Wait"),
short_description = S("Wait"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_wait.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_chat", {
description = S("Chat"),
short_description = S("Chat"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_chat.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_value_assign", {
description = S("Variable assign"),
short_description = S("Variable assign"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_value_assign.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_value_plus", {
description = S("Variable plus"),
short_description = S("Variable plus"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_value_plus.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_value_minus", {
description = S("Variable minus"),
short_description = S("Variable minus"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_value_minus.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_value_multiply", {
description = S("Variable multiply by"),
short_description = S("Variable multiply by"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_value_multiply.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_act_value_divide", {
description = S("Variable divide by"),
short_description = S("Variable divide by"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_act_value_divide.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_contains", {
description = S("Contains item"),
short_description = S("Contains item"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_contains.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_counter_equal", {
description = S("Counter equal to"),
short_description = S("Counter equal to"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_counter_equal.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_counter_greater", {
description = S("Counter greater than"),
short_description = S("Counter greater than"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_counter_greater.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_counter_less", {
description = S("Counter less than"),
short_description = S("Counter less than"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_counter_less.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_counter_even", {
description = S("Counter is even"),
short_description = S("Counter is even"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_counter_even.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_counter_odd", {
description = S("Counter is odd"),
short_description = S("Counter is odd"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_counter_odd.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_value_equal", {
description = S("Variable equal to"),
short_description = S("Variable equal to"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_value_equal.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_value_greater", {
description = S("Variable greater than"),
short_description = S("Variable greater than"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_value_greater.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_value_less", {
description = S("Variable less than"),
short_description = S("Variable less than"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_value_less.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_value_even", {
description = S("Variable is even"),
short_description = S("Variable is even"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_value_even.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_value_odd", {
description = S("Variable is odd"),
short_description = S("Variable is odd"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_value_odd.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_detect_back", {
description = S("Detect backward"),
short_description = S("Detect backward"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_detect_back.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_detect_back_down", {
description = S("Detect backward, down"),
short_description = S("Detect backward, down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_detect_back_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_detect_back_up", {
description = S("Detect backward, up"),
short_description = S("Detect backward, up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_detect_back_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_detect_down", {
description = S("Detect down"),
short_description = S("Detect down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_detect_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_detect_front", {
description = S("Detect forward"),
short_description = S("Detect forward"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_detect_front.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_detect_front_down", {
description = S("Detect forward, down"),
short_description = S("Detect forward, down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_detect_front_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_detect_front_up", {
description = S("Detect forward, up"),
short_description = S("Detect forward, up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_detect_front_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_detect_up", {
description = S("Detect up"),
short_description = S("Detect up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_detect_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_cond_fits", {
description = S("Item fits"),
short_description = S("Item fits"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_cond_fits.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_value_number", {
description = S("Number"),
short_description = S("Number"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_value_number.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_value_text", {
description = S("Text"),
short_description = S("Text"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_value_text.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_value_value", {
description = S("Variable"),
short_description = S("Variable"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_value_value.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_name_front", {
description = S("Name front"),
short_description = S("Name front"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_name_front.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_name_front_down", {
description = S("Name front down"),
short_description = S("Name front down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_name_front_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_name_front_up", {
description = S("Name front up"),
short_description = S("Name front up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_name_front_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_name_back", {
description = S("Name back"),
short_description = S("Name back"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_name_back.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_name_back_down", {
description = S("Name back down"),
short_description = S("Name back down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_name_back_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_name_back_up", {
description = S("Name back up"),
short_description = S("Name back up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_name_back_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_name_down", {
description = S("Name down"),
short_description = S("Name down"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_name_down.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_name_up", {
description = S("Name up"),
short_description = S("Name up"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_name_up.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_op_and", {
description = S("And"),
short_description = S("And"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_op_and.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_op_not", {
description = S("Not"),
short_description = S("Not"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_op_not.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_op_or", {
description = S("Or"),
short_description = S("Or"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_op_or.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_stat_if", {
description = S("If"),
short_description = S("If"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_stat_if.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_stat_loop", {
description = S("Loop"),
short_description = S("Loop"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_stat_loop.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_line_insert", {
description = S("Insert line"),
short_description = S("Insert line"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_line_insert.png",
stack_max = 1
})
minetest.register_craftitem ("lwscratch:cmd_line_remove", {
description = S("Remove line"),
short_description = S("Remove line"),
groups = { not_in_creative_inventory = 1 },
inventory_image = "lw_line_remove.png",
stack_max = 1
})
--