minetest-mm/mods/cloud_items/ship.lua

19 lines
812 B
Lua
Raw Normal View History

2020-11-20 10:42:03 +01:00
-- Code from the Vehicle Mash mod (WTFPL license)
local name = "cloud_ship"
local definition = ...
definition.description = "Cloud ship"
definition.inventory_image = "cloud_items_cloud_ship_inventory.png"
definition.wield_image = "cloud_items_cloud_ship_inventory.png"
definition.mesh = "cloud_items_cloud_ship.obj"
definition.drop_on_destroy = {"cloud_items:cloudblock", "cloud_items:cloud_ingot 2"}
definition.can_go_down = true
definition.can_go_up = true
definition.recipe = {
{"cloud_items:cloud_ingot", "cloud_items:cloudblock", "cloud_items:cloud_ingot"},
{"cloud_items:cloudblock", "cloud_items:cloudblock", "cloud_items:cloudblock"},
{"cloud_items:cloud_ingot", "cloud_items:cloudblock", "cloud_items:cloud_ingot"}
}
vehicle_mash.register_vehicle("cloud_items:" .. name, definition)