Skip to content
WerDei edited this page Dec 24, 2022 · 9 revisions

Configuration

You can configure the mod using a config file or in-game with a /hats command

Config file

After loading the mod once, open up the serverhats.json file in the config\ folder.
You will be able to change the options listed below.

When you're done, you'll need to either restart the server or type a command to load the new configuration: /hats reload

Command

You can see the value of an option using /hats <option>, and can change it using /hats <option> <value>.
The list of allowed items (allowedItems) can be edited using /hats allowedItems add <item> and /hats allowedItems remove <item> instead.
Changes made with a command take effect immediately.

Options

shiftClickEquipping

A boolean value. When set to false, prevents an allowed item from getting equipped in a head slot when shift-clicking it.

By default, it is set to false.

dispenserEquipping

A boolean value. When set to true, dispensers will equip allowed items directly to the head of a player/mob.

By default, it is set to true

enchanting

A boolean value. When set to true, allowed items can be enchanted on an anvil with "Curse of Vanishing" and "Curse of Binding" enchantments (To be consistent with other wearable items like mob heads or carved pumpkins).

By default, it is set to true

mobsCanEquipHats

A boolean value. When set to false, mobs that can pick up items will not equip them in a helmet slot.

By defult, it is set to false

allowAllItems

A boolean value. When set to true, allows any item to be equipped to a head slot.

By default, it is set to false.

allowedItems

A list of item IDs and item tags. Items listed here are allowed to be equipped in a head slot. Ignored when "allowAllItems" is set to true.

By default, it is set to:

"#banners",
"#beds",
"feather",
"end_rod",
"lightning_rod",
"spyglass",
"cod",
"lead",
"bone",
"conduit",
"amethyst_cluster",
"large_amethyst_bud",
"medium_amethyst_bud",
"small_amethyst_bud",
"acacia_fence_gate",
"birch_fence_gate",
"dark_oak_fence_gate",
"jungle_fence_gate",
"oak_fence_gate",
"spruce_fence_gate",
"crimson_fence_gate",
"warped_fence_gate",

"azalea",
"flowering_azalea",
"scaffolding",
"big_dripleaf",
"slime_block",
"honey_block",
"composter",
"glass",
"white_stained_glass",
"orange_stained_glass",
"magenta_stained_glass",
"light_blue_stained_glass",
"yellow_stained_glass",
"lime_stained_glass",
"pink_stained_glass",
"gray_stained_glass",
"light_gray_stained_glass",
"cyan_stained_glass",
"purple_stained_glass",
"blue_stained_glass",
"brown_stained_glass",
"green_stained_glass",
"red_stained_glass",
"black_stained_glass",
"tinted_glass",