A library that lets you spawn dolls.
Meant for use in tech scripts only.
require "/scripts/dollGenerator.lua"
doll.generate(entity.id())
doll.generate(doll.nearestPlayer())
doll.generate(world.entityPortrait(entity.id(), "full"))
You can use this library as a dependency, as it is simply a mod. You can also just put the files in your own mod, if you prefer that.
"requires" : [ "DollGenerator" ],
"includes" : [ "DollGenerator" ],
Special thanks to Mappo, Apple and the 100 people that have been running around holding dolls for the idea.