Bug Fixes
Turned off debug on all commands
Round
lib_between since it throws an error if the number isn't an int.
Added:
lib_grow_mushroom and lib_grow_fungus
They check if a mushroom or fungus can be grown before trying to grow it, which prevents the "could not generate tree at location" error the generate_tree mech loves to throw.
lib_is_material
Checks if a location in a direction is a material. instead of needing to do
<[loc].up.material.name> == my_material all over the place, you can do
<[loc].proc[lib_is_material].context[up|dirt]> or whatever. Good for, for example, checking if a fungus is on the block it's supposed to be on, or something like that. Might remove it because it might be a bit situational but seems useful.
lib_is_air
Checks if a location is an air block. I do this so often, so I figured it'd be useful.
lib_full_volume
Gets the full volume of a cuboid, including submembers. I'll probably end up making it handle all the polygons, but right now it only handles cuboids.
face_to_vector
The opposite of
vector_to_face. Takes something like "up" and turns into into a 1 length vector (0,1,0) which can be used in relative or whatever you want it for.
Removed:
lib_is_player
The check was so simple, it wasn't worth having an entire proc for.