No description
Find a file
Simon Brodtmann fd7a543e1f 1.2.0
2026-04-12 17:15:54 +02:00
module-category-defaults 1.2.0 2026-04-12 17:15:54 +02:00
.editorconfig 1.0.0 2026-04-09 10:10:33 +02:00
.gitignore 1.0.0 2026-04-09 10:10:33 +02:00
README.md Make default_categories available globally in data stage 2026-04-12 16:57:59 +02:00

foundrygg.comDiscordForgejoDownloadsKo-fi


Module category defaults

This library mod sets the vanilla modules categories as allowed_module_categories on all entities that have that value empty. This allows to blacklist special modules from mods that should only be allowed in special buildings from that mod. It basically removes the engine behaviour to allow all module categories if none are specified.

Mod support

In the data stage, the global table ModuleCategoryDefaults is made available. It contains a table default_categories that will be used to apply the defaults. Add or remove values to change the outcome of this mod.

You probably want to add your custom category that you want to be available to all regular machines.