Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions signs/crafts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,24 @@ minetest.register_craft({
}
})

local dyes = {
mat.dye_white,
mat.dye_grey,
mat.dye_orange,
mat.dye_brown,
mat.dye_dark_grey,
mat.dye_yellow,
mat.dye_green,
mat.dye_red,
}
for i, dye in ipairs(dyes) do
minetest.register_craft({
type = "shapeless",
output = minetest.itemstring_with_palette("signs:paper_poster", (i-1) * 32),
recipe = {"signs:paper_poster", dye},
})
end

minetest.register_craft({
output = 'signs:label_small',
recipe = {
Expand Down
2 changes: 2 additions & 0 deletions signs/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ local models = {
"signs_poster_sides.png", "signs_poster.png" },
inventory_image = "signs_poster_inventory.png",
use_texture_alpha = "clip",
paramtype2 = "colorfacedir",
palette = "signs_poster_palette.png",
groups= { dig_immediate = 2 },
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
Expand Down
Binary file modified signs/textures/signs_poster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added signs/textures/signs_poster_palette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion signs_api/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function signs_api.on_place_direction(itemstack, placer, pointed_thing)

local ndir, test

if ndef and ndef.paramtype2 == "facedir" then
if ndef and (ndef.paramtype2 == "facedir" or ndef.paramtype2 == "colorfacedir") then
-- Wall pointed
ndir = minetest.dir_to_facedir(bdir, true)

Expand Down