Add 'castle_farming' mod from 'castle' modpack

This commit is contained in:
AntumDeluge 2017-05-18 18:29:13 -07:00
parent 137e84dda8
commit 40bae77155
15 changed files with 228 additions and 0 deletions

View File

@ -170,6 +170,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* spawneggs
* castle
* mp_castle/
* [castle_farming][] ([MIT][lic.castle_farming]) -- version [a190dcf Git][ver.castle_farming] *2017-04-21*
* [crafting_bench][] ([MIT][lic.crafting_bench]) -- version [3aa4cfb Git][ver.crafting_bench] *2017-02-28* ([patched][patch.crafting_bench])
* [Creatures MOB-Engine][cme] ([zlib / CC-BY-SA][lic.cme]) -- version: [2.3.1-0-e3502a1 Git][ver.cme] *2016-02-16* ([patched][patch.cme])
* mp_cme/
@ -227,6 +228,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[bookmarks_gui]: http://cornernote.github.io/minetest-bookmarks_gui/
[bridges]: https://forum.minetest.net/viewtopic.php?t=3488
[campfire]: https://forum.minetest.net/viewtopic.php?t=10569
[castle_farming]: https://github.com/minetest-mods/castle_farming
[character_creator]: https://forum.minetest.net/viewtopic.php?t=13138
[chatlog]: https://forum.minetest.net/viewtopic.php?t=6220
[christmas]: https://forum.minetest.net/viewtopic.php?t=3950
@ -336,6 +338,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[lic.bookmarks_gui]: mods/ui/bookmarks_gui/LICENSE
[lic.bridges]: mods/buildings/bridges/README.md
[lic.campfire]: mods/campfire/README.md
[lic.castle_farming]: mods/mp_castle/castle_farming/LICENSE
[lic.character_creator]: mods/player_visuals/character_creator/license.txt
[lic.christmas]: mods/buildings/christmas/LICENSE.txt
[lic.cme]: mods/mp_cme/LICENSE.txt
@ -420,6 +423,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.bookmarks_gui]: https://github.com/cornernote/minetest-bookmarks_gui/tree/d369dba
[ver.bridges]: https://github.com/Sokomine/bridges/tree/5b5f475
[ver.campfire]: https://github.com/Napiophelios/campfire/tree/b45acd2
[ver.castle_farming]: https://github.com/minetest-mods/castle_farming/tree/a190dcf
[ver.character_creator]: https://github.com/Rui-Minetest/character_creator/tree/0c0e187
[ver.christmas]: https://github.com/TheZenKitteh/minetest-christmas/tree/d3bd872
[ver.cme]: https://github.com/BlockMen/cme/tree/e3502a1

View 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.

View File

@ -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
=-=-=-=-=-=-=-=-=-=

View File

@ -0,0 +1,6 @@
default
farming
intllib?
wool
bucket
ropes?

View File

@ -0,0 +1 @@
Contains farming products useful for decorating a castle

View 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' }
}
})

View File

@ -0,0 +1,4 @@
local MP = minetest.get_modpath(minetest.get_current_modname())
dofile(MP.."/hides.lua")
dofile(MP.."/straw.lua")

View 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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,75 @@
minetest.register_alias_force("cottages:straw", "farming:straw")
minetest.register_alias_force("castle:straw", "farming:straw")
minetest.register_alias_force("darkage:straw", "farming:straw")
minetest.register_alias_force("cottages:straw_bale", "castle_farming:bound_straw")
minetest.register_alias_force("darkage:straw_bale", "castle_farming:bound_straw")
minetest.register_alias_force("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
})

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B