No description
  • Java 74.8%
  • Python 24.7%
  • JavaScript 0.3%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dion 064616998a
All checks were successful
Build / build (push) Successful in 3m1s
Docs: refer to the casino as MakeItRoll
2026-10-22 14:13:19 +02:00
.forgejo Docs: refer to the casino as MakeItRoll 2026-10-22 14:13:19 +02:00
gradle/wrapper
src/main Lab Notebook research tree: earn research points and spend them on late-game unlocks (lab tiers, catalysts, refining, exotic additives, synergies, tier V, wheel groups, Horse Mill, automation); research-map screen mode; 2 new advancements 2026-10-18 01:02:18 +02:00
tools CI: publish releases on version tags the same way as the Thaumcraft repo 2026-10-19 22:10:17 +02:00
.gitattributes
.gitignore
build.gradle
CLAUDE.md Docs: refer to the casino as MakeItRoll 2026-10-22 14:13:19 +02:00
gradle.properties
gradlew
gradlew.bat
README.md Docs: refer to the casino as MakeItRoll 2026-10-22 14:13:19 +02:00
RELEASE_NOTES.md Docs: refer to the casino as MakeItRoll 2026-10-22 14:13:19 +02:00
settings.gradle

Druggo: Drug Mod for NeoForge 1.21.1 (modid drugmod)

NeoForge 21.1.x for Minecraft 1.21.1, Java 21. Drugs, labs, addiction, dealers, brewing/bar, addict crews, rehab.

Companion mod: MakeItRoll (makeitroll), in its own repo MakeItRoll: slot machines, screaming pachinko, player-built casinos, NPC gamblers, tables, arcade. Each mod works alone. Install both for the full experience: the casino then also sells drug and liquor prizes, has Drug and Liquor machine themes, reacts to drunkenness and paranoia, your addicts can gamble, and gambling addiction is treated at the Drug Mod's Rehab Center. The Drug Mod's Cook Book shows its Casino chapter only when the casino is installed. See CLAUDE.md for how the two talk to each other.

Build & run

./gradlew build                 # jar in build/libs/
./gradlew runClient             # test client
./gradlew runServer             # dedicated server test (checks no client classes leak)

Generated assets: tools/build_assets.sh.

What's in Phase 1

  • Cannabis: seeds from grass (5%), crop, buds, Drying Rack, Grinder, Press -> Joint, Brownie, Hash
  • Psilocybe mushrooms (Dark Forest, old taigas, caves; spread on mycelium) -> Dried Shrooms
  • Opium Poppy (plains/meadow, shear mature pods for latex) -> Opium
  • Custom effects: Munchies, Numb, Paranoia, Comedown, Withdrawal, Blackout
  • Addiction, tolerance, comedown, withdrawal, overdose (Blackout / death, configurable)
  • Detox Tea, The Cook Book (vanilla book screen)
  • Server config: drugmod-server.toml

Test checklist

  1. Creative tab "Drug Mod" shows all items with textures.
  2. Break grass until seeds drop; plant, bone meal, harvest buds.
  3. Drying Rack: right-click buds on, wait 2 min, empty hand to take dried buds. Items show on the rack.
  4. Grinder: load dried bud, empty-hand click 4x -> ground cannabis pops out. Sneak + empty hand returns input.
  5. Press: load 4+ dried buds, click 8x -> hash.
  6. Craft joint (dried bud + rolling paper), smoke it: Regeneration, Munchies, Luck; Slowness after.
  7. Smoke 5+ joints fast -> Blackout + random teleport. Keep going -> overdose death message.
  8. Opium: Numb hides health bar and reduces damage.
  9. Shrooms: Paranoia after the trip (fake mob sounds).
  10. Detox Tea clears addiction and Withdrawal.
  11. New world: find Opium Poppies in plains, glowing mushrooms in Dark Forest.
  12. runServer starts without crashing.

