Started by
FazeThree
on
Topic category: Help with Minecraft modding (Java Edition)
I have made a crafting recipe for Enchanted Books, but when crafted they don't come with an enchantment on them. I'm trying to get it to be a random enchantment but I am unable to figure it out.
Any help would be greatly appreciated, Thanks!
Edited by FazeThree on Mon, 03/13/2023 - 16:12
I Figured It Out!
This is how it is constructed:
Global Trigger is set to Item is crafted, next an if statement, (If Provided Itemstack = "chosen item" ), If yes, then do: (Set 1 "wanted item" in slot 9 of block at x: x, y, z, if it has inventory) under that: (Add enchantment "wanted enchantment" with level "wanted level" to Provided Itemstack).
now to make it random....
Figured it out.
Forum Closed.
Can you give an example of how you figured it out?