Adding random quality to crafted tools and armors

Started by Ante19 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Adding random quality to crafted tools and armors

Is this possible to add random quality (e. g. Hardy Stone Pickaxe - x 1,5 durability or slow Iron sword -1 tool speed) to crafted tools and armor and putting qualities on them with special scrolls on anvil. 

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi. First you need to go to…
Sat, 07/19/2025 - 09:25

Hi.

First you need to go to the when crafted trigger of your tool and create a procedure. In it create a local variable and put a random number to it using the random function. Then using if, elif etc for a certain number you want to put a certain enchantement to the tool. 

It's not really what you wanned but if you don't want to code then do this. 

If you want to code then read this : https://mcreator.net/forum/107043/dynamicly-changing-pickaxe-efficiency-minespeed