Attempting to create a DUPLICATION mod for future versions that stuck on 1.12.2

Started by TheRealMM2 on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Attempting to create a DUPLICATION mod for future versions that stuck on 1.12.2

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.

The code:

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wrong code I sent, just use…
Tue, 08/02/2022 - 20:37

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.

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you show the triggers…
Wed, 08/10/2022 - 18:11

can you show the triggers for the item this is on please?

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok ignore my last comment it…
Wed, 08/10/2022 - 18:35

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

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, I'll try that
Wed, 08/10/2022 - 21:02

Okay, I'll try that

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I finally decided to remake…
Sun, 11/06/2022 - 18:26

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.