Skip to content

Instantly share code, notes, and snippets.

@Neylz
Last active October 24, 2022 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neylz/69d666638d707c63df2aa678bfcd60b7 to your computer and use it in GitHub Desktop.
Save Neylz/69d666638d707c63df2aa678bfcd60b7 to your computer and use it in GitHub Desktop.
Change the second trade Item in All miniblocks datapack

Change the trade item of All MiniBlocks

Here you can found two methods to change the second trade item of the wandering trader to get a miniblock barrel (it's a netherite ingot by default).

Notice

This gist is writed for the version 1.2 version of All MiniBlocks datapack. Using theses methods in future versions would work because changing this part of the code isn't planned but the method may not be valid anymore.

Change with VSC

By using Microsft Visual Studio Code, follow these steps:

  • Open the project folder in VSC
  • Go on the Search tab (1 on the image)
  • Type minecraft:netherite_ingot in the field 2
  • Type in the field 3 the item id that you want WITH the minecraft: namespace specified
  • Click on the button Replace All (4 on the image)

VSC illustration

Change manually

Go into the file randomminiblocks.mcfunction located in the data/miniblocks/functions/newtrade folder.

Change at the line 7 after buyB:{id:" the id of the item that you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment