Closed louisroyer closed 4 years ago
Tooltips don't work like that but I'll fix it later.
Ok.
I have another bug related to tooltip when replacement is set with more than 1 item:
Here, I have:
minetest.register_craft({
output = "keyring:keyring",
recipe = {
{ "", "group:wire", "" },
{ "group:wire", "group:key", "group:wire" },
{ "", "group:wire", "" },
},
replacements = {
{ "group:wire", "basic_materials:empty_spool" },
{ "group:wire", "basic_materials:empty_spool" },
{ "group:wire", "basic_materials:empty_spool" },
{ "group:wire", "basic_materials:empty_spool" }
},
})
``` and the line about replacement is desplayed 4 times on each wire, instead of 1 time on each wire.
Fixed: https://github.com/minetest-mods/craftguide/commit/1980fefa50a63e09f6793c840aeb1a87c03f6699
The repeated string is not a bug, the replacements
field supports more than one entry.
You should only keep one entry in your case, it will apply to all group:wire
in your recipe.
By the way, I can't seem to find an item with the wire
group. I looked though the basic_materials
and I can't see any declaration to the wire
group.
By the way, I can't seem to find an item with the
wire
group. I looked though thebasic_materials
and I can't see any declaration to thewire
group.
Be sure to use the latest version of basic_materials
(from today on master).
The repeated string is not a bug, the
replacements
field supports more than one entry. You should only keep one entry in your case, it will apply to allgroup:wire
in your recipe.
I just double checked and this doesn't apply to all: if I keep one entry, only 1 get replaced, and 3 others get consumed.
Oh, you mean I must do { "group:wire", "basic_materials:empty_spool 4"}
, thank you.
You can return back to the previous declaration: https://github.com/minetest-mods/craftguide/commit/e6d1857799ea81bd
Tooltip was displaying "Unknown item" on empty slots when using a replacement in craft.
You can test this by installing basic_materials and looking at the craft for
basic_materials:terracotta_base
.Note: the
R
symbol is printed on each slot and this is weird (I expected it to be only printed on the bucket) but I don't know how to fix this.