Can I change node parameter on runtime?

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Can I change node parameter on runtime?

by burli » Sun May 15, 2016 15:45

I want to change the parameter of a node at runtime (not replace)

e.g. I have a wooden node, but I want to replace the texture with stone

Is that possible?
 

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

Re: Can I change node parameter on runtime?

by kaeza » Sun May 15, 2016 16:36

It's not possible ATM. There are (were?) some work in a so-called `meta_set_nodedef` branch (don't have a link handy) that would allow modifying node parameters per node (i.e. per block, using node metadata, not the global definition, IIRC), but it's not in a working state AFAIK.
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
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Can I change node parameter on runtime?

by burli » Sun May 15, 2016 16:54

Found this and I think I will find another way cause I don't like this

Storage space; Currently it stores the whole itemdef in the meta.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron