addictivedeals1.2.jar
Curse Maven Snippet
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_TABLEATM
ModItems.java — Added 5 items:
BOOTH(BlockItem)PHONE(was orphan class, now registered)SELLING_TABLE(BlockItem)BANK_CARDATM(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:
BOOTH,PHONE,BANK_CARD,SELLING_TABLE,ATM
AddictiveDeals.java — Added:
ModDataComponents.DATA_COMPONENTS.register(modBus)
ClientSetup.java — Added:
PHONE_MENUscreen registrationATM_MENUscreen registration
MODIFIED FILES
AddictiveDealsConfig.java:
- Added
setBoothDrugFilter(),setPhoneMinAmount(),setPhoneMaxAmountOffset(),setPhoneDrugFilter() - Added
getRawPhoneDrugFilter(),getRawBoothDrugFilter() - Added
getShopCategories()(extracts distinct categories, returns sorted list) - Added
materialscategory to default shop items - Shop items now include category suffix (e.g.,
minecraft:iron_ingot,8,materials) - Sell prices key changed from
sell_pricestosell_prices_v2 - Expanded default shop catalog from ~40 to ~70+ entries
ModEvents.java:
- Added
onItemCraftedlistener — 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:
PhoneConfigPacket,ATMLoginPacket,ATMOperationPacket,ATMBalanceSyncPacket - Dropped:
BoothSellPacket,OpenBoothSellScreenPacket(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_offset,gui.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_title,atm_insert_card,atm_enter_pin,atm_login,atm_logout,atm_deposit,atm_withdraw,atm_balance,atm_wrong_pin,atm_card_locked,atm_no_card,atm_no_funds,atm_deposited,atm_withdrawn)
neoforge.mods.toml
- Changed from hardcoded values to Gradle variable substitution (
${mod_id},${mod_version}, etc.)
New resource files
blockstates/atm.json,blockstates/atm_1x2.jsonmodels/block/atm_bottom.json,models/block/atm_top.json,models/block/atm_1x2.jsonmodels/item/atm.json,models/item/atm_1x2.jsonmodels/item/one_dollar_bill.json,models/item/ten_dollar_bill.json,models/item/hundred_dollar_bill.json(renamed from old singular names)textures/block/atm_texture.pngsounds.json,sounds/ka_ching.ogg,sounds/villager_sfx_*.oggdata/.../loot_table/blocks/atm.json,selling_table.jsondata/.../recipe/atm.json,band_to_hundred.json,hundred_to_band.json,hundred_to_ten.json,one_to_ten.json,phone.json,selling_table.json,ten_to_hundred.json,ten_to_one.jsondata/.../tags/items/money.json
Removed
data/.../gifts/drugs.json(old gift mechanic, replaced by booth/phone system)
This mod has no additional files

