Initial commit
This was split out of the venerable Castle mod, https://github.com/minetest-mods/castle, which has been maintained by a long line of distinguished modders.
This commit is contained in:
commit
392c8e741f
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Minetest Mods 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.
|
16
README.txt
Normal file
16
README.txt
Normal file
@ -0,0 +1,16 @@
|
||||
=-=-=-=-=-=-=-=-=-=
|
||||
|
||||
Castles Mod
|
||||
by: Philipbenr And DanDuncombe
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=
|
||||
|
||||
Licence: MIT
|
||||
|
||||
see: LICENSE
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=
|
||||
|
||||
Contains farm products useful for decorating a castle
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=
|
6
depends.txt
Normal file
6
depends.txt
Normal file
@ -0,0 +1,6 @@
|
||||
default
|
||||
farming
|
||||
intllib?
|
||||
wool
|
||||
bucket
|
||||
ropes?
|
1
description.txt
Normal file
1
description.txt
Normal file
@ -0,0 +1 @@
|
||||
Contains farming products useful for decorating a castle
|
32
hides.lua
Normal file
32
hides.lua
Normal file
@ -0,0 +1,32 @@
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
|
||||
minetest.register_alias("castle:hides", "castle_farming:hides")
|
||||
|
||||
minetest.register_node("castle_farming:hides", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Hides"),
|
||||
inventory_image = "castle_hide.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
tiles = {'castle_hide.png'},
|
||||
climbable = true,
|
||||
paramtype2 = "wallmounted",
|
||||
groups = {dig_immediate=2},
|
||||
node_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
|
||||
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||
wall_side = {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "castle_farming:hides 6",
|
||||
recipe = { "wool:white" , "bucket:bucket_water" },
|
||||
replacements = {
|
||||
{ 'bucket:bucket_water', 'bucket:bucket_empty' }
|
||||
}
|
||||
})
|
4
init.lua
Normal file
4
init.lua
Normal file
@ -0,0 +1,4 @@
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
dofile(MP.."/hides.lua")
|
||||
dofile(MP.."/straw.lua")
|
45
intllib.lua
Normal file
45
intllib.lua
Normal file
@ -0,0 +1,45 @@
|
||||
|
||||
-- Fallback functions for when `intllib` is not installed.
|
||||
-- Code released under Unlicense <http://unlicense.org>.
|
||||
|
||||
-- Get the latest version of this file at:
|
||||
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
|
||||
|
||||
local function format(str, ...)
|
||||
local args = { ... }
|
||||
local function repl(escape, open, num, close)
|
||||
if escape == "" then
|
||||
local replacement = tostring(args[tonumber(num)])
|
||||
if open == "" then
|
||||
replacement = replacement..close
|
||||
end
|
||||
return replacement
|
||||
else
|
||||
return "@"..open..num..close
|
||||
end
|
||||
end
|
||||
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
|
||||
end
|
||||
|
||||
local gettext, ngettext
|
||||
if minetest.get_modpath("intllib") then
|
||||
if intllib.make_gettext_pair then
|
||||
-- New method using gettext.
|
||||
gettext, ngettext = intllib.make_gettext_pair()
|
||||
else
|
||||
-- Old method using text files.
|
||||
gettext = intllib.Getter()
|
||||
end
|
||||
end
|
||||
|
||||
-- Fill in missing functions.
|
||||
|
||||
gettext = gettext or function(msgid, ...)
|
||||
return format(msgid, ...)
|
||||
end
|
||||
|
||||
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
|
||||
return format(n==1 and msgid or msgid_plural, ...)
|
||||
end
|
||||
|
||||
return gettext, ngettext
|
30
locale/template.pot
Normal file
30
locale/template.pot
Normal file
@ -0,0 +1,30 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-02-27 00:59-0700\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: hides.lua:9
|
||||
msgid "Hides"
|
||||
msgstr ""
|
||||
|
||||
#: straw.lua:13
|
||||
msgid "Bound Straw"
|
||||
msgstr ""
|
||||
|
||||
#: straw.lua:22
|
||||
msgid "Training Dummy"
|
||||
msgstr ""
|
76
straw.lua
Normal file
76
straw.lua
Normal file
@ -0,0 +1,76 @@
|
||||
minetest.register_alias("cottages:straw", "farming:straw")
|
||||
minetest.register_alias("castle:straw", "farming:straw")
|
||||
minetest.register_alias("darkage:straw", "farming:straw")
|
||||
minetest.register_alias("cottages:straw_bale", "castle_farming:bound_straw")
|
||||
minetest.register_alias("darkage:straw_bale", "castle_farming:bound_straw")
|
||||
minetest.register_alias("castle:bound_straw", "castle_farming:bound_straw")
|
||||
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
|
||||
minetest.register_node("castle_farming:bound_straw", {
|
||||
description = S("Bound Straw"),
|
||||
drawtype = "normal",
|
||||
tiles = {"castle_straw_bale.png"},
|
||||
groups = {choppy=4, flammable=1, oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
paramtype = "light",
|
||||
})
|
||||
|
||||
minetest.register_node("castle_farming:straw_dummy", {
|
||||
description = S("Training Dummy"),
|
||||
tiles = {"castle_straw_bale.png"},
|
||||
--inventory_image = "castle_tapestry_inv.png",
|
||||
groups = {choppy=4, flammable=1, oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, -0.5, -0.125, 0, 0.1875, 0.125}, -- right_leg
|
||||
{0, -0.5, -0.125, 0.25, 0.1875, 0.125}, -- left_leg
|
||||
{-0.25, 0.1875, -0.125, 0.25, 0.875, 0.125}, -- torso
|
||||
{0.25, 0.1875, -0.125, 0.5, 0.875, 0.125}, -- left_arm
|
||||
{-0.5, 0.1875, -0.125, -0.25, 0.875, 0.125}, -- right_arm
|
||||
{-0.25, 0.875, -0.25, 0.25, 1.3125, 0.1875}, -- head
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "castle_farming:straw_dummy",
|
||||
recipe = {
|
||||
{"group:stick", "castle_farming:bound_straw","group:stick"},
|
||||
{"", "castle_farming:bound_straw",""},
|
||||
{"group:stick", "","group:stick"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "castle_farming:bound_straw 6",
|
||||
type = "shapeless",
|
||||
recipe = {"farming:straw", "farming:straw", "farming:straw", "farming:straw", "farming:straw", "farming:straw", "ropes:ropesegment",}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "castle_farming:bound_straw",
|
||||
type = "shapeless",
|
||||
recipe = {"farming:straw", "farming:cotton",}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "castle_farming:bound_straw",
|
||||
burntime = 10
|
||||
})
|
||||
|
||||
local stick_burn_time = minetest.get_craft_result({method="fuel", width=1, items={ItemStack("default:stick")}}).time
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "castle_farming:straw_dummy",
|
||||
burntime = 10*2 + 4*stick_burn_time
|
||||
})
|
11
textures/LICENSE.txt
Normal file
11
textures/LICENSE.txt
Normal file
@ -0,0 +1,11 @@
|
||||
--------------------------------------------
|
||||
|
||||
16 px textures based on Castle mod
|
||||
original textures by Philipner
|
||||
|
||||
License Textures: Napiophelios - CC-BY-SA 3.0
|
||||
|
||||
-castle_hide.png
|
||||
-castle_straw_bale.png
|
||||
|
||||
--------------------------------------------
|
BIN
textures/castle_hide.png
Normal file
BIN
textures/castle_hide.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 618 B |
BIN
textures/castle_straw_bale.png
Normal file
BIN
textures/castle_straw_bale.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 756 B |
Loading…
x
Reference in New Issue
Block a user