# IScriptFactory.createMorph [← IScriptFactory](index.md) · [← Master](../../wiki.md) createMorph(INBTCompound compound) AbstractMorph Create a morph out of NBT. default createMorph(java.lang.String nbt) AbstractMorph Create a morph out of string NBT. default createUI() IMappetUIBuilder Create a UI. default createUI(IScriptEvent event, java.lang.String function) IMappetUIBuilder Create a UI with a script handler.