Skip to content

Home EN

Bogdan edited this page Aug 5, 2026 · 1 revision

SDM Shop 2

SDM Shop 2 is a component-based shop built around an ECS-style architecture. Shops and offers are assembled from components: costs, rewards, conditions, limits, promos, categories, rendering settings, and script-driven logic.

Documentation

Important Notes About the Current Core

  • The sdm:condition_limiter component is now a ConditionComponent and works with sdm:hide_render.
  • Multiple limiters on the same offer are supported through limit_key.
  • The UI receives limiter sync through a dedicated packet and refreshes after purchases/resets.
  • Cooldowns and resettable limiters can return a hidden offer to an open UI without reopening the shop.
  • Script conditions are checked on the server, while the UI requests their state only when needed.

Basic Commands

/sdm_shop create_shop <shop_id>
/sdm_shop open_shop <targets> <shop_id>
/sdm_shop reload shops

Limit Commands

/sdm_shop limiter sync
/sdm_shop limiter reset world <shop_id> <offer_id>
/sdm_shop limiter reset player <target> <shop_id> <offer_id>
/sdm_shop limiter reset offer <shop_id> <offer_id>

After a successful reset, the server sends a sync packet to clients, so an open UI updates without reopening the shop.

Built-in Integrations

  • SDM Economy 2
  • SDM Data Lib
  • SDM Events
  • KubeJS / CraftTweaker bridge for script components

Clone this wiki locally