joint banner
joint icon

joint

create an item called a joint and make it craftable with ferns. and make it so when you smoke it by hitting the right mouse button while the item is in hand...

00
fabricClient1.19.2mod

joint mod overview

  • Added a Joint item you can craft and smoke; hold right-click for a short sip animation to consume it.
  • Smoking applies nausea for two minutes. Using ten joints within a 60-second window also adds a minute of slowness and weakness and flashes an overuse warning.
  • Shapeless recipe: three ferns anywhere on the crafting grid produce one joint. It appears in the Food tab in creative.

Implementation notes

  • Effects and item consumption run server-side in JointItem using world time to track recent uses per player.
  • Overuse checks reset automatically as older timestamps fall out of the one-minute window; nothing is persisted between sessions.

Limitations / future ideas

  • Marked as a client-side mod; for multiplayer, the server would also need the mod to let players craft and use the item.
  • No cooldown beyond the use time; add one if you want to throttle consumption further.
  • Textures and recipe are simple placeholders; swap them out if you want a different look or balance.