[Mod] Letter Blocks [ehlphabet]

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

[Mod] Letter Blocks [ehlphabet]

by ehlodex » 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

+ Screenshots

+ Recipes


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: 1651
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk
 

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

Re: [Mod] Letter Blocks [ehlphabet]

by gpcf » Thu Dec 14, 2017 16:03

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
Location: Pennsylvania, USA
GitHub: ehlodex
IRC: ehlodex
In-game: ehlodex

Re: [Mod] Letter Blocks [ehlphabet]

by ehlodex » Thu Dec 14, 2017 16:58

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
Location: New Hampshire U.S.A
In-game: ExeterDad

Re: [Mod] Letter Blocks [ehlphabet]

by ExeterDad » Thu Dec 14, 2017 17:06

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
Location: Pennsylvania, USA
GitHub: ehlodex
IRC: ehlodex
In-game: ehlodex

Re: [Mod] Letter Blocks [ehlphabet]

by ehlodex » Thu Dec 14, 2017 17:12

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
Location: Pennsylvania, USA
GitHub: ehlodex
IRC: ehlodex
In-game: ehlodex

Re: [Mod] Letter Blocks [ehlphabet]

by ehlodex » Thu Dec 14, 2017 18:43

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: 1256
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
GitHub: twoelk
IRC: twoelk
In-game: twoelk
 

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

Re: [Mod] Letter Blocks [ehlphabet]

by ehlodex » Fri Dec 15, 2017 14:48

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: 1651
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk
 

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

Re: [Mod] Letter Blocks [ehlphabet]

by gpcf » Fri Feb 09, 2018 13:43

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


Return to Mod Releases



Who is online

Users browsing this forum: Chibi ghost and 8 guests