Skip to content

NPCAppearanceCommand

Package: com.hypixel.hytale.server.npc.commands

public class NPCAppearanceCommand extends NPCWorldCommandBase

Implements /npc appearance. Changes the model/appearance of a target NPC at runtime by calling NPCEntity.setAppearance().

ArgumentTypeRequiredDescription
modelModelAssetyesThe model asset to apply to the NPC
public NPCAppearanceCommand()

Registers as sub-command "appearance" with translation key "server.commands.npc.appearance.desc".

@Override
protected void execute(@Nonnull CommandContext context, @Nonnull NPCEntity npc, @Nonnull World world, @Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref)

Retrieves the model argument and calls npc.setAppearance(ref, model, store).

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.