Add a separate image for a written book.
authorAuke Kok <sofar@foo-projects.org>
Tue, 8 Dec 2015 00:29:33 +0000 (16:29 -0800)
committersfan5 <sfan5@live.de>
Sat, 12 Dec 2015 18:56:56 +0000 (19:56 +0100)
Since written books are quite different from empty books, the
visual clue that they are different items is really needed in-game.

I've added a "clasp" or "belt-with-buckle" like element to the
png from default_book, keeping them very similar but also
immediately recgnizably different.

I added the new texture to blockmen's license list since it's
obviously derivative of his work.

The PNG was run through a minimizer/optimizer to save space.

mods/default/README.txt
mods/default/craftitems.lua
mods/default/textures/default_book_written.png [new file with mode: 0644]

index f0dea6825ed2f307566f3914095afa82fd334690..5b07a36ca8c4ea792fa0b453f66df62bf51ea199 100644 (file)
@@ -148,6 +148,9 @@ BlockMen (CC BY-SA 3.0):
   heart.png
   gui_*.png
 
+sofar (CC BY-SA 3.0):
+  default_book_written.png, based on default_book.png
+
 Neuromancer (CC BY-SA 2.0):
   default_cobble.png, based on texture by Brane praefect
   default_mossycobble.png, based on texture by Brane praefect
index c41129d33bd953413a782d9ee66d254c5ecb07ab..bbe11f5234cfeb14e4e7086cd9343da2c4fda25d 100644 (file)
@@ -82,7 +82,7 @@ minetest.register_craftitem("default:book", {
 
 minetest.register_craftitem("default:book_written", {
        description = "Book With Text",
-       inventory_image = "default_book.png",
+       inventory_image = "default_book_written.png",
        groups = {book=1, not_in_creative_inventory=1},
        stack_max = 1,
        on_use = book_on_use,
diff --git a/mods/default/textures/default_book_written.png b/mods/default/textures/default_book_written.png
new file mode 100644 (file)
index 0000000..d843e5f
Binary files /dev/null and b/mods/default/textures/default_book_written.png differ