Add license headers to all lua files.
Some of these are copies from the respective origins from mtg, to make sure we have headers everywhere listing the proper code. I've relicensed spectator_mode from WT*PL to LGPL-2.1. No other licenses were changed.
This commit is contained in:
parent
2670782cfb
commit
80cbd6d34a
38
license.md
38
license.md
@ -6,9 +6,10 @@
|
|||||||
Licensing Terms and Conditions
|
Licensing Terms and Conditions
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
Insitethebox is licensed permissively, generally under the MIT-feh
|
Insitethebox is licensed permissively, generally under the LGPL-2.1
|
||||||
license (https://spdx.org/licenses/MIT-feh.html) for all itb code
|
license, or (at your option) any later version, for all itb code.
|
||||||
components. Artwork is generally CC-BY-4.0.
|
|
||||||
|
Artwork is generally CC-BY-4.0.
|
||||||
|
|
||||||
ITB contains code and artwork that is borrowed from other mods and may
|
ITB contains code and artwork that is borrowed from other mods and may
|
||||||
be licensed under different license terms. You should confirm that your
|
be licensed under different license terms. You should confirm that your
|
||||||
@ -18,25 +19,22 @@ where relevant.
|
|||||||
|
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
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
|
This library is free software; you can redistribute it and/or
|
||||||
in all copies of the Software and its documentation and acknowledgment
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
shall be given in the documentation and software packages that this
|
as published by the Free Software Foundation; either version 2.1
|
||||||
Software was used.
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
This library is distributed in the hope that it will be useful,
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
Lesser General Public License for more details.
|
||||||
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.
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
-- Functions to handle binary data encoding the boxes, to save and load them
|
-- Functions to handle binary data encoding the boxes, to save and load them
|
||||||
|
|
||||||
local function bytes_to_string(bytes)
|
local function bytes_to_string(bytes)
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
boxes = {}
|
boxes = {}
|
||||||
boxes.teleport_to_tutorial_exit = {}
|
boxes.teleport_to_tutorial_exit = {}
|
||||||
|
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
local function has_infinite_items(player)
|
local function has_infinite_items(player)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
if boxes.players_editing_boxes[name] then
|
if boxes.players_editing_boxes[name] then
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
local function bytes_to_string(bytes)
|
local function bytes_to_string(bytes)
|
||||||
local s = {}
|
local s = {}
|
||||||
for i = 1, #bytes do
|
for i = 1, #bytes do
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
local callback = {}
|
local callback = {}
|
||||||
|
|
||||||
local function register_teleport(name, def)
|
local function register_teleport(name, def)
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Box score recording
|
-- Box score recording
|
||||||
--
|
--
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
Box allocation.
|
Box allocation.
|
||||||
|
|
||||||
|
@ -1,3 +1,36 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
creative - inventory code
|
||||||
|
|
||||||
|
Based on `creative` from minetest_game, MIT licensed code.
|
||||||
|
Original work license:
|
||||||
|
|
||||||
|
```
|
||||||
|
The MIT License (MIT)
|
||||||
|
Copyright (C) 2012-2016 Perttu Ahola (celeron55) <celeron55@gmail.com>
|
||||||
|
Copyright (C) 2015-2016 Jean-Patrick G. (kilbith) <jeanpatrick.guerrero@gmail.com>
|
||||||
|
```
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
creative = {}
|
creative = {}
|
||||||
local player_inventory = {}
|
local player_inventory = {}
|
||||||
|
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
sqlite backend for insidethebox
|
sqlite backend for insidethebox
|
||||||
|
@ -1,3 +1,33 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
-- our API object
|
-- our API object
|
||||||
doors = {}
|
doors = {}
|
||||||
|
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
Fences - from minetest_game
|
||||||
|
|
||||||
|
GNU Lesser General Public License, version 2.1
|
||||||
|
Copyright (C) 2011-2016 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||||
|
Copyright (C) 2011-2016 Various Minetest developers and contributors
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU Lesser General Public License as published
|
||||||
|
by the Free Software Foundation; either version 2.1 of the License,
|
||||||
|
or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||||
|
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU Lesser General Public License for more details:
|
||||||
|
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
fences = {}
|
fences = {}
|
||||||
|
|
||||||
function fences.register_fence(name, def)
|
function fences.register_fence(name, def)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
Copyright (c) 2013, Diego Martinez (kaeza)
|
Copyright (c) 2013, Diego Martinez (kaeza)
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
@ -1,4 +1,24 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
log = {}
|
log = {}
|
||||||
|
|
||||||
|
@ -1,7 +1,25 @@
|
|||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
mech - mechanisms for Inside The Box
|
mech - mechanisms for Inside The Box
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
]]--
|
]]--
|
||||||
|
|
||||||
mech = {}
|
mech = {}
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
game menu options for use with sfinv
|
game menu options for use with sfinv
|
||||||
|
@ -1,8 +1,24 @@
|
|||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
mapgen - none!
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
--]]
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
-- disable all mapgens
|
-- disable all mapgens
|
||||||
minetest.register_on_mapgen_init(function(parms)
|
minetest.register_on_mapgen_init(function(parms)
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
Music API for itb
|
Music API for itb
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
nodes.lua - basic node blocks for Inside The Box
|
nodes.lua - basic node blocks for Inside The Box
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
handle player events
|
handle player events
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
screwdriver - Copyright (C) RealBadAngel, minetest developers
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
screwdriver = {}
|
screwdriver = {}
|
||||||
|
|
||||||
local function nextrange(x, max)
|
local function nextrange(x, max)
|
||||||
|
@ -1,4 +1,29 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
Copyright (C) 2016 rubenwardy rubenwardy@gmail.com
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
sfinv = {
|
sfinv = {
|
||||||
-- replace default.* style units
|
-- replace default.* style units
|
||||||
style = {
|
style = {
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
signs = {}
|
signs = {}
|
||||||
|
|
||||||
local function clean_sign_entities(pos)
|
local function clean_sign_entities(pos)
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
helper script to create a font for use in signs.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
for c = 32, 255 do
|
for c = 32, 255 do
|
||||||
s = string.char(c)
|
s = string.char(c)
|
||||||
n = string.format("%x", c)
|
n = string.format("%x", c)
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
sounds.lua
|
sounds.lua
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
spectator mode - originally by kilbith.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
local original_pos = {}
|
local original_pos = {}
|
||||||
|
|
||||||
local watching = {}
|
local watching = {}
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--
|
--
|
||||||
-- print server status (version, uptime, max_lag, clients every 5 minutes
|
-- print server status (version, uptime, max_lag, clients every 5 minutes
|
||||||
--
|
--
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
terminal - an interactive terminal
|
terminal - an interactive terminal
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
--
|
--
|
||||||
-- hand tools
|
-- hand tools
|
||||||
--
|
--
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
walls - from minetest_game
|
||||||
|
|
||||||
|
Copyright (C) 2015 Auke Kok <sofar@foo-projects.org>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU Lesser General Public License as published
|
||||||
|
by the Free Software Foundation; either version 2.1 of the License,
|
||||||
|
or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||||
|
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the GNU Lesser General Public License for more details:
|
||||||
|
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
walls = {}
|
walls = {}
|
||||||
|
|
||||||
walls.register = function(wall_name, wall_desc, wall_texture, wall_sounds, groups, connect_groups)
|
walls.register = function(wall_name, wall_desc, wall_texture, wall_sounds, groups, connect_groups)
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
ITB (insidethebox) minetest game - Copyright (C) 2017-2018 sofar & nore
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
MA 02111-1307 USA
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
minetest.register_chatcommand("who", {
|
minetest.register_chatcommand("who", {
|
||||||
params = "who server",
|
params = "who server",
|
||||||
description = "List online players",
|
description = "List online players",
|
||||||
|
@ -1,4 +1,31 @@
|
|||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
xpanes - minetest_game.
|
||||||
|
|
||||||
|
(C) xyz, BlockMen, sofar, the minetest 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.
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
local function is_pane(pos)
|
local function is_pane(pos)
|
||||||
return minetest.get_item_group(minetest.get_node(pos).name, "pane") > 0
|
return minetest.get_item_group(minetest.get_node(pos).name, "pane") > 0
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user