[Mod] Letter Blocks [ehlphabet]

Post Reply
User avatar
ehlodex
New member
Posts: 5
Joined: Sat Dec 02, 2017 20:44
GitHub: ehlodex
IRC: ehlodex
In-game: ehlodex
Location: Pennsylvania, USA

[Mod] Letter Blocks [ehlphabet]

by ehlodex » Post

This is an update/fork of the abjphabet mod

Letter Blocks [ehlphabet] provides 26 uppercase letters from the Roman Alphabet, the Arabic Numerals 0-9, and a small selection of symbols. Included from the original mod is a letter machine to convert blank Ehlphabet Blocks into letter/symbol blocks. Blank blocks and the Letter Machine are both craftable! Unused letters can be crafted back into blank blocks, and blank blocks can be crafted back into paper.

Dependencies: default

Download: https://github.com/ehlodex/ehlphabet/archive/master.zip

GitHub: https://github.com/ehlodex/ehlphabet
License of code: WTFPL (same as abjphabet)
License of media: CC-BY-SA 3.0
+ Spoiler
+ Spoiler
Strings for written blocks are based on the ASCII decimal codes. In LUA, you can find this value with the string.byte() command. To give the letter 'A', use 'ehlphabet:65'. Blank blocks are 'ehlphabet:block'; the Letter Machine is 'ehlphabet:machine'.

2018.02.09 Added abjphabet alias capabilities (gpcf, Och_Noe)
Last edited by ehlodex on Fri Feb 09, 2018 13:38, edited 5 times in total.

User avatar
Linuxdirk
Member
Posts: 2539
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Letter Blocks [ehlphabet]

by Linuxdirk » Post

This mod has some letters and numbers already.

viewtopic.php?t=16552

gpcf
Member
Posts: 353
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [Mod] Letter Blocks [ehlphabet]

by gpcf » Post

Looks good, I hope to have this replace the abjphabet mod, since abhjphabet is quite crap. One bug: The letter machine can be dug while it has stuff in it.

User avatar
ehlodex
New member
Posts: 5
Joined: Sat Dec 02, 2017 20:44
GitHub: ehlodex
IRC: ehlodex
In-game: ehlodex
Location: Pennsylvania, USA

Re: [Mod] Letter Blocks [ehlphabet]

by ehlodex » Post

gpcf wrote:One bug: The letter machine can be dug while it has stuff in it.
I know, but I'm new to Lua and have no idea how to fix it. The machine is basically a copy/paste from abjphabet which has the same problem. If you know what to do, it's yours for the fixing.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Letter Blocks [ehlphabet]

by ExeterDad » Post

Haven't looked at your code. But it should have a can_dig callback that checks if the inventory is empty. If so.. it can be dug :)
inv:is_empty("main")

User avatar
ehlodex
New member
Posts: 5
Joined: Sat Dec 02, 2017 20:44
GitHub: ehlodex
IRC: ehlodex
In-game: ehlodex
Location: Pennsylvania, USA

Re: [Mod] Letter Blocks [ehlphabet]

by ehlodex » Post

Linuxdirk wrote:This mod has some letters and numbers already.

viewtopic.php?t=16552
Naj wrote:And also Letters mod which add transparent letters that you can put on any block : https://github.com/minetest-mods/letters
Wow, these are both great mods, but with a few minor differences. (Admittedly, they would work as great alternatives to ehlphabet and abjphabet.)

Cube Nodes uses frames on each block, and I prefer the seamless look from abjphabet. It also looks like they are only obtainable using the /give or /giveme command... Still a great mod with a great look.

Letters has the small disadvantage of taking up a whole node just for the letter, in addition to the block behind it. It does add lowercase letters, which is not possible with the font I chose (Title Wave). It adds a massive amount of creative dynamic, allowing you to mix-and-match the letter and background.

They seem different enough to warrant a fork of abjphabet, and thank you both for the links!

User avatar
ehlodex
New member
Posts: 5
Joined: Sat Dec 02, 2017 20:44
GitHub: ehlodex
IRC: ehlodex
In-game: ehlodex
Location: Pennsylvania, USA

Re: [Mod] Letter Blocks [ehlphabet]

by ehlodex » Post

ExeterDad wrote:Haven't looked at your code. But it should have a can_dig callback that checks if the inventory is empty. If so.. it can be dug :)
inv:is_empty("main")
You're a hero! It's a script kiddie fix, but the Letter Machine cannot be dug with blocks inside.

User avatar
twoelk
Member
Posts: 1368
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [Mod] Letter Blocks [ehlphabet]

by twoelk » Post

some more letter mods on this list : https://wiki.minetest.net/Mods:Learning

User avatar
ehlodex
New member
Posts: 5
Joined: Sat Dec 02, 2017 20:44
GitHub: ehlodex
IRC: ehlodex
In-game: ehlodex
Location: Pennsylvania, USA

Re: [Mod] Letter Blocks [ehlphabet]

by ehlodex » Post

2017.12.15.1445:
Added paramtype2 = "facedir" to create a "front" when placing the machine
Replaced placeholder textures with newer versions (they're still bad, but it looks like a machine now)
Updated screenshots and recipe images to show new textures

User avatar
Linuxdirk
Member
Posts: 2539
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Letter Blocks [ehlphabet]

by Linuxdirk » Post

I like how clear the letters look and the machine looks good, too.

gpcf
Member
Posts: 353
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [Mod] Letter Blocks [ehlphabet]

by gpcf » Post

The mod is now a drop-in replacement for abjphabet, it aliases all abjphabet blocks to ehlphabet.

gpcf
Member
Posts: 353
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [Mod] Letter Blocks [ehlphabet]

by gpcf » Post

Since the original github has been archived, we now have a new hosted version, which includes greek letters (courtesy of Och_Noe):
https://git.bananach.space/ehlphabet.git/

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests