stress [dev]

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

stress [dev]

by xyz » Sat Mar 02, 2013 11:53

stress is a jQuery-like library for Minetest. More info/documentation here.
Experimental implementation
Some examples (working ones):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
_("default:dirt"):on("place", function(me)
    me:name("default:dirt_with_grass")
end)


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
_({0, 0, 0}, {1, 1, 1}):name("air")


Also see an example mod.

To use stress in your mods just depend on it — add
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
stress

to depends.txt

Try not to distribute stress with your mods, instead, link to my github repo.
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Sat Mar 02, 2013 12:13

Great job, xyz! Can be handy to shrink mods.
But is that really necessary? I mean, modders community grew so large, 'cause of Lua being easy to learn. This *stress certainly makes it harder to read any code therefore stopping many peoples from learning it's features and syntax. That may result in *stress being unused by a good part of modders.
On the other hand, a converter to *stress would be great.
Anyway, that just my thoughts, no need to reply.
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Sat Mar 02, 2013 12:21

4aiman wrote:Great job, xyz! Can be handy to shrink mods.
But is that really necessary? I mean, modders community grew so large, 'cause of Lua being easy to learn. This *stress certainly makes it harder to read any code therefore stopping many peoples from learning it's features and syntax. That may result in *stress being unused by a good part of modders.
On the other hand, a converter to *stress would be great.
Anyway, that just my thoughts, no need to reply.

I was actually trying to make the syntax more simple than bare lua API. Well, it seems I failed at that.
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Sat Mar 02, 2013 12:52

It is simpler but just not for all. Please, keep working on this!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 4 guests

cron