Market Block - RedWirePlatinumTwo/RedWiresMinecraftMod GitHub Wiki

Block image

2022-11-13_12 46 25

GUI Images

market menu gui shop gui multiplier gui level gui enchantment buy gui donation gui market cheat gui

Obtaining

market recipe

Mechanics

  • Point earning (aside from selling items):
    1. Damaging entities gives you points based on damage dealt (rounded up) times 10 (initial points given) unless the entity attacked is an Iron Golem. The Wither will give 9,000,000 * EntityDamagePrice/10 points when killed and the Ender dragon gives 27,000,000 * EntityDamagePrice/10.
    2. Mining blocks, initial value is 10 points per block broken.
    3. Leveling up, gives 2000 * level points. Buying levels does not affect this.
  • Regular menu options:
    1. Buy/Sell listed items. Selling gives you 70% of the purchase price of said item (excluding discounts applied to purchase price).
    2. Manage the amount of points earned when killing entities + breaking blocks. Increasing the multiplier doubles the amount of points earned from blocks/entities BUT multiplies the price by 2.5 (and additionally rounds itself to the nearest multiple of 10, just because odd numbers bad)
    3. Buy enchantment books with more than 1 enchantments at max level.
    4. Buy levels, because why not I guess.
  • Cheat menu options:
    1. Change your balance to whatever number you want.
    2. Change your block price (points earned from mining blocks) to whatever number you want. (except for 0 because it'll reset to 5)
    3. Change your entity price (points earned from killing entities) to whatever number you want. (except for 0 because it'll reset to 10)
    4. Change your multiplier price (points needed to double block and entity kill price) to whatever number you want.
    5. Press the funni gacha button
  • Netherite Ingots and Blocks can only be purchased once unlocked by obtaining a Netherite Ingot.
  • The Luck effect decreases most prices by 20% per effect level. Points earned from breaking blocks and damaging entities are increased by 10%.
  • The Unluck effect increases most prices by 30% per effect level. Points earned from breaking blocks and damaging entities are decreased by 20%.

Items and their corresponding prices

  • Netherite Block - 18,000,000
  • Netherite Ingot - 2,000,000
  • Diamond - 10,000
  • Diamond Block - 90,000
  • Gold Ingot - 5,000
  • Gold Block - 45,000
  • Wolf Item Manager - 7,500
  • Redstone - 400
  • Redstone Block - 3,600
  • Anvil - 6,200
  • Water Bucket - 600
  • Lava Bucket - 600
  • Iron Ingot - 200
  • Iron Block - 1,800
  • Emerald - 100
  • Emerald Block - 1800
  • Apple - 25
  • Carrot - 25
  • Wheat - 25
  • Potato - 25
  • Beetroot - 25
  • Pumpkin - 25
  • Melon Slice - 25
  • Coal - 40
  • Charcoal - 40
  • Coal Block - 360
  • Stone - 20
  • Cobblestone - 10
  • Smooth Stone - 10
  • Oak Log - 30
  • Jungle Log - 30
  • Spruce Log - 30
  • Acacia Log - 30
  • Dark Oak Log - 30

Stats

  • Max Stack Size: 64
  • Hardness: 1.5
  • Blast Resistance: 10

Change History

  • 3.17.0: Introduced block, replacing the /shop command.
  • 3.18.0: The block's ShopItem NBT value will reset to 0 if below 0 or above the maximum amount of shop items - 1.
  • 3.18.0: Changed a majority of textboxes to labels in the blocks GUIs.
  • 3.18.2: Fixed bug where Smooth Stone doesn't show up in the shop list and shows Cobblestone a second time.
  • 3.18.2: The block will now save the last shop item you looked at instead of having to click the arrows to get back to that specific item.
  • 4.1.0: Removed Blaze Powder from the shop list.
  • 4.1.1: Flipped the top block texture upside down.
  • 4.1.1: The block can now rotate to face you upon being placed.
  • 4.2.0: The crafting recipe for the block uses any planks instead of oak planks.
  • 4.2.0: Removed all OP items that I jokingly added to the shop list.
  • 4.2.0: Removed the Points-Per-Minute system.
  • 4.2.0: Removed a majority of chat feedbacks that appear when clicking on a button when it was still the /shop command.
  • 4.2.6: Slightly changed the text in one of the block's GUIs for clarification.
  • 4.2.14: The multiplier price modifier now rounds itself to the nearest multiple of 5.
  • 4.2.15: Increased multiplier price modifier round number from 5 -> 10.
  • 4.3.0: Removed TNT from the shop list.
  • 4.3.0: Added a placeholder text for the entity kill price textbox in the cheat menu.
  • 4.3.0: Luck, Unluck, and Hero of the Village now effect the shop prices.
  • 4.3.4: the Hero of the Village effect now only changes Emerald and Emerald block prices, reducing it by 50%.
  • 4.3.4: Bad Omen increases Emerald and Emerald block prices by 60%.
  • 4.4.0: Improved the look of a majority of GUIs by changing textboxes to labels again but for good this time.
  • 4.4.0: The multiplier price value can now be edited in the cheat menu.
  • 4.4.1: Added a sell price label in the shop GUI.
  • 4.4.1: Fixed the multiplier value changer in the cheat menu from changing your block mine price instead.
  • 4.4.3: Fixed most display number labels from messing up with a negative balance.
  • 4.4.3: The cheat menu number changers now round the numbers.
  • 4.4.4: The sell price of an item no longer changes based on discounts and/or price increases.
  • 4.4.4: Undid the Bad Omen + Hero of the Village thingy for 4.3.4.
  • 4.5.2: Fixed exploit where you could get items for free with a hopper.
  • 4.5.6: The "ShopItem" value is now a player variable as well as an NBT tag so it can sync to multiple Market Blocks.
  • 4.5.7: The "ShopItem" value is now only a player variable.
  • 4.6.1: Removed Netherite block and Netherite ingot from the shop.
  • 4.7.0: The arrows for the shop gui now appear and disappear based on what item you're on.
  • 4.8.4: Increased Luck discount from 10% -> 20% per level.
  • 4.8.4: Increased Unluck price gouge from 15% -> 40% per level.
  • 4.8.4: Netherite Ingots and Blocks can now be purchased again BUT you have to have an netherite ingot in your inventory to unlock it.
  • 4.8.10: The enchantment-buying and level-buying prices are now effected by the Luck and Unluck effects.
  • 5.4.9: Improved enchantment buying. Additionally, the minecraft: namespace is no longer required when typing out enchantment ids.
  • 5.5.2: Further improved enchantment buying, allowing for support for enchantments from other (forge) mods.
  • 5.5.3: Namespaces are no longer required when buying enchantments.
  • 5.7.1: Points are now given based on damage dealt to entities instead of killing. Withers and Ender Dragons will still give bonus points when killed. Iron Golems and Snow Golems can be damaged for points.
  • 5.7.2: Changed block mine price default value to 10. Leveling up will now give points. Additionally, instant-destroy blocks such as grass will once again give points. Unluck price increase for items/levels/enchantments decreased by 40% -> 30%.
  • 5.7.3: When purchasing items or levels (or selling items), an estimated total will show up based on the amount. Additionally, the number of items to buy/sell and levels to buy will be 1 by default if the "amount" textbox is empty.
  • 6.0.0: Iron Golems can once again not be used to farm points because I underestimated how easy it would be to earn points that way.
  • 8.3.2: The enchantment-buying option has been fixed after having been broken since 7.0.0.
  • 10.0.1: The Market Block is no longer a block entity.
  • 10.0.2:
  1. Due to an issue with the Market Block shop GUI arrows not re-appearing when it should, both arrows are now always visible.
  2. Decreased Market Block item sell price from 80% -> 70% of the buying price (excluding discounts).
  3. The Market Block item sell price will no longer lower itself if the sell price ends up being higher than the buying price.