What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
I made sure my file(s) follow the Submissions Guidelines
  1. Yes
I named my file(s) correctly (see Filename Conventions)
  1. Yes
xItemLib

The modular custom item library​


xItemLib is a packageable library, allowing for easier creation of custom kart items.
A functional custom item can be made in minutes, thanks to the easy to understand "event" system.
The library takes care of all complex logic related to item distribution, so the creator only has to worry about making the item itself.

Documentation

The library also comes with small quality of life improvements to regular gameplay, seen through console commands:
  • listxitem lists all loaded items and their toggled status,
  • xitemdebugitem (server OP command), the replacement for kartdebugitem, features an improved interface, as well as both name and internal name searching in addition to standard numerical selection,
  • xitemdebugamount (server OP command), which replaces kartdebugamount, is fully uncapped and can give item amounts past 255,
  • xitemdebugrig(server OP command), toggles item rigging when xitemdebugitem is enabled,
  • xitemdebugdistributions (server OP command), shows a graphical distribution debugger when turned on,
  • xitemdebugdistributionsreplay, non-admin variant of
  • xitemdebugdistributions that only works in replays,
  • xitemserverlogrolls logs all item rolls to the log (Hostmod required),
  • xitemdistcalcconga (server OP command), enables an experimental odds calculation function that better determines distance between racers,
  • xitemsmugglerbonus (server OP command), enables smuggle boost and detection when first place racers hold on to speed items,
  • togglexitem (server OP command), which replaces vanilla item toggles, use this to disable items from showing up in the roulette,
  • xitemroulette on/off toggles an improved client sided item roulette which only displays obtainable items at any given time, inspired by a similar feature in CTGP-7,
  • xitemrouletteanim on/off toggles a less static item roulette animation.

To showcase what the library can do, a sampler pack containing various custom items is also available.
xItem_jarate
Jarate
(+ Orbinaut)
A jar containing a strange yellow fluid. Throw it at your opponents to soak them in Jarate! Sodden opponents take Mini-Crits when hit or bumped.
Follow up with the included Orbinaut!
Throw Ahead
/
Drop Behind​
xItem_pipe
Pipe
A warp pipe taken straight from the Mushroom Kingdom.
The magic required for them to function may not exist in the numerous worlds you'll be racing in, so using one as a solid obstacle will do just fine.
Drop Behind​
xItem_launcherBombhei
Mine Cannon
A dangerous cannon fueled by red-hot coals!
Will slowly shoot primed Mines for a set period of time.
Equip​
xItem_kouraBlue
Spiny Shell
You're first and doing so well
But here comes the Spiny Shell!

Immediately chases first place when used, passing by every other racer on it's way. Taking on it's latest incarnation, the Spiny Shell won't land until it has fully locked on to First Place.
Throw Ahead​
xItem_dkrMagnet
DKR Reverse Magnet
A magnet so strong, no kart is safe from it's attraction! Hold the Item button to lock on to a target, and release to make them fly towards you! Be careful, as using it with no target nearby will consume the magnet.
Special​
icnExodia.png
Pot of Greed
"Draw two cards."
Use this magical card to draw two Exodia pieces. Summon Exodia when 5 are collected, and hit everyone ahead! Racers further ahead get hit harder. Swap Exodia pieces for item rolls in a pinch by holding down the Item button!
Special​
gagMicroIcn.png
Eggman Microphone
Use this powerful microphone to play a famous quote from Eggman himself! The power of his announcement spins out anyone ahead of you holding onto an item! If you're being targeted by the Eggman Microphone, use your item before the countdown ends!
Special​
icnPickelAxe.png
Stone Axe
When in main hand:
0.8 Attack Speed
9 Attack Damage
This blocky yet powerful melee weapon is enchanted with Cleaving III, an experimental enchantment that prevents the use of a target's items on hit! Don't forget about critical and sprint attacks!
Equip​
K_ITMILK.png
Mad Milk (+ Orbinaut)
Level 5 Non-Milk Substance
A jug containing a non-milk substance. Throw it at your opponents to soak them in Mad Milk! Sodden opponents will have invulnerability ticks and speed boosts leached when hit.
Follow up with the included Orbinaut!
Throw Ahead
/
Drop Behind​
K_ITPSML.png
Lingering Potion of Small
Pro Voter!
Toss to leave behind a mist cloud on impact. Driving through the mist will cause you to shrink for a period of time! Be careful of driving through yourself!
Throw Ahead​

GitHub repository for the core lua file posted in "Additional information URL."
Extensions (such as Multislot) can be found on the extensions subdirectory on Github.



kart0020.png
kart0023.gif


Credits
xItemLib​
by minenice​
DKR Reverse Magnet custom item​
Jarate item icon, "Mini-Crit!!" text, Pipe item icon​
Miscellaneous Contributions​
by Ashnal​
DarkyBenji​
RetroStation​
JugadorXEI​
Item distribution logic is a lua adaptation of Kart Krew's original code.​
[1.1.0] 2022-06-10​
xItemLib Core
Added
  • xItem Extensions, to further extend and customize the functionality of xItemLib. (documentation coming in the future)
  • Minecraft-styled item cooldown, for use in custom items and extension functions to temporarily disable the use of items.
