Cake Wand banner
Cake Wand icon

Cake Wand

a wand to be used as a weapon that shoots cake. You can hear the sound of cake splatters and frosting all over the place.

00
hytaleServer2026.1mod

Cake Wand mod adds a frosting-flinging wand for server-side play.

  • Use the /cakewand command in-game to receive a Cake Wand item (cakewand:cake_wand), placed in your hotbar when there is space.
  • Firing (primary/secondary/use) while holding the wand launches a short-range cake burst with randomized spread, particle splashes, and layered splat sounds. Shots are throttled with a small cooldown to prevent spam.
  • Effects are driven by PlayerInteractEvent listening at the plugin level and run fully server-side; particles and sound IDs fall back gracefully if an asset is missing.

Implementation notes:

  • Main entry: com.playergames.cakewand.CakeWandMod; manifest updated with mod id/name and server version target 1.21.1.
  • Inventory handling prefers the active hotbar and falls back to combined storage; a friendly warning is sent if the inventory is full.
  • Sound IDs try slime-like splats first, then fallback options; if neither exists, the event stays silent but still fires particles and messaging.

Known limitations / future ideas:

  • Uses deprecated entity APIs for UUID/transform access; swap to the preferred accessors if/when available in your server runtime.
  • Particle/sound effect keys assume matching assets in the runtime asset map; adjust the IDs to match your server’s catalog if they differ.