Merge pull request 'add UI craft type for xdecor:honey' (#13) from Niklp/xdecor-libre:master into master

Reviewed-on: https://codeberg.org/Wuzzy/xdecor-libre/pulls/13
This commit is contained in:
Wuzzy 2023-07-10 16:32:25 +00:00
commit 2631acdcb7
6 changed files with 22 additions and 1 deletions

View File

@ -63,6 +63,7 @@ Your tool last longer=
Your tool digs faster=
Artificial Hive=
Honey=
Made by bees=
The bees are busy making honey.=
The bees are looking for flowers.=
The bees want to pollinate more flowers.=

View File

@ -63,6 +63,7 @@ Your tool last longer=Ihr Werkzeug hält länger
Your tool digs faster=Ihr Werkzeug arbeitet schneller
Artificial Hive=Künstlicher Bienenstock
Honey=Honig
Made by bees=Hergestellt von Bienen
The bees are busy making honey.=Die Bienen sind beschäftigt, Honig herzustellen.
The bees are looking for flowers.=Die Bienen halten nach Blumen Ausschau.
The bees want to pollinate more flowers.=Die Bienen wollen mehr Blumen bestäuben.

View File

@ -63,6 +63,7 @@ Your tool last longer=Votre outil dure plus longtemps
Your tool digs faster=Votre outil creuse plus vite
Artificial Hive=Ruche artificielle
Honey=Miel
Made by bees=
The bees are busy making honey.=
The bees are looking for flowers.=
The bees want to pollinate more flowers.=

View File

@ -63,6 +63,7 @@ Your tool last longer=Il tuo utensile dura di più
Your tool digs faster=Il tuo utensile scava più rapidamente
Artificial Hive=Favo artificiale
Honey=Miele
Made by bees=
The bees are busy making honey.=
The bees are looking for flowers.=
The bees want to pollinate more flowers.=

View File

@ -2,5 +2,5 @@ name = xdecor
title = X-Decor-libre
description = A decoration mod meant to be simple and well-featured (libre version).
depends = default, bucket, doors, farming, stairs, xpanes
optional_depends = playerphysics, player_api, fire, moreblocks, mesecons
optional_depends = playerphysics, player_api, fire, moreblocks, mesecons, unified_inventory
min_minetest_version = 5.7.0

View File

@ -182,3 +182,20 @@ minetest.register_craft({
{"group:stick", "group:stick", "group:stick"}
}
})
if minetest.get_modpath("unified_inventory") then
unified_inventory.register_craft_type("xdecor:hive", {
description = S("Made by bees"),
icon = "hive_bee.png",
width = 1,
height = 1,
uses_crafting_grid = false
})
unified_inventory.register_craft({
output = "xdecor:honey",
type = "xdecor:hive",
items = {"xdecor:hive"},
width = 1
})
end