VoxelForge Cozy
What is VoxelForge Cozy ?
It is a port of (https://content.minetest.net/packages/rudzik8/mcl_cozy/). To Voxelforge
What does it do ?
It adds two commands. /sit and /lay allowing you to sit or lay down
Sit and lay using chat commands
It is a port of (https://content.minetest.net/packages/rudzik8/mcl_cozy/). To Voxelforge
It adds two commands. /sit and /lay allowing you to sit or lay down
Much less versatile
I know that this is a VoxelForge adaptation, and I'm completely fine with that. But you completely missed the point of exposing functions.
mcl_cozy
doesn't just provide the chatcommands, it also provides API for other mods to use.Also, you're greatly overengineering things. Condition returns and line break avoidance don't improve readability. They might simplify the code from your standpoint, but I highly doubt any new developer would have a good time looking at it. You decided to limit yourself to just the singular sit/lay animations through
handle_action
. That's fine with the mod being as it is (taking 2 commands as input), but anything more complex wouldn't do (say, a complex dance sequence of sneak+stand+sneak+mine).You could've just done
s/mcl/vlf
on the original mod and it would've been much better.