car.lua 713 B

1234567891011121314151617181920
  1. -- Code from the Vehicle Mash mod (WTFPL license)
  2. -- Translation support
  3. local S = minetest.get_translator("cloud_items")
  4. local name = "car_cloud"
  5. local definition = ...
  6. definition.description = S("Cloud car")
  7. definition.inventory_image = "cloud_items_car_cloud_inventory.png"
  8. definition.wield_image = "cloud_items_car_cloud_inventory.png"
  9. definition.textures = {"cloud_items_car_cloud.png"}
  10. definition.recipe = {
  11. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  12. {"cloud_items:cloudblock", "vehicle_mash:motor", "cloud_items:cloudblock"},
  13. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  14. }
  15. vehicle_mash.register_vehicle("cloud_items:" .. name, definition)