Page 1 of 1

A little help please?

PostPosted: Mon Mar 11, 2013 11:46
by Tedypig
I wrote this to Aqua (because of his/her modding helper thingy) a couple of days ago and he/she never answered, so I will try my luck in the forums.

I have a few questions.

1. drawtype... What all types are there, and what does each one do?
2. sunlight_propagates..... What does this do?
3. paramtype..... Same question as #1
4. material = minetest.digprop_constanttime(1.0)....What is this?
5. groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,}....What do the groups/numbers mean, and are there more?

I get the rest, but these confuses me.


Thanks in advance. --Tedypig

P.S. I know I ask a lot of questions, and I'm sorry. I WILL learn, and you all have been so helpful. I want to thank all of you from the bottom of my heart. I have never met a group of people so nice and helpful. Thank you.

PostPosted: Mon Mar 11, 2013 11:56
by xyz
This page answers some of your questions.

PostPosted: Mon Mar 11, 2013 12:27
by Tedypig
xyz wrote:This page answers some of your questions.


Thank you xyz. Although one of my questions was not answered.

4. Material.

Edit: That wiki is effing amazing! I learned so much in a 10-15 minute time frame. THANK YOU!

PostPosted: Mon Mar 11, 2013 14:08
by xyz
Tedypig wrote:4. Material

It seems such property doesn't exist.

PostPosted: Mon Mar 11, 2013 14:18
by Tedypig
10-4

Thank you.

PostPosted: Mon Mar 11, 2013 17:17
by prestidigitator
Where you can't find stuff in the wiki, look at the file "lua_api.txt" that comes with the Minetest download. There's a lot of info there that hasn't made it to the wiki yet.

An interesting little gotcha I ran into yesterday is that the "paramtype" has to be "light" for any node whose "drawtype" is "node_box". This'll make it glow in the dark a bit (depending on the brightness of the texture?), but the alternative is to have almost zero lighting on the object even at high noon. This seems to be a bug to me, but I don't really see anyone mentioning it anywhere, so perhaps it is being treated like a feature.

PostPosted: Mon Mar 11, 2013 17:29
by Topywo
Tedypig wrote:4. material = minetest.digprop_constanttime(1.0)....What is this?
5. groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,}


I think 4 material is the predecessor of 5 groups. A deprecated way to decide how long it takes to break a block.

PostPosted: Mon Mar 11, 2013 17:36
by kaeza
prestidigitator wrote:Where you can't find stuff in the wiki, look at the file "lua_api.txt" that comes with the Minetest download. There's a lot of info there that hasn't made it to the wiki yet.

An interesting little gotcha I ran into yesterday is that the "paramtype" has to be "light" for any node whose "drawtype" is "node_box". This'll make it glow in the dark a bit (depending on the brightness of the texture?), but the alternative is to have almost zero lighting on the object even at high noon. This seems to be a bug to me, but I don't really see anyone mentioning it anywhere, so perhaps it is being treated like a feature.

Indeed, it is a bug (or misfeature). It also happens for other drawtypes. Confirmed with nodebox and raillike.

PostPosted: Mon Mar 11, 2013 23:16
by Tedypig
prestidigitator wrote:Where you can't find stuff in the wiki, look at the file "lua_api.txt" that comes with the Minetest download. There's a lot of info there that hasn't made it to the wiki yet.

An interesting little gotcha I ran into yesterday is that the "paramtype" has to be "light" for any node whose "drawtype" is "node_box". This'll make it glow in the dark a bit (depending on the brightness of the texture?), but the alternative is to have almost zero lighting on the object even at high noon. This seems to be a bug to me, but I don't really see anyone mentioning it anywhere, so perhaps it is being treated like a feature.



Well, I don't think it's the wiki. It's the link that xyz put in this topic. I learned SOOO much from it in a few minutes.

PostPosted: Tue Mar 12, 2013 01:14
by prestidigitator
Tedypig wrote:Well, I don't think it's the wiki. It's the link that xyz put in this topic. I learned SOOO much from it in a few minutes.

Yep. Just letting you know that a great deal of the stuff from that page (and the rest of the stuff for the Lua/modding on the wiki) is derived from the information in the "lua_api.txt" file. There's still a TON of information in that file—both about nodes and other stuff—that has yet to find its way to the wiki, too. If and when you find the information on the wiki lacking, "lua_api.txt" would probably be the first place to look for more. Next would be the Lua code for "builtin" and the mods that come with the game. Next would be the source code. And certainly a few pointed questions on the forums along the way can help too. :-)