promotional bannermobile promotional banner

AddictiveDeals

This is a mod where you can sell Create: addictives to viliagers
Back to Files

addictivedeals1.2.jar

File nameaddictivedeals.jar
Uploader
IocifexIocifex
Uploaded
Jul 25, 2026
Downloads
338
Size
10.5 MB
Mod Loaders
NeoForge
File ID
8507677
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:addictivedeals-1602082:8507677"

Learn more about Curse Maven

What's new

NEW FEATURES — ATM System

All entirely new:

REGISTRATION ADDITIONS

ModBlocks.java — Added 3 blocks:

  • BOOTH (was written but not registered in old jar — had orphan booth classes)
  • SELLING_TABLE
  • ATM

ModItems.java — Added 5 items:

  • BOOTH (BlockItem)
  • PHONE (was orphan class, now registered)
  • SELLING_TABLE (BlockItem)
  • BANK_CARD
  • ATM (BlockItem)

ModMenus.java — Added 2 menus:

  • PHONE_MENU (was orphan class)
  • ATM_MENU

ModBlockEntities.java — Added 2 block entities:

  • BOOTH (was orphan class)
  • ATM

ModCreativeTabs.java — Added 5 items to creative tab:

  • BOOTHPHONEBANK_CARDSELLING_TABLEATM

AddictiveDeals.java — Added:

  • ModDataComponents.DATA_COMPONENTS.register(modBus)

ClientSetup.java — Added:

  • PHONE_MENU screen registration
  • ATM_MENU screen registration

MODIFIED FILES

AddictiveDealsConfig.java:

  • Added setBoothDrugFilter()setPhoneMinAmount()setPhoneMaxAmountOffset()setPhoneDrugFilter()
  • Added getRawPhoneDrugFilter()getRawBoothDrugFilter()
  • Added getShopCategories() (extracts distinct categories, returns sorted list)
  • Added materials category to default shop items
  • Shop items now include category suffix (e.g., minecraft:iron_ingot,8,materials)
  • Sell prices key changed from sell_prices to sell_prices_v2
  • Expanded default shop catalog from ~40 to ~70+ entries

ModEvents.java:

  • Added onItemCrafted listener — auto-initializes BankCard with random PIN & UUID on craft
  • Reworked onEntityInteract: replaced old sell-with-lambda with full booth/phone/generic sell flow
  • Now handles booth villager interaction (cancel vanilla trade, check inventory, sell drugs)
  • Now handles phone deal villager interaction (check inventory, complete deal, despawn villager)
  • Now uses MoneyUtil.countItem() / MoneyUtil.removeItem() for inventory operations

PacketHandler.java:

  • Added: PhoneConfigPacketATMLoginPacketATMOperationPacketATMBalanceSyncPacket
  • Dropped: BoothSellPacketOpenBoothSellScreenPacket (no longer used — sell is handled server-side in ModEvents)

MoneyUtil.java:

  • Added countItem(Player, Item) — counts total of a specific item in inventory
  • Added removeItem(Player, Item, int) — removes a specific amount of an item from inventory

RESOURCE FILE CHANGES

en_us.json — Added 22 new keys:

  • item.addictivedeals.bank_card: "Bank Card"
  • block.addictivedeals.atm: "ATM"
  • container.addictivedeals.atm: "ATM"
  • gui.addictivedeals.max_offsetgui.addictivedeals.drug_filter (booth settings UI)
  • gui.addictivedeals.category.materials: "MAT"
  • gui.addictivedeals.select_all: "All", gui.addictivedeals.clear_all: "None"
  • 12 ATM GUI keys (atm_titleatm_insert_cardatm_enter_pinatm_loginatm_logoutatm_depositatm_withdrawatm_balanceatm_wrong_pinatm_card_lockedatm_no_cardatm_no_fundsatm_depositedatm_withdrawn)

neoforge.mods.toml

  • Changed from hardcoded values to Gradle variable substitution (${mod_id}${mod_version}, etc.)

New resource files 

  • blockstates/atm.jsonblockstates/atm_1x2.json
  • models/block/atm_bottom.jsonmodels/block/atm_top.jsonmodels/block/atm_1x2.json
  • models/item/atm.jsonmodels/item/atm_1x2.json
  • models/item/one_dollar_bill.jsonmodels/item/ten_dollar_bill.jsonmodels/item/hundred_dollar_bill.json (renamed from old singular names)
  • textures/block/atm_texture.png
  • sounds.jsonsounds/ka_ching.oggsounds/villager_sfx_*.ogg
  • data/.../loot_table/blocks/atm.jsonselling_table.json
  • data/.../recipe/atm.jsonband_to_hundred.jsonhundred_to_band.jsonhundred_to_ten.jsonone_to_ten.jsonphone.jsonselling_table.jsonten_to_hundred.jsonten_to_one.json
  • data/.../tags/items/money.json

Removed 

  • data/.../gifts/drugs.json (old gift mechanic, replaced by booth/phone system)

This mod has no additional files