2020-10-26 17:38:53 +01:00
|
|
|
-- Code from the Vehicle Mash mod (WTFPL license)
|
2021-03-25 16:46:51 +01:00
|
|
|
|
|
|
|
-- Translation support
|
|
|
|
local S = minetest.get_translator("cloud_items")
|
|
|
|
|
2020-10-26 17:38:53 +01:00
|
|
|
local name = "car_cloud"
|
|
|
|
local definition = ...
|
|
|
|
|
2021-03-25 16:46:51 +01:00
|
|
|
definition.description = S("Cloud car")
|
2020-10-26 17:38:53 +01:00
|
|
|
definition.inventory_image = "cloud_items_car_cloud_inventory.png"
|
|
|
|
definition.wield_image = "cloud_items_car_cloud_inventory.png"
|
|
|
|
definition.textures = {"cloud_items_car_cloud.png"}
|
|
|
|
definition.recipe = {
|
|
|
|
{"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
|
|
|
|
{"cloud_items:cloudblock", "vehicle_mash:motor", "cloud_items:cloudblock"},
|
|
|
|
{"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
|
|
|
|
}
|
|
|
|
|
|
|
|
vehicle_mash.register_vehicle("cloud_items:" .. name, definition)
|