VanessaE wrote:Can you put your code up on github? Makes it easier for the rest of us to grab updates. :-)
I probaby will if it gets moved to release, although I am not sure whether to replace wieldview in the 3d_armor modpack with this.
I have just made some more updates as it goes, i corrected the rotations of default items that looked wrong.
This has been done by including a table of override rotations.
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
wield3d_rotation = {
["default:torch"]=315,
["default:sapling"]=315,
["flowers:dandelion_white"]=315,
["flowers:dandelion_yellow"]=315,
["flowers:geranium"]=315,
["flowers:rose"]=315,
["flowers:tulip"]=315,
["flowers:viola"]=315,
["default:shovel_wood"]=270,
["default:shovel_stone"]=270,
["default:shovel_steel"]=270,
["default:shovel_bronze"]=270,
["default:shovel_mese"]=270,
["default:shovel_diamond"]=270,
["bucket:bucket_empty"]=270,
["bucket:bucket_water"]=270,
["bucket:bucket_lava"]=270,
["screwdriver:screwdriver"]=270,
["screwdriver:screwdriver1"]=270,
["screwdriver:screwdriver2"]=270,
["screwdriver:screwdriver3"]=270,
["screwdriver:screwdriver4"]=270,
}
Not exactly ideal but it's all I can think of for now. Server admins can extend this table to include any additional items not already covered. Alternatively modders could add rotational support for thier own items in code.
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
if minetest.get_modpath("wield3d") then
wield3d_rotation["my_cool_mod:my_awesome_tool"]=270
end