your current location:首页 > news>How to add custom currency exchanges, and the price adjustment of the product price

How to add custom currency exchanges, and the price adjustment of the product price

2024-12-10 17:48:06|Myriagame |source:minecraft skins

How to add custom currency exchanges and adjust the price of product prices:

First of all, use WinRAR's compressive pack editing tools to open the MOD JAR package instead of looking for in the MC directory:

Click Data-> Gunscrft-> VENDING_MACHINE_PRODUCTS directory, find Vending_machine_products_register.json file, drag it to the desktop with notepad::

The content of the file is a JSON object that records the price of weapons, accessories, ammunition, etc.

Finding the Economy project is the price of the three default currency exchange objects. We need to add a new project in JSON format, such as:

This means that the Stone of Minecraft is registered as a currency exchange object that costs 99999. Among them, the Item key corresponds to the item ID. You can press the F3+B key in the game and suspend the mouse on the item to view it. Price represents it.Value must be an integer

Finally, paste the modified file back to the jar package, and check whether the change is successful by the way:

OK to enter the game after the change is completed:

It is found that the registration has been successful, try to redeem:

Indeed, a stone was exchanged for 99999 cash

(You can change the price of other registered projects to change its price)