Compare commits
10 Commits
2a4c263e60
...
a2d5d22008
Author | SHA1 | Date | |
---|---|---|---|
|
a2d5d22008 | ||
|
032f2774e7 | ||
|
cbc133fb18 | ||
|
b6503cff90 | ||
|
61b5d03040 | ||
|
70dc5f6311 | ||
|
a190dcfe14 | ||
|
33199830fb | ||
|
9be98b854e | ||
|
366a8b5fe0 |
17
.gitattributes
vendored
17
.gitattributes
vendored
@ -1,17 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
||||
* text=auto
|
10
.github/workflows/luacheck.yml
vendored
Normal file
10
.github/workflows/luacheck.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
name: luacheck
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
luacheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
- name: Luacheck
|
||||
uses: lunarmodules/luacheck@master
|
47
.gitignore
vendored
47
.gitignore
vendored
@ -1,47 +0,0 @@
|
||||
# Windows image file caches
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
||||
|
||||
# =========================
|
||||
# Operating System Files
|
||||
# =========================
|
||||
|
||||
# OSX
|
||||
# =========================
|
||||
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
5
.luacheckrc
Normal file
5
.luacheckrc
Normal file
@ -0,0 +1,5 @@
|
||||
read_globals = {
|
||||
"minetest",
|
||||
"default",
|
||||
"ItemStack"
|
||||
}
|
@ -1,14 +1,9 @@
|
||||
=-=-=-=-=-=-=-=-=-=
|
||||
## Castle farm products
|
||||
|
||||
Castles Mod
|
||||
by: Philipbenr And DanDuncombe
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=
|
||||
B: Philipbenr, DanDuncombe, FaceDeer
|
||||
|
||||
Licence: MIT
|
||||
|
||||
see: LICENSE
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=
|
||||
|
||||
Contains farm products useful for decorating a castle:
|
||||
@ -16,5 +11,3 @@ Contains farm products useful for decorating a castle:
|
||||
* Hide wall and floor coverings
|
||||
* Bound straw bale
|
||||
* Straw training dummy
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=
|
@ -1,6 +0,0 @@
|
||||
default
|
||||
farming
|
||||
intllib?
|
||||
wool
|
||||
bucket
|
||||
ropes?
|
@ -1 +0,0 @@
|
||||
Contains farming products useful for decorating a castle
|
@ -1,6 +1,4 @@
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
minetest.register_alias("castle:hides", "castle_farming:hides")
|
||||
|
||||
|
45
intllib.lua
45
intllib.lua
@ -1,45 +0,0 @@
|
||||
|
||||
-- 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
|
4
locale/castle_farming.es.tr
Normal file
4
locale/castle_farming.es.tr
Normal file
@ -0,0 +1,4 @@
|
||||
# textdomain: castle_farming
|
||||
Hides=Escondite
|
||||
Bound Straw=Paja amarrada
|
||||
Training Dummy=Maniqui de Entrenamiento
|
4
locale/castle_farming.pt_br.tr
Normal file
4
locale/castle_farming.pt_br.tr
Normal file
@ -0,0 +1,4 @@
|
||||
# textdomain: castle_farming
|
||||
Hides=Esconde-se
|
||||
Bound Straw=Palha Amarrada
|
||||
Training Dummy=Vaca Parada de Madeira (para Laço)
|
@ -1,30 +0,0 @@
|
||||
# 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 ""
|
4
locale/template.txt
Normal file
4
locale/template.txt
Normal file
@ -0,0 +1,4 @@
|
||||
# textdomain: castle_farming
|
||||
Hides=
|
||||
Bound Straw=
|
||||
Training Dummy=
|
3
mod.conf
3
mod.conf
@ -1 +1,4 @@
|
||||
name = castle_farming
|
||||
depends = default, farming, wool, bucket
|
||||
optional_depends = ropes
|
||||
description = Contains farming products useful for decorating a castle
|
24
straw.lua
24
straw.lua
@ -1,13 +1,11 @@
|
||||
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")
|
||||
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")
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
minetest.register_node("castle_farming:bound_straw", {
|
||||
description = S("Bound Straw"),
|
||||
@ -51,7 +49,11 @@ minetest.register_craft({
|
||||
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",}
|
||||
recipe = {
|
||||
"farming:straw", "farming:straw", "farming:straw",
|
||||
"farming:straw", "farming:straw", "farming:straw",
|
||||
"ropes:ropesegment"
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -72,4 +74,4 @@ minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "castle_farming:straw_dummy",
|
||||
burntime = 10*2 + 4*stick_burn_time
|
||||
})
|
||||
})
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 614 B |
Binary file not shown.
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 732 B |
Binary file not shown.
Before Width: | Height: | Size: 803 B After Width: | Height: | Size: 798 B |
Loading…
x
Reference in New Issue
Block a user