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)

Active 1 year ago
Joined May 2020
Points:
664

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 32
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:

Active 1 year ago
Joined May 2020
Points:
664

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 32
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.

Active 2 years ago
Joined Feb 2021
Points:
598

User statistics:

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

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

Active 2 years ago
Joined Feb 2021
Points:
598

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
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

Active 1 year ago
Joined May 2020
Points:
664

User statistics:

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

Okay, I'll try that

Active 1 year ago
Joined May 2020
Points:
664

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 32
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.