-- Autogenerated Essential => Figura script
-- Feature "armor" w/ args {['head'] = true,['body'] = true,['arms'] = true,['legs'] = true}
do

  local hide = {['head'] = true,['body'] = true,['arms'] = true,['legs'] = true}
  
  function player_init()
    if hide.head then armor_model.HELMET.setEnabled(false); armor_model.HEAD_ITEM.setEnabled(false) end
    if hide.body then armor_model.CHESTPLATE.setEnabled(false) end
    if hide.legs then armor_model.LEGGINGS.setEnabled(false) end
  end
  
  
  if events and events.TICK then -- rewrite
    if hide.head then vanilla_model.HELMET:setVisible(false) end
    if hide.body then vanilla_model.CHESTPLATE_BODY:setVisible(false) end
    if hide.arms then vanilla_model.CHESTPLATE_LEFT_ARM:setVisible(false) vanilla_model.CHESTPLATE_RIGHT_ARM:setVisible(false) end
    if hide.legs then vanilla_model.LEGGINGS:setVisible(false) vanilla_model.BOOTS:setVisible(false) end
  end
  
end
