From 907e8bf6a64215a516fdf16869dd81248aeaa2f6 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 17 Mar 2017 16:53:18 -0400 Subject: update digilines, technic, unified inventory, and switched castles to the new modpack form --- castle_farming/LICENSE | 21 +++++++ castle_farming/README.txt | 20 +++++++ castle_farming/depends.txt | 6 ++ castle_farming/description.txt | 1 + castle_farming/hides.lua | 32 +++++++++++ castle_farming/init.lua | 4 ++ castle_farming/intllib.lua | 45 +++++++++++++++ castle_farming/locale/template.pot | 30 ++++++++++ castle_farming/mod.conf | 1 + castle_farming/screenshot.png | Bin 0 -> 51199 bytes castle_farming/straw.lua | 75 +++++++++++++++++++++++++ castle_farming/textures/LICENSE.txt | 19 +++++++ castle_farming/textures/castle_hide.png | Bin 0 -> 618 bytes castle_farming/textures/castle_straw_bale.png | Bin 0 -> 756 bytes castle_farming/textures/castle_straw_dummy.png | Bin 0 -> 803 bytes 15 files changed, 254 insertions(+) create mode 100644 castle_farming/LICENSE create mode 100644 castle_farming/README.txt create mode 100644 castle_farming/depends.txt create mode 100644 castle_farming/description.txt create mode 100644 castle_farming/hides.lua create mode 100644 castle_farming/init.lua create mode 100644 castle_farming/intllib.lua create mode 100644 castle_farming/locale/template.pot create mode 100644 castle_farming/mod.conf create mode 100644 castle_farming/screenshot.png create mode 100644 castle_farming/straw.lua create mode 100644 castle_farming/textures/LICENSE.txt create mode 100644 castle_farming/textures/castle_hide.png create mode 100644 castle_farming/textures/castle_straw_bale.png create mode 100644 castle_farming/textures/castle_straw_dummy.png (limited to 'castle_farming') diff --git a/castle_farming/LICENSE b/castle_farming/LICENSE new file mode 100644 index 0000000..456d091 --- /dev/null +++ b/castle_farming/LICENSE @@ -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. diff --git a/castle_farming/README.txt b/castle_farming/README.txt new file mode 100644 index 0000000..a0334bd --- /dev/null +++ b/castle_farming/README.txt @@ -0,0 +1,20 @@ +=-=-=-=-=-=-=-=-=-= + +Castles Mod +by: Philipbenr And DanDuncombe + +=-=-=-=-=-=-=-=-=-= + +Licence: MIT + +see: LICENSE + +=-=-=-=-=-=-=-=-=-= + +Contains farm products useful for decorating a castle: + +* Hide wall and floor coverings +* Bound straw bale +* Straw training dummy + +=-=-=-=-=-=-=-=-=-= diff --git a/castle_farming/depends.txt b/castle_farming/depends.txt new file mode 100644 index 0000000..6bfb336 --- /dev/null +++ b/castle_farming/depends.txt @@ -0,0 +1,6 @@ +default +farming +intllib? +wool +bucket +ropes? \ No newline at end of file diff --git a/castle_farming/description.txt b/castle_farming/description.txt new file mode 100644 index 0000000..f241ff4 --- /dev/null +++ b/castle_farming/description.txt @@ -0,0 +1 @@ +Contains farming products useful for decorating a castle \ No newline at end of file diff --git a/castle_farming/hides.lua b/castle_farming/hides.lua new file mode 100644 index 0000000..73a9df2 --- /dev/null +++ b/castle_farming/hides.lua @@ -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' } + } +}) diff --git a/castle_farming/init.lua b/castle_farming/init.lua new file mode 100644 index 0000000..efc24dc --- /dev/null +++ b/castle_farming/init.lua @@ -0,0 +1,4 @@ +local MP = minetest.get_modpath(minetest.get_current_modname()) + +dofile(MP.."/hides.lua") +dofile(MP.."/straw.lua") \ No newline at end of file diff --git a/castle_farming/intllib.lua b/castle_farming/intllib.lua new file mode 100644 index 0000000..6669d72 --- /dev/null +++ b/castle_farming/intllib.lua @@ -0,0 +1,45 @@ + +-- Fallback functions for when `intllib` is not installed. +-- Code released under Unlicense . + +-- 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 diff --git a/castle_farming/locale/template.pot b/castle_farming/locale/template.pot new file mode 100644 index 0000000..233f90f --- /dev/null +++ b/castle_farming/locale/template.pot @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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 "" diff --git a/castle_farming/mod.conf b/castle_farming/mod.conf new file mode 100644 index 0000000..5095d9a --- /dev/null +++ b/castle_farming/mod.conf @@ -0,0 +1 @@ +name = castle_farming diff --git a/castle_farming/screenshot.png b/castle_farming/screenshot.png new file mode 100644 index 0000000..ecf7139 Binary files /dev/null and b/castle_farming/screenshot.png differ diff --git a/castle_farming/straw.lua b/castle_farming/straw.lua new file mode 100644 index 0000000..673daac --- /dev/null +++ b/castle_farming/straw.lua @@ -0,0 +1,75 @@ +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_dummy.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.1875, 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 +}) \ No newline at end of file diff --git a/castle_farming/textures/LICENSE.txt b/castle_farming/textures/LICENSE.txt new file mode 100644 index 0000000..594d102 --- /dev/null +++ b/castle_farming/textures/LICENSE.txt @@ -0,0 +1,19 @@ +-------------------------------------------- + +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 + +-------------------------------------------- + +Attribution 3.0 Unported (CC BY 3.0) +Copyright (C) 2012-2016 PilzAdam +Copyright (C) 2014-2016 BlockMen +Copyright (C) 2015-2016 MasterGollum +Copyright (C) 2015-2016 Gambit + +castle_straw_dummy.png - derived from farming_straw.png \ No newline at end of file diff --git a/castle_farming/textures/castle_hide.png b/castle_farming/textures/castle_hide.png new file mode 100644 index 0000000..3e6f6c4 Binary files /dev/null and b/castle_farming/textures/castle_hide.png differ diff --git a/castle_farming/textures/castle_straw_bale.png b/castle_farming/textures/castle_straw_bale.png new file mode 100644 index 0000000..ad56330 Binary files /dev/null and b/castle_farming/textures/castle_straw_bale.png differ diff --git a/castle_farming/textures/castle_straw_dummy.png b/castle_farming/textures/castle_straw_dummy.png new file mode 100644 index 0000000..265f532 Binary files /dev/null and b/castle_farming/textures/castle_straw_dummy.png differ -- cgit v1.2.3