[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
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)
Last edited by ehlodex on Fri Feb 09, 2018 13:38, edited 5 times in total.

User avatar
Linuxdirk
Member
Posts: 3219
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: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
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.

twoelk
Member
Posts: 1482
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: 3219
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: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
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: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
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/

User avatar
sherkhan30452
New member
Posts: 1
Joined: Sat Jul 29, 2023 10:24

Re: [Mod] Letter Blocks [ehlphabet]

by sherkhan30452 » Post

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?
cdb_bbb54c6511f1

User avatar
SwissalpS
New member
Posts: 6
Joined: Tue Feb 09, 2016 17:44
GitHub: SwissalpS
IRC: SwissalpS
In-game: SwissalpS

Re: [Mod] Letter Blocks [ehlphabet]

by SwissalpS » Post

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.
:D

User avatar
Blockhead
Member
Posts: 1684
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: [Mod] Letter Blocks [ehlphabet]

by Blockhead » Post

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)
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
SwissalpS
New member
Posts: 6
Joined: Tue Feb 09, 2016 17:44
GitHub: SwissalpS
IRC: SwissalpS
In-game: SwissalpS

Re: [Mod] Letter Blocks [ehlphabet]

by SwissalpS » Post

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.
:D

Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests