adana food banner
adana food icon

adana food

sugar witch you can craft by just placeing 3 next to each other into an crafting table into an cocain powder that gives you speed 1 for 9 seconds make the...

00
neoforgeServer1.21.1mod

adana food mod notes

  • Added a server-only consumable: craft by combining 3 sugar in any shapeless pattern to get Cocaine Powder (shows a gray tooltip). It remains a sugar item so vanilla clients can join.
  • Right-click with Cocaine Powder to consume it: one item is used (unless in creative) and the player receives Speed I for 9 seconds. A drinking sound and hand swing play server-side.

Implementation details

  • The crafting result is a sugar stack tagged with custom_data key adanafood_cocaine, plus a custom name and lore to distinguish it.
  • Interaction handling runs only on the dedicated server (@Mod(..., dist = Dist.DEDICATED_SERVER)); the NeoForge event bus listens for RightClickItem and checks the tag before applying the effect.

Limitations / notes

  • Only the crafted/cheated item with the adanafood_cocaine custom data works; normal sugar does nothing.
  • Consumption triggers on item use; right-clicking blocks with strong interactions may still open the block instead of consuming, so use in the air if needed.

Server Validation

Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.