Remove cups (in favor of new cups mod)

master
Wuzzy 2019-08-26 16:40:50 +02:00
parent bd4e2869bd
commit ef0e04ace5
10 changed files with 0 additions and 130 deletions

28
API.md
View File

@ -1,28 +0,0 @@
# API documentation for Minetest Game Plus
Minetest Game Plus provides a simple API for adding more items.
## `mtg_plus.register_cup(subname, description, tiles, craftitem, craft_count, extra_groups, extra_sounds)`
Adds a new cup with itemstring `mtg_plus:cup_<subname>` and optionally a crafting recipe for this cup.
If `craftitem` is non-`nil`, the recipe follows this template:
C.C
.C.
.C.
C = `craftitem`
. = nothing
Yields `craft_count` cups.
### Parameters
* `subname`: Part of the name which will be used to create the cup's itemstring
* `description`: In-game description/tooltip of the cup
* `tiles`: Textures
* `craftitem`: The item source to be used in the crafting recipe. If `nil`, no crafting recipe will be generated
* `craft_count`: How many cups will be crafted at once (only has an effect if `craftitem ~= nil`)
* `extra_groups`: Table of additional groups to assign to this item (optional)
* `extra_sounds`: Table of additional sounds (`SimpleSoundSpec`) to assign to this item (optional)
### Returns
Always `nil`.

View File

@ -24,9 +24,6 @@ This mod is optionally compatible with:
* `doc_items`: For providing item descriptions (incomplete)
* `awards`: More achievements
## API
Programmers can add more stuff by using the very simple API. See `API.md`.
## Credits and licenses
This mod is free software.

View File

