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

Started by TheRealMM2 on Tue, 08/02/2022 - 20:26

Topic category: Help with modding (Java Edition)

Last seen on 21:00, 10. Aug 2022
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Attempting to create a DUPLICATION mod for future versions that stuck on 1.12.2
Tue, 08/02/2022 - 20:26

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:

Last seen on 21:00, 10. Aug 2022
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 17:49, 6. Sep 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?

Last seen on 17:49, 6. Sep 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 21:00, 10. Aug 2022
Joined May 2020
Points:

User statistics:

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

Okay, I'll try that