Skip to content

Commit

Permalink
Merge pull request #8 from OgelGames/master
Browse files Browse the repository at this point in the history
Add recipe and better icon for transparent textline
  • Loading branch information
gbl08ma committed Jun 8, 2021
2 parents aad0d5e + 15c8bfd commit 0bdad98
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ local clearscreen = function(pos)
end

local prepare_writing = function(pos)
lcd_info = textlines[minetest.get_node(pos).param2]
local lcd_info = textlines[minetest.get_node(pos).param2]
if lcd_info == nil then return end
local text = minetest.add_entity(
{x = pos.x + lcd_info.delta.x,
Expand Down Expand Up @@ -138,8 +138,8 @@ minetest.register_node("textline:lcd", {
minetest.register_node("textline:hud", {
drawtype = "airlike",
description = "Transparent Textline",
inventory_image = "textline_icon.png",
wield_image = "textline_icon.png",
inventory_image = "textline_hud.png",
wield_image = "textline_hud.png",
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "wallmounted",
Expand Down Expand Up @@ -298,3 +298,15 @@ minetest.register_craft({
{"default:glass","default:glass","default:glass"}
}
})

minetest.register_craft({
type = "shapeless",
output = "textline:lcd",
recipe = {"textline:hud"},
})

minetest.register_craft({
type = "shapeless",
output = "textline:hud",
recipe = {"textline:lcd"},
})
Binary file added textures/textline_hud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0bdad98

Please sign in to comment.