@ -1,16 +1,6 @@
local S = minetest.get_translator("mtg_plus")
if minetest.get_modpath("awards") then
awards.register_achievement("mtg_plus_cup_gold", {
title = S("Self-proclaimed Winner"),
description = S("Craft a golden cup."),
icon = "mtg_plus_cup_gold.png",
trigger = {
type = "craft",
item = "mtg_plus:cup_gold",
target = 1
}
})
awards.register_achievement("mtg_plus_goldwood", {
title = S("Rich Carpenter"),
description = S("Craft 100 goldwood."),

View File

@ -1,80 +0,0 @@
local S = minetest.get_translator("mtg_plus")
-- Cups
local cupnodebox = {
type = "fixed",
fixed = {
{-0.3,-0.5,-0.3,0.3,-0.4,0.3}, -- stand
{-0.1,-0.4,-0.1,0.1,0,0.1}, -- handle
{-0.3,0,-0.3,0.3,0.1,0.3}, -- cup (lower part)
-- the 4 sides of the upper part
{-0.2,0.1,-0.3,0.2,0.5,-0.2},
{-0.2,0.1,0.2,0.2,0.5,0.3},
{-0.3,0.1,-0.3,-0.2,0.5,0.3},
{0.2,0.1,-0.3,0.3,0.5,0.3},
}
}
local cupselbox = {
type = "fixed",
fixed = {
{-0.3,-0.5,-0.3,0.3,-0.4,0.3}, -- stand
{-0.1,-0.4,-0.1,0.1,0,0.1}, -- handle
{-0.3,0,-0.3,0.3,0.5,0.3}, -- upper part
}
}
mtg_plus.register_cup = function(subname, description, tiles, craftitem, craft_count, extra_groups, extra_sounds)
local groups = { dig_immediate=3, falling_node=1, }
if extra_groups then
for k,v in pairs(extra_groups) do
groups[k] = v
end
end
local sounds
if default.node_sound_metal_defaults then
sounds = default.node_sound_defaults({
footstep = { name = "default_metal_footstep", gain = 0.3 },
})
else
sounds = default.node_sound_defaults({
footstep = { name = "default_hard_footstep", gain = 0.3 },
})
end
if extra_sounds then
for k,v in pairs(extra_sounds) do
sounds[k] = v
end
end
local itemstring = "mtg_plus:cup_"..subname
minetest.register_node(itemstring, {
description = description,
_doc_items_longdesc = S("A decorational item which can be placed."),
tiles = tiles,
paramtype = "light",
drawtype = "nodebox",
node_box = cupnodebox,
is_ground_content = false,
selection_box = cupselbox,
groups = groups,
sounds = sounds,
})
if craftitem ~= nil then
if craft_count == nil then craft_count = 1 end
minetest.register_craft({
output = "mtg_plus:cup_"..subname.." "..craft_count,
recipe = {
{craftitem, "", craftitem},
{"", craftitem, ""},
{"", craftitem, ""},
}
})
end
end
mtg_plus.register_cup("bronze", S("Bronze Cup"), { "mtg_plus_cup_bronze.png" }, "default:bronze_ingot", 2)
mtg_plus.register_cup("gold", S("Golden Cup"), { "mtg_plus_cup_gold.png" }, "default:gold_ingot", 2)
mtg_plus.register_cup("diamond", S("Diamond Cup"), { "mtg_plus_cup_diamond.png" }, "default:diamond", 1, nil,
default.node_sound_defaults({ footstep = { name = "default_hard_footstep", gain = 0.3 }}))

View File

@ -14,7 +14,6 @@ dofile(path.."/wallfences.lua") -- Walls and fences
dofile(path.."/xpanes.lua") -- Panes (xpanes mod)
dofile(path.."/doors.lua") -- Doors and trapdoors
dofile(path.."/ladders.lua") -- Ladders
dofile(path.."/cups.lua") -- Cups (with API)
-- Support for other mods
dofile(path.."/extras.lua") -- Additional blocks and crafts for optional mods

View File

@ -3,14 +3,12 @@ Aggregated Diamond Block=Aggregieter Diamantblock
Bronze Brick=Bronzeziegel
Bronze Brick Slab=Bronzeziegelplatte
Bronze Brick Stair=Bronzeziegeltreppe
Bronze Cup=Bronzepokal
Copper Brick=Kupferziegel
Copper Brick Slab=Kupferziegelplatte
Copper Brick Stair=Kupferziegeltreppe
Dense Ice Tile=Kompakteiskachel
Desert Stone Brick with Golden Edges=Wüstensteinziegel mit Goldkanten
Diamond Block with Golden Frame=Diamantblock mit Goldrahmen
Diamond Cup=Diamantpokal
Dirty Glass=Schmutziges Glas
Soft Dirt Brick=Weicher Erdziegel
Hardened Dirt Brick=Gehärteter Erdziegel
@ -24,7 +22,6 @@ Gravel Dirt=Kieserde
Gold Brick=Goldziegel
Gold Brick Slab=Goldziegelplatte
Gold Brick Stair=Goldziegeltreppe
Golden Cup=Goldpokal
Golden Ladder=Goldleiter
Copper Ladder=Kupferleiter
Bronze Ladder=Bronzeleiter
@ -127,7 +124,6 @@ Ice window panes are thinner than the full ice windows and neatly connect to eac
Craft 100 goldwood.=Fertigen Sie 100 Goldholz.
Icy steel doors are a combination of ice doors and steel doors which can only be opened and closed by their owners. They are solid, but some of the light hitting icy steel doors can still go through.=Eisstahltüren sind eine Verbindung von Eistüren und Stahltüren, welche nur von ihrem Eigentümer geöffnet werden können. Sie sind solide, aber etwas Licht scheint durch Eisstahltüren hindurch.
A ornamental and mostly transparent block, made by combining glass with gold.=Ein größtenteils durchsichtiger Zierblock, der durch die Kombinierung von Glas mit Gold entstanden ist.
A decorational item which can be placed.=Ein dekorativer platzierbarer Gegenstand.
This decorational ice tile has been crafted in a way that it is partially transparent and looks like a real window.=Diese dekorative Eiskachel wurde so gefertigt, dass sie teilweise durchsichtig ist und wie ein echtes Fenster aussieht.
Small Gold-framed Diamond Block=Kleiner mit Gold umrahmter Diamantblock
Luxurious Adornment=Luxuriöse Verzierung

View File

@ -1,5 +1,4 @@
# textdomain:mtg_plus
A decorational item which can be placed.=
A decorative, semitransparent block. The dirt makes it hard for the sunlight to pass through.=
A fence gate made from precious goldwood. It blocks the path, but it can be opened and easily jumped over. Other fence posts will neatly connect to this fence gate.=
Aggregated Diamond Block=
@ -12,7 +11,6 @@ A particulary strong piece of ladder which allows you to move vertically.=
Bronze Brick=
Bronze Brick Slab=
Bronze Brick Stair=
Bronze Cup=
Build 100 papyrus blocks.=
Can't dig me!=
Cobbled Desert Sandstone=
@ -54,7 +52,6 @@ Dense Ice Tile=
Dense Ice Tile Wall=
Desert Sandstone Brick with Golden Edges=
Desert Stone Brick with Golden Edges=
Diamond Cup=
Dirty Glass=
Flint Block=
Flint Block Slab=
@ -62,7 +59,6 @@ Flint Block Stair=
Gold Brick=
Gold Brick Slab=
Gold Brick Stair=
Golden Cup=
Golden Ladder=
Copper Ladder=
Tin Ladder=

Binary file not shown.

Before

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 511 B