This commit is contained in:
root 2020-11-20 10:42:03 +01:00
parent e0a684c1c2
commit 93558985af
14 changed files with 1038 additions and 235 deletions

View file

@ -3,7 +3,7 @@ allow_defined_top = true
max_line_length = 999
globals = {
"default", "minetest",
"default", "minetest", "core",
}
read_globals = {
@ -13,5 +13,5 @@ read_globals = {
"armor", "PseudoRandom", "toolranks",
"stairs", "worldedit", "stairsplus",
"multitools", "vehicle_mash",
"multitools", "vehicle_mash", "lib_mount",
}

View file

@ -6,6 +6,8 @@ Copyright (C) Various other Minetest developers/contributors
[David Leal](https://github.com/Panquesito7) ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)):
- `screenshot.png`
- `cloud_items_cloud_ship.obj`
- `cloud_items_cloud_ship_inventory.png`
[BlockMen](https://github.com/BlockMen) ([CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)):

View file

@ -45,6 +45,14 @@ Medium schematic
Big schematic
![Big schematic](https://user-images.githubusercontent.com/51391473/87363085-03bf5c80-c536-11ea-8ab5-155a931e7400.png)
### Vehicles
There are some nice-craftable vehicles you can ride on.\
Here is one screenshot for each of the available vehicles:
![Cloud car](https://user-images.githubusercontent.com/51391473/99441120-13ccbb80-28dd-11eb-9eb1-8af7aa699b02.png)
![Cloud ship](https://user-images.githubusercontent.com/51391473/99441264-424a9680-28dd-11eb-8dba-fb8297fef92b.png)
### Cloud house
If you go above 1500 blocks up, you may find a cloud house!\
@ -92,6 +100,7 @@ There are 4 types of cloud:
- `default` (included in [Minetest Game](https://github.com/minetest/minetest_game))
- [`worldedit`](https://github.com/Uberi/Minetest-WorldEdit)
- This is required due to the `worldedit.deserialize` function.
- [`vehicle_mash`](https://github.com/minetest-mods/vehicle_mash)
### Optional dependencies
@ -103,7 +112,7 @@ There are 4 types of cloud:
## Requirements
Cloud Items is currently tested with Minetest 5.3.0.\
Cloud Items is currently tested with Minetest 5.4.0-dev.\
Issues may arise if you use older or newer versions.
It shall work with MT 5.0.0 and above, though.

View file

@ -500,13 +500,45 @@ if minetest.get_modpath("multitools") then
)
end
------------------
-- Cloud ship --
------------------
-- Code is taken and modified from the Vehicle Mash (https://github.com/minetest-mods/vehicle_mash) mod (WTFPL license).
-- See the mod license (https://github.com/minetest-mods/vehicle_mash/blob/master/LICENSE.md) for more information.
local ship_def = {
terrain_type = 3,
max_speed_forward = 10,
max_speed_reverse = 7,
accel = 4,
braking = 5,
turn_speed = 6,
stepheight = 1.5,
-- model specific stuff
visual = "mesh",
visual_size = {x=1, y=1},
wield_scale = {x=1, y=1, z=1},
collisionbox = {-2.3, -0.3, -2, 2.5, 1.9, 2},
can_fly = true,
enable_crash = false,
onplace_position_adj = 0,
textures = {"default_cloud.png"},
-- player specific stuff
player_rotation = {x=0, y=0, z=0},
driver_attach_at = {x=-0.6, y=19, z=0},
driver_eye_offset = {x=-0.6, y=19, z=0},
number_of_passengers = 0
}
-- Cloud ship (based on the Vehicle Mash boat)
loadfile(minetest.get_modpath(minetest.get_current_modname()) .. "/ship.lua")(table.copy(ship_def))
----------------
-- Cloud car --
----------------
-- Code is taken and modified from the Vehicle Mash (https://github.com/minetest-mods/vehicle_mash) mod (WTFPL license).
-- See the mod license (https://github.com/minetest-mods/vehicle_mash/blob/master/LICENSE.md) for more information.
if minetest.get_modpath("vehicle_mash") then
local car_def = {
terrain_type = 1,
max_speed_forward = 13,
@ -542,7 +574,6 @@ if minetest.get_modpath("vehicle_mash") then
-- Cloud car (similar from the CAR01 from Vehicle Mash)
loadfile(minetest.get_modpath(minetest.get_current_modname()) .. "/car.lua")(table.copy(car_def))
end
-------------
-- Crafts --

View file

@ -1,6 +1,6 @@
name = cloud_items
depends = default, worldedit
optional_depends = 3d_armor, toolranks, stairs, moreblocks, multitools, vehicle_mash
depends = default, worldedit, vehicle_mash
optional_depends = 3d_armor, toolranks, stairs, moreblocks, multitools
description = Adds powerful cloud tools for Minetest.
min_minetest_version = 5.0.0
license = LGPLv2.1

View file

@ -0,0 +1,714 @@
# Blender v2.90.0 OBJ File: 'cloud_ship.blend'
# www.blender.org
mtllib cloud_items_cloud_ship.mtl
o model.001
v -2.622902 4.532114 25.737923
v -2.622902 4.532117 18.585796
v -9.775026 4.532117 18.585796
v -9.775026 4.532114 25.737923
v -2.622902 -2.620008 18.585794
v -2.622902 -2.620012 25.737919
v -9.775026 -2.620012 25.737919
v -9.775026 -2.620008 18.585794
v 4.529223 4.532114 25.737923
v 4.529223 4.532117 18.585796
v 4.529223 -2.620008 18.585794
v 4.529223 -2.620012 25.737919
v 11.681349 4.532114 25.737923
v 11.681349 4.532117 18.585796
v 11.681349 -2.620008 18.585794
v 11.681349 -2.620012 25.737919
v -9.775026 4.532120 11.433672
v -16.927151 4.532120 11.433672
v -16.927151 4.532117 18.585796
v -9.775026 -2.620004 11.433670
v -16.927151 -2.620008 18.585794
v -16.927151 -2.620004 11.433670
v -2.622902 -2.620004 11.433670
v 4.529223 -2.620004 11.433670
v 11.681349 -2.620004 11.433670
v 18.833469 4.532117 18.585796
v 18.833469 4.532120 11.433672
v 11.681349 4.532120 11.433672
v 18.833469 -2.620004 11.433670
v 18.833469 -2.620008 18.585794
v -2.622902 11.684240 18.585800
v -2.622902 11.684244 11.433678
v -9.775026 11.684244 11.433678
v -9.775026 11.684240 18.585800
v 4.529223 11.684240 18.585800
v 4.529223 11.684244 11.433678
v 11.681349 11.684240 18.585800
v 11.681349 11.684244 11.433678
v -16.927151 4.532124 4.281550
v -24.079273 4.532124 4.281550
v -24.079273 4.532120 11.433672
v -16.927151 -2.620001 4.281545
v -24.079273 -2.620004 11.433670
v -24.079273 -2.620001 4.281545
v -9.775026 -2.620001 4.281545
v -2.622902 -2.620001 4.281545
v 4.529223 -2.620001 4.281545
v 11.681349 -2.620001 4.281545
v 18.833469 -2.620001 4.281545
v 25.985596 4.532120 11.433672
v 25.985596 4.532124 4.281550
v 18.833469 4.532124 4.281550
v 25.985596 -2.620001 4.281545
v 25.985596 -2.620004 11.433670
v -9.775026 11.684248 4.281552
v -16.927151 11.684248 4.281552
v -16.927151 11.684244 11.433678
v 18.833469 11.684244 11.433678
v 18.833469 11.684248 4.281552
v 11.681349 11.684248 4.281552
v -2.622902 18.836369 11.433681
v -2.622902 18.836372 4.281562
v -9.775026 18.836372 4.281562
v -9.775026 18.836369 11.433681
v 4.529223 18.836369 11.433681
v 4.529223 18.836372 4.281562
v 11.681349 18.836369 11.433681
v 11.681349 18.836372 4.281562
v -16.927151 4.532135 -2.870575
v -24.079273 4.532135 -2.870575
v -16.927151 -2.619990 -2.870580
v -24.079273 -2.619990 -2.870580
v -9.775026 -2.619990 -2.870580
v -2.622902 -2.619990 -2.870580
v 4.529223 -2.619990 -2.870580
v 11.681349 -2.619990 -2.870580
v 18.833469 -2.619990 -2.870580
v 25.985596 4.532135 -2.870575
v 18.833469 4.532135 -2.870575
v 25.985596 -2.619990 -2.870580
v -9.775026 11.684258 -2.870574
v -16.927151 11.684258 -2.870574
v 18.833469 11.684258 -2.870574
v 11.681349 11.684258 -2.870574
v -2.622902 18.836382 -2.870563
v -9.775026 18.836382 -2.870563
v 4.529223 18.836382 -2.870563
v 11.681349 18.836382 -2.870563
v -16.927151 4.532138 -10.022700
v -24.079273 4.532138 -10.022700
v -16.927151 -2.619987 -10.022707
v -24.079273 -2.619987 -10.022707
v -9.775026 -2.619987 -10.022707
v -2.622902 -2.619987 -10.022707
v 4.529223 -2.619987 -10.022707
v 11.681349 -2.619987 -10.022707
v 18.833469 -2.619987 -10.022707
v 25.985596 4.532138 -10.022700
v 18.833469 4.532138 -10.022700
v 25.985596 -2.619987 -10.022707
v -9.775026 11.684261 -10.022699
v -16.927151 11.684261 -10.022699
v -9.775026 4.532138 -10.022700
v 18.833469 11.684261 -10.022699
v 11.681349 11.684261 -10.022699
v 11.681349 4.532138 -10.022700
v -2.622902 18.836386 -10.022689
v -9.775026 18.836386 -10.022689
v -2.622902 11.684261 -10.022699
v 4.529223 18.836386 -10.022689
v 4.529223 11.684261 -10.022699
v 11.681349 18.836386 -10.022689
v -9.775026 4.532141 -17.174822
v -16.927151 4.532141 -17.174822
v -9.775026 -2.619983 -17.174824
v -16.927151 -2.619983 -17.174824
v -2.622902 -2.619983 -17.174824
v 4.529223 -2.619983 -17.174824
v 11.681349 -2.619983 -17.174824
v 18.833469 4.532141 -17.174822
v 11.681349 4.532141 -17.174822
v 18.833469 -2.619983 -17.174824
v -2.622902 11.684265 -17.174822
v -9.775026 11.684265 -17.174822
v -2.622902 4.532141 -17.174822
v 4.529223 11.684265 -17.174822
v 4.529223 4.532141 -17.174822
v 11.681349 11.684265 -17.174822
v -2.622902 4.532145 -24.326946
v -9.775026 4.532145 -24.326946
v -2.622902 -2.619980 -24.326948
v -9.775026 -2.619980 -24.326948
v 4.529223 4.532145 -24.326946
v 4.529223 -2.619980 -24.326948
v 11.681349 4.532145 -24.326946
v 11.681349 -2.619980 -24.326948
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 1.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vn 0.0000 1.0000 0.0000
vn 0.0000 -1.0000 -0.0000
vn -1.0000 -0.0000 0.0000
vn 0.0000 -0.0000 1.0000
vn 1.0000 -0.0000 0.0000
vn 0.0000 0.0000 -1.0000
usemtl default_cloud.png.001
s 1
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/5/2 6/6/2 7/7/2 8/8/2
f 7/9/3 4/10/3 3/3/3 8/8/3
f 6/11/4 1/12/4 4/13/4 7/14/4
f 9/15/1 10/16/1 2/17/1 1/18/1
f 11/19/2 12/20/2 6/21/2 5/22/2
f 12/23/4 9/24/4 1/25/4 6/26/4
f 13/27/1 14/28/1 10/29/1 9/30/1
f 15/31/2 16/32/2 12/33/2 11/34/2
f 15/31/5 14/28/5 13/35/5 16/36/5
f 16/37/4 13/38/4 9/39/4 12/40/4
f 3/41/1 17/42/1 18/43/1 19/44/1
f 20/45/2 8/46/2 21/47/2 22/48/2
f 21/49/3 19/50/3 18/43/3 22/48/3
f 8/51/4 3/52/4 19/53/4 21/54/4
f 23/55/2 5/56/2 8/57/2 20/58/2
f 24/59/2 11/60/2 5/61/2 23/62/2
f 25/63/2 15/64/2 11/65/2 24/66/2
f 26/67/1 27/68/1 28/69/1 14/70/1
f 29/71/2 30/72/2 15/73/2 25/74/2
f 29/71/5 27/68/5 26/75/5 30/76/5
f 30/77/4 26/78/4 14/79/4 15/80/4
f 31/81/1 32/82/1 33/83/1 34/84/1
f 3/41/3 34/85/3 33/83/3 17/86/3
f 2/87/4 31/88/4 34/89/4 3/90/4
f 35/91/1 36/92/1 32/93/1 31/94/1
f 10/95/4 35/96/4 31/97/4 2/98/4
f 37/99/1 38/100/1 36/101/1 35/102/1
f 28/103/5 38/100/5 37/104/5 14/70/5
f 14/105/4 37/106/4 35/107/4 10/108/4
f 18/109/1 39/110/1 40/111/1 41/112/1
f 42/113/2 22/114/2 43/115/2 44/116/2
f 43/117/3 41/118/3 40/111/3 44/116/3
f 22/119/4 18/120/4 41/121/4 43/122/4
f 45/123/2 20/124/2 22/125/2 42/126/2
f 46/127/2 23/128/2 20/129/2 45/130/2
f 47/131/2 24/132/2 23/133/2 46/134/2
f 48/135/2 25/136/2 24/137/2 47/138/2
f 49/139/2 29/140/2 25/141/2 48/142/2
f 50/143/1 51/144/1 52/145/1 27/146/1
f 53/147/2 54/148/2 29/149/2 49/150/2
f 53/147/5 51/144/5 50/151/5 54/152/5
f 54/153/4 50/154/4 27/155/4 29/156/4
f 33/157/1 55/158/1 56/159/1 57/160/1
f 18/109/3 57/161/3 56/159/3 39/162/3
f 17/163/4 33/164/4 57/165/4 18/166/4
f 58/167/1 59/168/1 60/169/1 38/170/1
f 52/171/5 59/168/5 58/172/5 27/146/5
f 27/173/4 58/174/4 38/175/4 28/176/4
f 61/177/1 62/178/1 63/179/1 64/180/1
f 33/157/3 64/181/3 63/179/3 55/182/3
f 32/183/4 61/184/4 64/185/4 33/186/4
f 65/187/1 66/188/1 62/189/1 61/190/1
f 36/191/4 65/192/4 61/193/4 32/194/4
f 67/195/1 68/196/1 66/197/1 65/198/1
f 60/199/5 68/196/5 67/200/5 38/170/5
f 38/201/4 67/202/4 65/203/4 36/204/4
f 39/205/1 69/206/1 70/207/1 40/208/1
f 71/209/2 42/210/2 44/211/2 72/212/2
f 44/213/3 40/214/3 70/207/3 72/212/3
f 73/215/2 45/216/2 42/217/2 71/218/2
f 74/219/2 46/220/2 45/221/2 73/222/2
f 75/223/2 47/224/2 46/225/2 74/226/2
f 76/227/2 48/228/2 47/229/2 75/230/2
f 77/231/2 49/232/2 48/233/2 76/234/2
f 51/235/1 78/236/1 79/237/1 52/238/1
f 80/239/2 53/240/2 49/241/2 77/242/2
f 80/239/5 78/236/5 51/243/5 53/244/5
f 55/245/1 81/246/1 82/247/1 56/248/1
f 39/205/3 56/249/3 82/247/3 69/250/3
f 59/251/1 83/252/1 84/253/1 60/254/1
f 79/255/5 83/252/5 59/256/5 52/238/5
f 62/257/1 85/258/1 86/259/1 63/260/1
f 55/245/3 63/261/3 86/259/3 81/262/3
f 66/263/1 87/264/1 85/265/1 62/266/1
f 68/267/1 88/268/1 87/269/1 66/270/1
f 84/271/5 88/268/5 68/272/5 60/254/5
f 69/273/1 89/274/1 90/275/1 70/276/1
f 91/277/2 71/278/2 72/279/2 92/280/2
f 72/281/3 70/282/3 90/275/3 92/280/3
f 92/283/6 90/284/6 89/285/6 91/286/6
f 93/287/2 73/288/2 71/289/2 91/286/2
f 94/290/2 74/291/2 73/292/2 93/293/2
f 95/294/2 75/295/2 74/296/2 94/297/2
f 96/298/2 76/299/2 75/300/2 95/301/2
f 97/302/2 77/303/2 76/304/2 96/305/2
f 78/306/1 98/307/1 99/308/1 79/309/1
f 100/310/2 80/311/2 77/312/2 97/313/2
f 100/310/5 98/307/5 78/314/5 80/315/5
f 97/302/6 99/316/6 98/317/6 100/318/6
f 81/319/1 101/320/1 102/321/1 82/322/1
f 69/273/3 82/323/3 102/321/3 89/324/3
f 89/325/6 102/326/6 101/327/6 103/328/6
f 83/329/1 104/330/1 105/331/1 84/332/1
f 99/333/5 104/330/5 83/334/5 79/309/5
f 106/335/6 105/336/6 104/337/6 99/338/6
f 85/339/1 107/340/1 108/341/1 86/342/1
f 81/319/3 86/343/3 108/341/3 101/344/3
f 101/345/6 108/346/6 107/347/6 109/348/6
f 87/349/1 110/350/1 107/347/1 85/351/1
f 109/352/6 107/340/6 110/353/6 111/354/6
f 88/355/1 112/356/1 110/353/1 87/357/1
f 105/358/5 112/356/5 88/359/5 84/332/5
f 111/360/6 110/350/6 112/361/6 105/362/6
f 103/363/1 113/364/1 114/365/1 89/324/1
f 115/366/2 93/367/2 91/368/2 116/369/2
f 91/277/3 89/274/3 114/365/3 116/369/3
f 116/370/6 114/371/6 113/372/6 115/373/6
f 117/374/2 94/375/2 93/376/2 115/373/2
f 118/377/2 95/378/2 94/379/2 117/380/2
f 119/381/2 96/382/2 95/383/2 118/384/2
f 99/333/1 120/385/1 121/386/1 106/387/1
f 122/388/2 97/389/2 96/390/2 119/391/2
f 122/388/5 120/385/5 99/308/5 97/313/5
f 119/381/6 121/392/6 120/393/6 122/394/6
f 109/352/1 123/395/1 124/396/1 101/344/1
f 103/363/3 101/320/3 124/396/3 113/397/3
f 113/398/6 124/399/6 123/400/6 125/401/6
f 111/360/1 126/402/1 123/400/1 109/348/1
f 125/403/6 123/395/6 126/404/6 127/405/6
f 105/358/1 128/406/1 126/404/1 111/354/1
f 121/407/5 128/406/5 105/331/5 106/387/5
f 127/408/6 126/402/6 128/409/6 121/410/6
f 125/403/1 129/411/1 130/412/1 113/397/1
f 131/413/2 117/414/2 115/415/2 132/416/2
f 115/366/3 113/364/3 130/412/3 132/416/3
f 132/417/6 130/418/6 129/419/6 131/420/6
f 127/408/1 133/421/1 129/419/1 125/401/1
f 134/422/2 118/423/2 117/424/2 131/420/2
f 131/413/6 129/411/6 133/425/6 134/426/6
f 121/407/1 135/427/1 133/425/1 127/405/1
f 136/428/2 119/429/2 118/430/2 134/426/2
f 136/428/5 135/427/5 121/386/5 119/391/5
f 134/422/6 133/421/6 135/431/6 136/432/6

18
mods/cloud_items/ship.lua Normal file
View file

@ -0,0 +1,18 @@
-- 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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

View file

@ -161,7 +161,7 @@ minetest.register_craft( {
minetest.register_craft( {
output = "homedecor:doorbell",
recipe = {
{ "homedecor:light_switch", "basic_materials:energy_crystal_simple", "homedecor:speaker_driver" }
{ "homedecor:light_switch_off", "basic_materials:energy_crystal_simple", "homedecor:speaker_driver" }
},
})

View file

@ -27,19 +27,20 @@ local word_to_bright = {
}
local rules_alldir = {
{x = 0, y = 0, z = -1}, -- borrowed from lightstones
{x = 1, y = 0, z = 0},
{x = -1, y = 0, z = 0},
{x = 0, y = 0, z = 1},
{x = 1, y = 1, z = 0},
{x = 1, y = -1, z = 0},
{x = -1, y = 1, z = 0},
{x = -1, y = -1, z = 0},
{x = -1, y = 0, z = 0},
{x = 1, y = 0, z = 0},
{x = 0, y = 0, z = -1}, -- borrowed from lightstones
{x = 0, y = 1, z = 1},
{x = 0, y = -1, z = 1},
{x = -1, y = 1, z = 0},
{x = 0, y = 1, z = 0},
{x = 1, y = 1, z = 0},
{x = 0, y = 1, z = -1},
{x = 0, y = -1, z = -1},
{x = 0, y = -1, z = 1},
{x = -1, y = -1, z = 0},
{x = 0, y = -1, z = 0},
{x = 1, y = -1, z = 0},
{x = 0, y = -1, z = -1},
}
-- mesecons compatibility

View file

@ -0,0 +1,3 @@
Tails_The_Fox
Tails
CC BY-SA 3.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View file

@ -1,12 +1,31 @@
-- get modpath
local mpath = minetest.get_modpath("vehicle_mash")
local craft_check = minetest.settings:get_bool("vehicle_mash.enable_crafts")
-- Do not change value at settingtypes.txt
-- Only change value at minetest.conf and Minetest Settings tab
local api_check = minetest.settings:get_bool("vehicle_mash.api_mode")
-- Set to default (false) if nil, because all options are normally
-- nil. This will also help with the boolean checks below.
if api_check == nil then
minetest.settings:set_bool("vehicle_mash.api_mode", false)
end
if api_check then -- Now we can safely check if this option is enabled
-- load framework
dofile(mpath .. "/framework.lua")
-- load crafts
if craft_check or craft_check == nil then
dofile(mpath .. "/crafts.lua")
end
else
-- load framework
dofile(mpath .. "/framework.lua")
-- load crafts
local craft_check = minetest.settings:get_bool("vehicle_mash.enable_crafts")
if craft_check or craft_check == nil then
dofile(mpath .. "/crafts.lua")
end
@ -222,6 +241,7 @@ for _, name in ipairs(hover_names) do
loadfile(mpath .. "/hovers/" .. name .. ".lua")(table.copy(hover_def))
end
end
end
-- free unneeded global(s)
core.after(10, function()

View file

@ -2,6 +2,11 @@
vehicle_mash.enable_crafts (Allows crafting vehicles) bool true
# When enabled, all vehicles are disabled and this mod will be only
# used for API functions/purpose. Because this mod has very good API functions
# for registering vehicles, somebody may use this option in their server.
vehicle_mash.api_mode (Disables all vehicles and only enables API functions) bool false
# CAR01's cars
vehicle_mash.enable_black_car (Enables black car) bool true