minetest-mm/mods/vehicle_mash/boats/boat.lua

20 lines
581 B
Lua
Raw Permalink Normal View History

2020-10-25 19:05:08 +01:00
local name = "boat"
local definition = ...
local craft_check = minetest.settings:get_bool("vehicle_mash.enable_crafts")
2024-12-19 12:55:40 +01:00
definition.description = vehicle_mash.S("BoatA")
2020-10-25 19:05:08 +01:00
definition.inventory_image = "boat_inventory.png"
definition.wield_image = "boat_wield.png"
definition.mesh = "boats_boat.obj"
definition.drop_on_destroy = {"default:wood 3"}
if craft_check or craft_check == nil then
definition.recipe = {
{"", "", ""},
{"", "", "group:wood"},
{"group:wood", "group:wood", "group:wood"}
}
end
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)