Update Doors mod (temporarily without additional doors)
|
@ -20,32 +20,7 @@ local function on_rightclick(pos, dir, check_name, replace, replace_dir, params)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function meseconify_door(name)
|
local function meseconify_door(name)
|
||||||
if minetest.registered_items[name .. "_b_1"] then
|
if minetest.registered_items[name .. "_a"] then
|
||||||
-- old style double-node doors
|
|
||||||
local function toggle_state1 (pos, node)
|
|
||||||
on_rightclick(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0})
|
|
||||||
end
|
|
||||||
|
|
||||||
local function toggle_state2 (pos, node)
|
|
||||||
on_rightclick(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.override_item(name.."_b_1", {
|
|
||||||
mesecons = {effector = {
|
|
||||||
action_on = toggle_state1,
|
|
||||||
action_off = toggle_state1,
|
|
||||||
rules = mesecon.rules.pplate
|
|
||||||
}}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.override_item(name.."_b_2", {
|
|
||||||
mesecons = {effector = {
|
|
||||||
action_on = toggle_state2,
|
|
||||||
action_off = toggle_state2,
|
|
||||||
rules = mesecon.rules.pplate
|
|
||||||
}}
|
|
||||||
})
|
|
||||||
elseif minetest.registered_items[name .. "_a"] then
|
|
||||||
-- new style mesh node based doors
|
-- new style mesh node based doors
|
||||||
local override = {
|
local override = {
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
|
|
|
@ -1,27 +1,43 @@
|
||||||
MultiCraft Game mod: doors
|
MultiCraft Game mod: doors
|
||||||
=======================
|
==========================
|
||||||
|
See license.txt for license information.
|
||||||
License of source code:
|
|
||||||
-----------------------
|
Authors of source code
|
||||||
Copyright (C) 2012 PilzAdam
|
----------------------
|
||||||
modified by BlockMen (added sounds, glassdoors, trapdoor)
|
Originally by PilzAdam (MIT)
|
||||||
Copyright (C) 2016 sofar@foo-projects.org
|
|
||||||
|
Modified by BlockMen (MIT): Added sounds, glass doors (glass, obsidian glass) and trapdoor.
|
||||||
This program is free software. It comes without any warranty, to
|
|
||||||
the extent permitted by applicable law. You can redistribute it
|
Modified by sofar (sofar@foo-projects.org) (MIT):
|
||||||
and/or modify it under the terms of the Do What The Fuck You Want
|
Added Steel trapdoor.
|
||||||
To Public License, Version 2, as published by Sam Hocevar. See
|
Re-implemented most of the door algorithms, added meshes, UV wrapped texture.
|
||||||
http://sam.zoy.org/wtfpl/COPYING for more details.
|
Added doors API to facilitate coding mods accessing and operating doors.
|
||||||
|
Added Fence Gate model, code, and sounds.
|
||||||
|
|
||||||
Authors of media (sounds)
|
Various Minetest developers and contributors (MIT)
|
||||||
-------------------------
|
|
||||||
Opening-Sound created by CGEffex (CC BY 3.0), modified by BlockMen
|
MultiCraft Development Team (MIT)
|
||||||
door_open.ogg
|
|
||||||
Closing-Sound created by bennstir (CC BY 3.0)
|
Authors of media (models)
|
||||||
door_close.ogg
|
-------------------------
|
||||||
fencegate_open.ogg:
|
Door 3d models by sofar (CC-BY-SA-3.0)
|
||||||
http://www.freesound.org/people/mhtaylor67/sounds/126041/ - (CC0 1.0)
|
- door_a.obj
|
||||||
fencegate_close.ogg:
|
- door_b.obj
|
||||||
http://www.freesound.org/people/BarkersPinhead/sounds/274807/ - (CC-BY-3.0)
|
|
||||||
http://www.freesound.org/people/rivernile7/sounds/249573/ - (CC-BY-3.0)
|
Authors of media (sounds)
|
||||||
|
-------------------------
|
||||||
|
Opening-Sound created by CGEffex (CC BY 3.0), modified by BlockMen
|
||||||
|
door_open.ogg
|
||||||
|
Closing-Sound created by bennstir (CC BY 3.0)
|
||||||
|
door_close.ogg
|
||||||
|
fencegate_open.ogg:
|
||||||
|
http://www.freesound.org/people/mhtaylor67/sounds/126041/ - (CC0 1.0)
|
||||||
|
fencegate_close.ogg:
|
||||||
|
http://www.freesound.org/people/BarkersPinhead/sounds/274807/ - (CC-BY-3.0)
|
||||||
|
http://www.freesound.org/people/rivernile7/sounds/249573/ - (CC-BY-3.0)
|
||||||
|
Steel door sounds open & close (CC-BY-3.0) by HazMatt
|
||||||
|
- http://www.freesound.org/people/HazMattt/sounds/187283/
|
||||||
|
doors_steel_door_open.ogg
|
||||||
|
doors_steel_door_close.ogg
|
||||||
|
doors_glass_door_open.ogg, doors_glass_door_close.ogg:
|
||||||
|
https://www.freesound.org/people/SkeetMasterFunk69/sounds/235546/ (CC0 1.0)
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
|
default
|
||||||
default
|
|
||||||
|
|
|
@ -0,0 +1,165 @@
|
||||||
|
License of source code
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
Copyright (C) 2012-2016 PilzAdam
|
||||||
|
Copyright (C) 2014-2016 BlockMen
|
||||||
|
Copyright (C) 2015-2016 sofar (sofar@foo-projects.org)
|
||||||
|
Copyright (C) 2012-2016 Various Minetest developers and contributors
|
||||||
|
Copyright (C) 2019 MultiCraft Development Team
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||||
|
software and associated documentation files (the "Software"), to deal in the Software
|
||||||
|
without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||||
|
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||||
|
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or
|
||||||
|
substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
||||||
|
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||||
|
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
For more details:
|
||||||
|
https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
|
||||||
|
Licenses of media (textures, models and sounds)
|
||||||
|
-----------------------------------------------
|
||||||
|
|
||||||
|
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||||
|
Copyright (C) 2011-2016 Fernando Zapata
|
||||||
|
Copyright (C) 2014-2016 celeron55
|
||||||
|
Copyright (C) 2012-2016 PilzAdam
|
||||||
|
Copyright (C) 2014-2016 BlockMen
|
||||||
|
Copyright (C) 2015-2016 sofar
|
||||||
|
Copyright (C) 2016 red-001
|
||||||
|
Copyright (C) 2016 paramat
|
||||||
|
|
||||||
|
You are free to:
|
||||||
|
Share — copy and redistribute the material in any medium or format.
|
||||||
|
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||||
|
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||||
|
|
||||||
|
Under the following terms:
|
||||||
|
|
||||||
|
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||||
|
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||||
|
that suggests the licensor endorses you or your use.
|
||||||
|
|
||||||
|
ShareAlike — If you remix, transform, or build upon the material, you must distribute
|
||||||
|
your contributions under the same license as the original.
|
||||||
|
|
||||||
|
No additional restrictions — You may not apply legal terms or technological measures that
|
||||||
|
legally restrict others from doing anything the license permits.
|
||||||
|
|
||||||
|
Notices:
|
||||||
|
|
||||||
|
You do not have to comply with the license for elements of the material in the public
|
||||||
|
domain or where your use is permitted by an applicable exception or limitation.
|
||||||
|
No warranties are given. The license may not give you all of the permissions necessary
|
||||||
|
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||||
|
rights may limit how you use the material.
|
||||||
|
|
||||||
|
For more details:
|
||||||
|
http://creativecommons.org/licenses/by-sa/3.0/
|
||||||
|
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||||||
|
Copyright (C) 2014-2016 PenguinDad
|
||||||
|
|
||||||
|
You are free to:
|
||||||
|
Share — copy and redistribute the material in any medium or format.
|
||||||
|
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||||
|
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||||
|
|
||||||
|
Under the following terms:
|
||||||
|
|
||||||
|
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||||
|
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||||
|
that suggests the licensor endorses you or your use.
|
||||||
|
|
||||||
|
ShareAlike — If you remix, transform, or build upon the material, you must distribute
|
||||||
|
your contributions under the same license as the original.
|
||||||
|
|
||||||
|
No additional restrictions — You may not apply legal terms or technological measures that
|
||||||
|
legally restrict others from doing anything the license permits.
|
||||||
|
|
||||||
|
Notices:
|
||||||
|
|
||||||
|
You do not have to comply with the license for elements of the material in the public
|
||||||
|
domain or where your use is permitted by an applicable exception or limitation.
|
||||||
|
No warranties are given. The license may not give you all of the permissions necessary
|
||||||
|
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||||
|
rights may limit how you use the material.
|
||||||
|
|
||||||
|
For more details:
|
||||||
|
http://creativecommons.org/licenses/by-sa/4.0/
|
||||||
|
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Attribution 3.0 Unported (CC BY 3.0)
|
||||||
|
Copyright (C) 2014 CGEffex
|
||||||
|
Copyright (C) 2014 bennstir
|
||||||
|
Copyright (C) 2016 BarkersPinhead
|
||||||
|
Copyright (C) 2016 rivernile7
|
||||||
|
Copyright (C) 2016 HazMatt
|
||||||
|
|
||||||
|
You are free to:
|
||||||
|
Share — copy and redistribute the material in any medium or format.
|
||||||
|
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||||
|
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||||
|
|
||||||
|
Under the following terms:
|
||||||
|
|
||||||
|
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||||
|
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||||
|
that suggests the licensor endorses you or your use.
|
||||||
|
|
||||||
|
No additional restrictions — You may not apply legal terms or technological measures that
|
||||||
|
legally restrict others from doing anything the license permits.
|
||||||
|
|
||||||
|
Notices:
|
||||||
|
|
||||||
|
You do not have to comply with the license for elements of the material in the public
|
||||||
|
domain or where your use is permitted by an applicable exception or limitation.
|
||||||
|
No warranties are given. The license may not give you all of the permissions necessary
|
||||||
|
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||||
|
rights may limit how you use the material.
|
||||||
|
|
||||||
|
For more details:
|
||||||
|
http://creativecommons.org/licenses/by/3.0/
|
||||||
|
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
|
||||||
|
mhtaylor67
|
||||||
|
SkeetMasterFunk69
|
||||||
|
|
||||||
|
No Copyright
|
||||||
|
|
||||||
|
The person who associated a work with this deed has dedicated the work to the public
|
||||||
|
domain by waiving all of his or her rights to the work worldwide under copyright law,
|
||||||
|
including all related and neighboring rights, to the extent allowed by law.
|
||||||
|
|
||||||
|
You can copy, modify, distribute and perform the work, even for commercial purposes, all
|
||||||
|
without asking permission. See Other Information below.
|
||||||
|
|
||||||
|
Other Information
|
||||||
|
|
||||||
|
In no way are the patent or trademark rights of any person affected by CC0, nor are the
|
||||||
|
rights that other persons may have in the work or in how the work is used, such as
|
||||||
|
publicity or privacy rights.
|
||||||
|
Unless expressly stated otherwise, the person who associated a work with this deed makes
|
||||||
|
no warranties about the work, and disclaims liability for all uses of the work, to the
|
||||||
|
fullest extent permitted by applicable law.
|
||||||
|
When using or citing the work, you should not imply endorsement by the author or the
|
||||||
|
affirmer.
|
||||||
|
|
||||||
|
For more details:
|
||||||
|
https://creativecommons.org/publicdomain/zero/1.0/
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Blender v2.76 (sub 0) OBJ File: 'door_a.blend'
|
||||||
|
# www.blender.org
|
||||||
|
mtllib door_a.mtl
|
||||||
|
o Cube_Cube.001
|
||||||
|
v 0.499000 -0.499000 -0.499000
|
||||||
|
v 0.499000 1.499000 -0.499000
|
||||||
|
v 0.499000 -0.499000 -0.375000
|
||||||
|
v 0.499000 1.499000 -0.375000
|
||||||
|
v -0.499000 -0.499000 -0.499000
|
||||||
|
v -0.499000 1.499000 -0.499000
|
||||||
|
v -0.499000 -0.499000 -0.375000
|
||||||
|
v -0.499000 1.499000 -0.375000
|
||||||
|
vt 0.842105 1.000000
|
||||||
|
vt 0.894737 1.000000
|
||||||
|
vt 0.894737 0.000000
|
||||||
|
vt 0.842105 0.000000
|
||||||
|
vt 0.421053 1.000000
|
||||||
|
vt 0.421053 0.000000
|
||||||
|
vt 0.947368 1.000000
|
||||||
|
vt 0.947368 0.000000
|
||||||
|
vt 0.000000 1.000000
|
||||||
|
vt 0.000000 0.000000
|
||||||
|
vt 1.000000 0.500000
|
||||||
|
vt 0.947368 0.500000
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt 1.000000 0.000000
|
||||||
|
vn 1.000000 0.000000 0.000000
|
||||||
|
vn 0.000000 0.000000 1.000000
|
||||||
|
vn -1.000000 0.000000 0.000000
|
||||||
|
vn 0.000000 0.000000 -1.000000
|
||||||
|
vn 0.000000 -1.000000 0.000000
|
||||||
|
vn 0.000000 1.000000 0.000000
|
||||||
|
usemtl None
|
||||||
|
s off
|
||||||
|
f 2/1/1 4/2/1 3/3/1 1/4/1
|
||||||
|
f 4/5/2 8/1/2 7/4/2 3/6/2
|
||||||
|
f 8/2/3 6/7/3 5/8/3 7/3/3
|
||||||
|
f 6/9/4 2/5/4 1/6/4 5/10/4
|
||||||
|
f 1/11/5 3/12/5 7/7/5 5/13/5
|
||||||
|
f 6/14/6 8/8/6 4/12/6 2/11/6
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Blender v2.76 (sub 0) OBJ File: 'door_b.blend'
|
||||||
|
# www.blender.org
|
||||||
|
mtllib door_b.mtl
|
||||||
|
o Cube_Cube.001
|
||||||
|
v -0.499000 -0.499000 -0.499000
|
||||||
|
v -0.499000 1.499000 -0.499000
|
||||||
|
v -0.499000 -0.499000 -0.375000
|
||||||
|
v -0.499000 1.499000 -0.375000
|
||||||
|
v 0.499000 -0.499000 -0.499000
|
||||||
|
v 0.499000 1.499000 -0.499000
|
||||||
|
v 0.499000 -0.499000 -0.375000
|
||||||
|
v 0.499000 1.499000 -0.375000
|
||||||
|
vt 0.842105 1.000000
|
||||||
|
vt 0.842105 0.000000
|
||||||
|
vt 0.894737 0.000000
|
||||||
|
vt 0.894737 1.000000
|
||||||
|
vt 0.421053 1.000000
|
||||||
|
vt 0.421053 0.000000
|
||||||
|
vt 0.947368 0.000000
|
||||||
|
vt 0.947368 1.000000
|
||||||
|
vt 0.000000 1.000000
|
||||||
|
vt 0.000000 0.000000
|
||||||
|
vt 1.000000 0.000000
|
||||||
|
vt 1.000000 0.500000
|
||||||
|
vt 0.947368 0.500000
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vn -1.000000 0.000000 0.000000
|
||||||
|
vn 0.000000 0.000000 1.000000
|
||||||
|
vn 1.000000 0.000000 0.000000
|
||||||
|
vn 0.000000 0.000000 -1.000000
|
||||||
|
vn 0.000000 -1.000000 0.000000
|
||||||
|
vn 0.000000 1.000000 0.000000
|
||||||
|
usemtl None
|
||||||
|
s off
|
||||||
|
f 2/1/1 1/2/1 3/3/1 4/4/1
|
||||||
|
f 4/5/2 3/6/2 7/2/2 8/1/2
|
||||||
|
f 8/4/3 7/3/3 5/7/3 6/8/3
|
||||||
|
f 6/9/4 5/10/4 1/6/4 2/5/4
|
||||||
|
f 1/11/5 5/12/5 7/13/5 3/7/5
|
||||||
|
f 6/8/6 2/13/6 4/12/6 8/14/6
|
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 142 B |
Before Width: | Height: | Size: 563 B |
Before Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 409 B |
Before Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 384 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 184 B |
After Width: | Height: | Size: 195 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 293 B |
After Width: | Height: | Size: 974 B |
After Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 563 B |
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
-- Mobs Api
|
-- Mobs Api
|
||||||
|
|
||||||
local use_cmi = minetest.global_exists("cmi")
|
local use_cmi = minetest.global_exists("cmi")
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
local path = minetest.get_modpath("mobs")
|
local path = minetest.get_modpath("mobs")
|
||||||
|
|
||||||
-- Mob API
|
-- Mob API
|
||||||
|
|