Started by
DoYmN
on
Topic category: Help with Minecraft modding (Java Edition)
I'm working on a procedure for an enchantment which can pull specific items out of a players main hand and add them to your inventory.
Does someone have an idea how I could do that?
Shouldn't be too difficult. I assume this goes on a weapon? The basic idea would be as follows:
Can I use this with my /steal command? If so, would it work with multiple entities such as a horde of zombies all with iron shovels and the command would steal all of them?
It would be more difficult to get this working with a command, as you would need to provide multiple entities as dependencies. (The target and the source entity.) You could still make a more general steal function that you could reference from other functions, if you don't want to rewrite it constantly.