param2 and paramtype2 question
param2 and paramtype2 question
are these for 0.4.17+? I tried to use them using 0.4.16 but did not notice any difference in the visual display of the 'plantlike' drawtype.
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: param2 and paramtype2 question
Is what for 0.4.17+?
Re: param2 and paramtype2 question
drawtype = "plantlike",
param2 = 3,
paramtype2 = "meshoptions",
no change in appearance of node using these parameters
param2 = 3,
paramtype2 = "meshoptions",
no change in appearance of node using these parameters
Re: param2 and paramtype2 question
it doesn't work like that. the nodedef table API does not know about `param2`.KCoombes wrote:drawtype = "plantlike",
param2 = 3,
paramtype2 = "meshoptions",
no change in appearance of node using these parameters
You can use `place_param2 = N` so that user-placed nodes get a default param2 value. Or you can modify the mod code such that `minetest.set_node(pos, {name = "nodename", param2 = N})` ...
Check out `crops` for instance:
https://github.com/minetest-mods/crops/ ... potato.lua
Re: param2 and paramtype2 question
Ok, so https://github.com/minetest/minetest/bl ... i.txt#L947 is incorrect - gotcha.sofar wrote:
it doesn't work like that. the nodedef table API does not know about `param2`.
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: param2 and paramtype2 question
It's not incorrect, it just doesn't say where to put param2. That's said above: https://github.com/minetest/minetest/bl ... i.txt#L899
Who is online
Users browsing this forum: No registered users and 15 guests