Ok I think I see where you are comming from, you dont understand how this works entirely, so I will explain it to you
theres the main modules which are directly chickynoid mods, Client and Server Inventory modules, These modules have a function called self:Setup(), this function will get called upon calling Chickynoid:Setup(), To make sure your mods get Setup you must register them first, refer to this example script for my game
local ServerStorage = game:GetService("ServerStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local Packages = ReplicatedFirst.Packages
local Chickynoid = require(Packages.Chickynoid).ChickynoidServer
local ServerMods = require(Packages.Chickynoid.Server.ServerMods)
Chickynoid:RecreateCollisions(workspace:FindFirstChild("GameArea"))
ServerMods:RegisterMod("servermods", ServerScriptService.Examples.ServerMods.UseNicerHumanoid)
ServerMods:RegisterMods("characters", ReplicatedFirst.Examples.Characters)
--ServerMods:RegisterMod("servermods", ServerScriptService.Examples.ServerMods.Health)
ServerMods:RegisterMod("servermods", ServerScriptService.Examples.MyMods.TMG)
ServerMods:RegisterMod("servermods", ServerScriptService.Examples.MyMods.ServerInventory)
ServerMods:RegisterMod("servermods", ServerScriptService.Examples.MyMods.ServerCommands)
Chickynoid:Setup()
In the Setup function you put whatever code you want to run, in order for your mod to work properly, also you can assign mods a priority to choose which run first and so on.
Inside the mod there is a CTool module, this means theres an object class created, this module contains a setup function too which is called by the Setup function of the Inventory mod
Theres a constructor function for creating your CTools, then you can also hook up code to the events of a CTool.
If you wanna create a class use the sword class as a base and make sure to hook up any code for your class into the Equipped event so it makes your Ctool do something upon being equipped
Keep in mind theres both a client and server sided version of the module
Theres also more to cover such as processing commands, handling events and blah blah blah.