Page 1 of 1

[Mod] Letter Blocks [ehlphabet]

Posted: Thu Dec 14, 2017 15:39
by ehlodex
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
Image
Image
Spoiler
Ehlphabet Block (blank)
Image

Ehlphabet Machine
Image
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)

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Thu Dec 14, 2017 15:59
by Linuxdirk
This mod has some letters and numbers already.

viewtopic.php?t=16552

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Thu Dec 14, 2017 16:03
by gpcf
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.

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Thu Dec 14, 2017 16:58
by ehlodex
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.

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Thu Dec 14, 2017 17:06
by ExeterDad
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")

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Thu Dec 14, 2017 17:12
by ehlodex
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!

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Thu Dec 14, 2017 18:43
by ehlodex
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.

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Thu Dec 14, 2017 19:12
by twoelk
some more letter mods on this list : https://wiki.minetest.net/Mods:Learning

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Fri Dec 15, 2017 14:48
by ehlodex
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

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Fri Dec 15, 2017 19:57
by Linuxdirk
I like how clear the letters look and the machine looks good, too.

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Fri Feb 09, 2018 13:43
by gpcf
The mod is now a drop-in replacement for abjphabet, it aliases all abjphabet blocks to ehlphabet.

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Sat Mar 02, 2019 23:33
by gpcf
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/

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Fri Aug 25, 2023 17:03
by sherkhan30452
ehlodex wrote:
Thu Dec 14, 2017 15:39
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
Image
Image
Spoiler
Ehlphabet Block (blank)
Image

Ehlphabet Machine
Image
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)
When are you planning to upload it to contentDB?

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Tue Mar 12, 2024 12:58
by SwissalpS
I've made some changes to the version at https://git.bananach.space/ehlphabet.git/
How can I submit the patch?
My version is at: https://github.com/SwissalpS/ehlphabet.git the is_ground_content branch is the patch.

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Tue Mar 12, 2024 13:28
by Blockhead
SwissalpS wrote:
Tue Mar 12, 2024 12:58
I've made some changes to the version at https://git.bananach.space/ehlphabet.git/
How can I submit the patch?
My version is at: https://github.com/SwissalpS/ehlphabet.git the is_ground_content branch is the patch.
Hi,

As this is a LinuxForks server mod, please prepare the patch for the branch with git format-patch and git send-email to the mailing list on SourceHut. You may have to be patient with it getting into master though, so I can probably recommend hosting a fork in the meanwhile.

A bit of explanation might help - is_ground_content is meant to help with map generation, right? So you intend to use the blocks inside of some kind of mapgen or schematic? (include a rationale in your mail to the list)

Re: [Mod] Letter Blocks [ehlphabet]

Posted: Tue Mar 12, 2024 18:01
by SwissalpS
Thank you for the response. I'll mail the pach soon.

The default of is_ground_content is actually true, so my change is to keep mapgen from removing them.
It only happens in edge-cases, and if your server uses things like jumpdrive, these situations can multiply.