Help With Modding MCreator 2022.1 v1.16.5 [ SUPPORTED VERSION ]

Started by Yolo_ on Tue, 05/17/2022 - 00:24

Topic category: Help with modding (Java Edition)

Last seen on 13:25, 24. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help With Modding MCreator 2022.1 v1.16.5 [ SUPPORTED VERSION ]
Sun, 05/22/2022 - 15:05 (edited)

i searched for it but i didn`t find anything useful

all i need is how to use item from another mod to my mod in coding

i found it and i tried multiple times but nothing work and it shows gradle failed

so i will show you what is happening

i made a block that have GUI and it has only 1 slot (slot_0) then in updatetick procedure that what i want

is {if get a copy of item from slot 0 -for example- [ inventorypets:banana ]}

do replace block at x y z (this gray text is not important)

here the code for the important part only (for example apple)

}
        }.getItemStack(new BlockPos(x, y, z), (int) (0))).getItem() == Items.APPLE) {

how to replace this Items.APPLE to item from other mod like i says [ inventorypets:banana ]

Edited by Yolo_ on Sun, 05/22/2022 - 15:05
Last seen on 19:14, 24. Jun 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could make a tag then…
Tue, 05/17/2022 - 01:35

You could make a tag then open it in the custom code editor and import the ID like this:

{
  "replace": false,
  "values": [
    "inventorypets:banana"
  ]
}

Then you can use the "Is Provided itemstack tagged in item tag as "ModID:TagID" "

Doing this would have you not need to custom code

Last seen on 13:25, 24. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
sorry but this is not for…
Wed, 05/18/2022 - 16:08

sorry but this is not for slots can you tell me how to make this tag in slot 0

Last seen on 13:25, 24. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
oh i figured out how to do…
Wed, 05/18/2022 - 17:08

oh i figured out how to do this but i tried its not working is the problem with the tag