Phase 2 test checklist

  1. Craft Solvent Flask, Volatile Salts, Baking Soda, Lab Bench, Fume Hood, Crystallizer, Extractor.
  2. Lab Bench GUI opens; coal in fuel slot, + raises target heat, red bar follows slowly and drifts.
  3. Meth: 3 Volatile Salts (one stack) + Solvent Flask, heat 6-7. Bell + "STIR NOW!" -> Stir. Output Crude Meth with purity tooltip; empty glass bottle returned.
  4. No Fume Hood above -> poison + message. Fume Hood 1-3 blocks above -> no poison.
  5. Push heat to 10 during Flakka -> OVERHEATING, then explosion (no block damage by default).
  6. Crystallizer: right-click crude product in, wait, empty hand takes final product (same purity). Meth tooltip says Brown/White/Blue.
  7. Jungle: Coca Bushes, pick leaves. Extractor: leaves + Solvent Flask -> Coca Paste -> Crystallizer -> Cocaine.
  8. Harvest mature wheat in rain -> Ergot sometimes. LSD chain works, Crystallizer gives 9 tabs.
  9. Effects: Meth (can't sleep), Flakka (auto-attacks mobs, not players by default; lifesteal), MDMA (pets + nearby players get Regen).
  10. Low-purity product gives shorter effects.

Phase 3 test checklist

  1. Mixing Table: Synthetic Spray + 4 Dried Buds -> 4 Spice (random effect each use). MDMA + Ketamine + Pink Dye -> Tusi. Codeine Syrup + Sweet Berries + Sugar -> Lean.
  2. Still on a lit campfire: 6 Wheat + Sugar + Water Bucket -> 2 Moonshine after 3 min. Put 2 Moonshine back -> stronger one.
  3. Lab: Volatile Salts + Lapis + Solvent -> Crude Xanax -> Pill Press (3 cranks) -> 4 Xanax. Xanax removes Paranoia/Comedown.
  4. Screen visuals per drug (green, contrast, blue shake, heat, wobble, pink, colour shift, purple, dark vignette). Toggle in drugmod-client.toml.
  5. "Trip" never shows in the HUD or inventory effect list.
  6. Fentanyl: two doses quickly -> blackout or death.

Phase 4 test checklist

  1. Place a Dealer Stash in a village: a jobless villager becomes a Dealer (dark robe). Trades unlock per level.
  2. Sell to the Dealer: street rep rises (+2 per sale). Above 50 rep, at night, a pillager squad may spawn and attack.
  3. Buy street product: random purity; sometimes cut with fentanyl. Test Kit (other hand) shows purity + CUT/clean.
  4. Using cut product gives an extra fentanyl dose.
  5. Warped Forest: Spirit Roots. Lab (3 roots + Solvent, heat 6) -> Crystallizer -> DMT. Smoke: 30 s in a purple void, then back.
  6. Chrono Dust (Echo Shard + Chorus Fruit + Amethyst, heat 9) -> Crystallizer 10 min. Die while Deja Vu is active: rewind ~10 s, inventory unchanged. Only once per in-game day.
  7. runServer still starts (no client classes on the server).

Phase 5-6 test checklist

  1. Craft Lab Upgrade: Advanced -> right-click the Lab Bench: GUI shows "Advanced (max 90%)". Wrong order is refused. Breaking the bench returns installed upgrades.
  2. Basic bench output never exceeds 70% purity; Industrial allows Blue Meth (96%+).
  3. Industrial: Ghast Tear in the catalyst slot adds +10%, Nether Star gives 100%.
  4. Superlab: no stir prompts (stirs itself), output doubled.
  5. Filter Press: Charcoal as filters, crude product +5% once. Recrystallizer: finished product +10/+5/+2%.
  6. Hazmat Mask: no fume poisoning without a Fume Hood.
  7. Feed FE (any power mod / creative energy cell) into the Lab Bench: works without fuel, red FE bar in the GUI.
  8. Climate Cabin with FE: plant Cannabis Seeds / Psilocybe / Coca Bush / Opium Poppy; harvest every 3 min.

Research + genetics checklist

  1. Take finished batches out of the Lab Bench: research points rise (Lab Notebook shows them). Upgrades are refused until 10 / 40 / 100 points.
  2. Cannabis seeds from a harvest show "Yield · Potency · Growth" in the tooltip (non-default strains).
  3. Two mature cannabis plants within 2 blocks: harvested seeds mix their genes, sometimes mutating up or down.
  4. High-potency buds keep their purity through drying, grinding and pressing (Hash).

Extra features checklist

  1. Advancements tab "Drug Mod" appears and unlocks as you progress.
  2. Narcan on yourself or right-click a friend: dose load halves, Blackout ends.
  3. Combos: Xanax/Lean/Moonshine on top of an opioid warns + extra overdose risk; weed after a stimulant removes the comedown.
  4. Paranoia: shadow figures, fake mobs behind you that vanish when approached (only you see them).
  5. LSD/MDMA/Tusi/Chrono Dust in your inventory slowly lose purity; chests keep them fresh.
  6. Hopper on top of the Lab Bench fills inputs; hopper below pulls output.
  7. Industrial bench without an Air Filter nearby caps at 90%.
  8. Abandoned labs spawn in swamps/deserts/badlands/savanna/plains with loot.
  9. Tobacco (forests), Peyote (desert), Kratom (jungle), Wormwood (plains), Salvia (meadows/hills) generate and can be picked.
  10. Dead Drop pays emeralds by purity and demand; selling the same product repeatedly lowers the price; Burner Phone shows prices.
  11. Courier Post: load product, ~5 min later emeralds are waiting (or the runner got robbed).
  12. Stash blocks look like Stone/Bookshelf/Dirt; sneak + empty hand opens them.
  13. Toxic Sludge from lab batches; dumped sludge kills grass and poisons; Waste Barrel disposes.
  14. Server Rack with FE near a Lab Bench doubles research.
  15. Superlab only works on a 3x3 Lab Casing floor.
  16. Bong + Ground Cannabis in the other hand.
  17. Joints keep the bud's purity (custom rolling recipe); Dried Tobacco + Rolling Paper = 2 Cigarettes.
  18. Product + Baggie = packaged product (+25% at Dead Drop / Courier Post).
  19. Grow Lamp above plants: faster growth.
  20. New config: sludgeChance, runnerRobChance (server), hallucinations (client).
  21. Cook Book: chapter tabs (left), contents tab (right), two-page spreads, arrow keys / scroll / buttons, page illustrations.
  22. Machines face you when placed; Lab Bench shows flame/bubbles while cooking; machines show working particles.
  23. Crystallizer shows the spinning product inside the dome.
  24. Contract Board: daily order with bonus pay.
  25. K9 Collar on a tamed wolf: growls at stashes/labs nearby.
  26. Superlab: Lab Notebook on a Lab Bench shows the hologram of missing blocks; Cook Book page has a layer diagram.
  27. Fermenter: 3 Malt + Hops + Yeast + Water Bucket -> 4 Beer after 5 min (bubbles on top while working). Sneak-take returns ingredients and yeast.
  28. Soaked Grain (4 Wheat + Water Bucket) on the Drying Rack -> Malt. Yeast: Bread + Sugar + Brown Mushroom.
  29. Press: 4 Grapes -> Grape Must, 3 Apples -> Apple Juice, 2 Roasted Agave -> Agave Juice. Wine / Cider / Mead (honey bottles) in the Fermenter.
  30. Washes (grain/potato/cane/agave) in the Still (heat below) -> New Make / Vodka / Rum / Tequila.
  31. Aging Barrel: New Make becomes Whiskey after 1 day; +8% quality per day. Vodka through the Filter Press.
  32. Drinks show "Quality" instead of purity and give back a glass bottle. Alcohol + opioids = respiratory warning.
  33. Hops (forest/taiga), Grape Vines (plains/savanna), Blue Agave (desert/badlands sand) generate in the world.
  34. Cook Book: Brewing chapter; its tab sits on the right edge under Contents.
  35. Drink tooltips: star rating, "Aged N days", tequila class (Blanco/Reposado/Añejo/Extra Añejo), hangover hint.
  36. Quality 90+ drinks: no comedown. Under 60: hangover (nausea, hunger, weakness).
  37. Fermenter status shows climate: underground cellar +12, cool +8, cold +10 at half speed, warm 0, hot/Nether -15 but faster.
  38. Flint and Steel on an empty Aging Barrel chars it (black texture): spirits +12/day, wine +2/day.
  39. 2 spirits back in the Still = 1 with +12 quality (double distillation).
  40. Villagers now take the Dealer Stash as a job site (acquirable_job_site tag).
  41. Tip: sneak-clicking machines with something in your offhand does nothing (vanilla rule). Empty the offhand.
  42. Raids are on by default (at most one per 3 in-game days per player, never on peaceful or in creative).
  43. Right-click a zombie/skeleton/creeper/spider/pillager/piglin/witch/blaze... with a drug: it's hooked, follows you, defends you, ignores players. Sneak + empty hands = stay/follow. Empty hand = status.
  44. Drug class changes the hooked mob: stimulants fast + strong, opioids tanky, cannabis absorption, psychedelics glowing/invisible, alcohol strong.
  45. Skip the craving window (1-2 in-game days, shorter with more addiction): it warns you, then relapses and attacks you. 4 doses within a minute = overdose.
  46. Your tamed wolf/cat/parrot/Rats-mod rat: drugs give the drug's effects (rats x2 duration). Addicted pets get weak + slow when they miss a dose, clean again later.
  47. Addict NPC (night spawns, spawn egg): give a drug to hire. Sneak + empty hand cycles Follow / Stay / Collect (items into a nearby chest) / Farm (harvests + replants crops, cannabis, wild plants). Stimulants make him work 2x faster.
  48. Villagers + drugs: cannabis = discounts, stimulants = restock + jitter, psychedelics = new biome look / profession, opioids = nods off, MDMA = everyone likes you, alcohol = drunk, may drop emeralds then hangover.
  49. Villager mixes within 5 min: psychedelic + cannabis = Witch, alcohol + stimulant = Vindicator, stimulant + opioid or alcohol + opioid = collapse (Narcan within 15 s or they die).
  50. Baby villagers can't be given anything.
  51. Rehab Clinic (White Wool + Red Dye + Bed + Iron): hired addict within 6 blocks needs no doses, addiction drops to 0 in ~2.5 in-game days.
  52. Recovered addict: green hoodie skin, never craves or relapses, refuses drugs, stays loyal, works at 60% speed. Status (empty hand) shows rehab progress.
  53. Cook Book: new Companions chapter (hooked mobs, pets, addicts, rehab, villagers).
  54. Mob variants: feed the right drug to the right mob (Cook Book page Mob Variants): Meth/Party Creeper, Numb/Tweaker Zombie, Trippy/Hot Shot Skeleton, Weaver Spider, Johnny, Medic Witch. Hooked creepers never break blocks.
  55. Lab accidents: no Fume Hood = gas leaks (Hazmat Mask immune), max heat near wood = fire (respects doFireTick), bad batch = sludge spill, Still on lava/fire boil-over, Extractor near fire = vapour explosion after a 2 s hiss.
  56. Addict crew: axe = Lumber (only real trees), pickaxe = Mine (1x2 tunnel the way you face, natural stone/ores only, needs the right tier), hoe = faster Farm + replant seeds. Stick takes the tool back. Chest = 27-slot backpack.
  57. Claims: addicts dig, chop, plant, place torches and open chests only where their OWNER is allowed (acts as the owner via NeoForge break/place/right-click events, so FTB Chunks / Open Parties and Claims etc. apply, also while the owner is offline). Weaver Spider webs too. Drug interactions with villagers/mobs run after claim mods (LOW priority).
  58. Custom Drug: Mystery Base (3 Glass Bottles + Sugar + Nether Wart + Water Bucket = 3) + 1-8 additives in a crafting grid. Name and vial colour come from the mix; drink it and chat lists what happened.
  59. 38 additives (sugar, redstone, gunpowder, feather, mushrooms, egg, echo shard, copper, ... and any mod drug), duplicates = stronger, Nether Wart = longer, Fermented Spider Eye inverts. 16 synergy pairs (Bird Brain, Kaiju, Rave, Turbo, ...). 5+ different additives = random side effects.
  60. Custom Drug on a villager: zoomies, upside down, disco outfit changes, dancing, chickens, gifts (once a day), zombie moans, shrieks, air-swimming, confetti, animal noises. Rave synergy makes the whole village dance.
  61. Phantasms (hidden, no icon): meth/crack/flakka (20% + addiction/2 %, max 70%, 5-10 min) and psychedelics (15%, 3-5 min) can make you see mobs that are not there. Only you see them; they walk, graze, stalk, chase, swing at you (red flash, no damage), creepers hiss and fake-explode, and they take hits and die normally. Fake friends (with real skin + name) appear when the real one is far away. Footsteps behind you, doors, chests, distant mining, rare fake chat whispers. Xanax or sleeping ends it. Client config 'hallucinations=false' turns it off.

Building

  • Locally: Java 21 (Temurin), then gradlew.bat build (Windows) or ./gradlew build. The jar is in build/libs/.
  • CI: .forgejo/workflows/build.yml builds the Drug Mod on every push (runner label docker), uploads the jar as the druggo-jars artifact and smoke-tests a dedicated server (.forgejo/smoke.sh). The casino's CI (MakeItRoll repo) builds this repo's main branch and smoke-tests both mods together. Push a tag like v1.0.0 to get a release with the jar attached.
  1. Addiction HUD: small meter bottom-right (top-left on narrow windows), hidden at 0%, colour by stage, pulses red in withdrawal, tick mark at 50% (withdrawal threshold). Client config addictionHud=false hides it. Lab Notebook also shows addiction + street rep + raid status.
  2. Drunk system: every drink adds blood alcohol (beer 1, wine 1.5, cocktail 2, spirit 2.5, Long Island 4), ~1 per minute wears off. Tipsy = screen sways; Drunk = stumbling + slurred chat; Wasted = nausea waves; 10+ = blackout (wake up 20-50 blocks away). HUD shows the level. Breathalyzer tests you or a friend.
  3. Bar: Cocktail Shaker + 8 cocktails (quality = average of the spirits), shots + shot glasses, flaming shots (fire breath), champagne (ages 1 day in the Aging Barrel, toast buffs nearby friends), keg (stores 64 drinks, pour with a glass bottle). Mulled Wine = no freezing, Bloody Mary cures hangovers, Long Island always gives a hangover.
  4. Casino (separate mod makeitroll, repo MakeItRoll, see its README for its checklist): Slot Machine, Pachinko, Prize Counter + Album, Casino Card, levels 1-30, gambling addiction.
  5. With both mods: Rehab Center accepts gamblers too (gambling addiction > 0.5) and cures it at 0.3/s; drunk players get double-or-nothing offers; Drug/Liquor machine themes; drug prizes at the Prize Counter; Cook Book gets a Casino chapter.