Changed
  • Added a 16-player cap to item odds distance calculation, in case xItemLib is used in games with more than 16 players.
  • Various fixes and enhancements across the board.
xItemLib Sampler Pack
Added
  • Introducing the Stone Axe! The blocky yet powerful melee weapon is enchanted with Cleaving III, an experimental enchantment that prevents the use of a target's items on hit! Don't forget about critical and sprint attacks!
Changed
  • Mine Cannon Mines no longer hit the user.
  • Mine Cannon explosions use a new visual effect, different from normal Mines.
  • Mine Cannon fires ~66% faster.
  • Mine Cannon no longer has the XIF_POWERITEM flag.
  • Eggman Microphone's HUD elements are tweaked to better convey the effects.
  • Blue Shell tracking auto-switch now happens one second sooner.
  • Portable Pipe comes out of the ground twice as fast, and closer to the user regardless of speed.
  • Pot of Greed can no longer be rolled if someone has already finished the race.
  • Adjusted odds of the Mine Cannon, Eggman Microphone and Pot of Greed
Fixed
  • Issues with Pot of Greed's Exodia sequence causing lua errors have been fixed.
Other
  • Introducing xItem MultiSlot, a sample xItem Extension that gives players more item slots!
  • multislot_amount sets the amount of additional items slots players can have. Set to one extra slot to feel like Mario Kart 8 Deluxe, or two to feel like Mario Kart Tour! Set to 1 by default.
  • multislot_eggbox enables a check against Eggman Monitors giving items in the extra slots. On by default.
  • multislot_powercooldown makes the cooldown for power items (items with the XIF_POWERITEM flag) longer when transferred to the main item slot. On by default.
  • A compatibility extension for Battle Plus is provided with this release, to fix issues with interoperability between xItemLib and Battle Plus. (Note: both xItemLib and dependants, including this compatibility script, must be loaded after Battle Plus for the extension to properly function.)
[1.0.5] 2021-09-13​
Added
  • Added a graphical distribution debugger, can be enabled with xitemdebugdistributions
  • Implemented kart-next's 0th place bug fix​
  • Re-added vanilla item toggle support​
  • Added Pot of Greed to the Sampler Pack. Use to draw two Exodia Pieces. Collect 5 to summon Exodia the Forbidden One​
  • Added the Eggman Microphone to the Sampler Pack. Use to play back a famous quip, and spin out all opponents ahead of you holding an item!​
  • Added Hitfeed support for the following: Jarate, DKR Reverse Magnet, Pot of Greed, Eggman Microphone​
Fixes
  • Fixed the XIF_UNIQUE item flag not working
[1.0.4-b] 2021-08-23​
Fixes
  • Fixed more issues related to jarate effects​
[1.0.4-a] 2021-08-19​
Fixes
  • Fixes issues related to team support with blue shell and jarate effects introduced during Sampler Pack 1.0.4​
[1.0.4] 2021-08-14​
Fixes
  • Jarate throw now properly scales the momentum of the thrown jar according to mobjscale​
[1.0.3-a] 2021-08-06​
Fixes
  • Fixed the Mine Launcher not appearing in the roulette​
[1.0.3] 2021-08-05​
Removed
  • Temporarily disabled compatibility with vanilla console variables as synch issues would happen otherwise​
[1.0.2] [YANKED] 2021-07-22​
Added
  • Vanilla items can now be toggled via the base game's item toggle hud​
Fixes
  • Critical bugfix to the item toggle system

[1.0.1] 2021-07-21​
Added
  • Items can now be toggled via togglexitem. When disabled, they won't show up in the item roulette.​
[1.0.0] 2021-07-20​
  • Release
Author
minenice
Downloads
7,702
Views
21,249
First release
Last update

Share this resource

Latest updates

  1. Pipe Fix (Hotfix)

    xItemLib Sampler Pack Changed Fixed Pipe's item spawning throwing an error in some cases
  2. xItemLib 1.2.0r1: Loose Ends

    xItemLib Core Updated to match the version hosted on GitHub. Added xitemsmugglerbonusmodifier...
  3. Extension Inclusion (Hotfix)

    xItemLib Core Updated to match the version hosted on GitHub. Fixed (re)spawn persistence issue...

Latest reviews

For the record, I would say this is easily on my top 10 list of best mods for this game. I've added countless items to the game because of this tech- from the tf2 teleporter, to super forms, to actual guns and the life it brings to kart cannot be replicated. Thanks for making this!
Upvote 2
Honestly, this was really cool, i heard of the mod but never got to try it but now since i have a server again. I feel like this breathes fresh air into kart. Well done! i hope to see more items added in the future!
Upvote 1
Really good, works quite well. Easy way for others, to make more content for the game.
Upvote 2
Welcome to releases! The tech here is incredible, and I'm glad to see this as a cool resource for others to potentially use, but I'm not sure if the mine thrower lasting this long is such a good idea outside of Mario Kart Tour, and the blue shell... was absolutely something I didn't want to see return, but I appreciate the items being present as a showcase, and I was surprised when holding multiple Mine Launchers deplyed them all at once like they do in Tour! Sadly, I can't personally test how the item pool distributation works in a large netgame, so I can't in full faith judge that part.
Upvote 4
Back
Top