A little help please?

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

A little help please?

by Tedypig » Mon Mar 11, 2013 11:46

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.
01010100 01100101 01100100 01111001 01110000 01101001 01100111
 

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

by xyz » Mon Mar 11, 2013 11:56

This page answers some of your questions.
 

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

by Tedypig » Mon Mar 11, 2013 12:27

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!
Last edited by Tedypig on Mon Mar 11, 2013 12:27, edited 1 time in total.
01010100 01100101 01100100 01111001 01110000 01101001 01100111
 

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

by xyz » Mon Mar 11, 2013 14:08

Tedypig wrote:4. Material

It seems such property doesn't exist.
 

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

by Tedypig » Mon Mar 11, 2013 14:18

10-4

Thank you.
01010100 01100101 01100100 01111001 01110000 01101001 01100111
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Mon Mar 11, 2013 17:17

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.
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Mon Mar 11, 2013 17:29

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.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Mon Mar 11, 2013 17:36

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.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

by Tedypig » Mon Mar 11, 2013 23:16

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.
01010100 01100101 01100100 01111001 01110000 01101001 01100111
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Tue Mar 12, 2013 01:14

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


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 14 guests

cron