Started by
TheRealMM2
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to recreate a 1.12.2 Mod created with MCreator in 1.18, but I am having trouble with the code. Upon right clicking the block, it is meant to give you another of the same block that's in your main hand. I got a code to work, but for some reason it won't go past 2.
https://imgur.com/a/JUkd9Xm
Heres the iamge link if it doesnt show up.
Wrong code I sent, just use the +1 and not the in hand as that adds more than one block. I just tested again and if I change the amount in my hand to three, it just goes back to two.
can you show the triggers for the item this is on please?
ok ignore my last comment it seems the add to inventory might be buggy.
if you select add 1 you can only stack 2, same with add 2, but if you add 3 it goes from 1 to 6 in 1 add which clearly isnt +3 so i dont know what too suggest, maybe swap the "1" to getNumberOfItemsIn MainHandOf EventTarget since this seems most consistant. to adding a predictable amount
Okay, I'll try that
I finally decided to remake this for 1.16.5 and 1.18.2, nothing I've tried works so far the way I want.