Update license and include source headers

Pass a deep copy of gunspec instead of a direct reference

Fix Lua style multi-line comments :/

Fix flaregun dependencies

Add mod.conf and description files plus some readme fixes
This commit is contained in:
stujones11 2019-03-17 18:13:26 +00:00
parent 8ef3b1d379
commit fde2b72a68
40 changed files with 570 additions and 213 deletions

View file

@ -0,0 +1,45 @@
Minetest Mod - Crossbow [shooter_crossbow]
==========================================
Depends: shooter, wool, dye
Adds a crossbow with colored arrows.
Crafting
========
<color> = grey, black, red, yellow, green, cyan, blue, magenta
A = Arrow [shooter:arrow_white]
C = Color Dye [dye:<color>]
W = Wooden Stick [default:stick]
P = Paper [default:paper]
S = Steel Ingot [default:steel_ingot]
B = Bronze Ingot [default:bronze_ingot]
Crossbow: [shooter_crossbow:crossbow]
+---+---+---+
| W | W | W |
+---+---+---+
| W | W | |
+---+---+---+
| W | | B |
+---+---+---+
White Arrow: [shooter_crossbow:arrow_white]
+---+---+---+
| S | | |
+---+---+---+
| | W | P |
+---+---+---+
| | P | W |
+---+---+---+
Coloured Arrow: [shooter_crossbow:arrow_<color>]
+---+---+
| C | A |
+---+---+

View file

@ -1,2 +1,3 @@
wool
dye
shooter

View file

@ -0,0 +1 @@
Adds a crossbow with colored arrows.

View file

@ -1,3 +1,22 @@
--[[
Shooter Crossbow [shooter_crossbow]
Copyright (C) 2013-2019 stujones11, Stuart Jones
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.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
]]--
local config = {
crossbow_uses = 50,
arrow_lifetime = 180,

View file

@ -0,0 +1 @@
name = shooter_crossbow