How do I insert an item into a block?

Started by Nikich103030 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I insert an item into a block?

There is an idea in the plans (I will try to explain through a translator, if it is not clear, ask, I will try to clarify). There is an empty case as a block, it holds 4 cubes. There are also 2 items - cube 1.0 and cube 2.0. Cube 1.0 brings for example 1 diamond per minute. A 2.0 cube is 2 diamonds per minute. Cubes do not bring anything if they are not in the case. The case also has an interface for collecting diamonds. You can insert it into the case in any order, the main thing is to insert it in the place where the player looked. How can I implement inserting cubes into a block with the right mouse button and also taking out cubes by pressing the shift and right mouse button? There should also be a white border of the place where the player is looking at on the body for further insertion of cubes there, but how to do this? I've been trying to figure it out for 3 weeks, but it still doesn't work out.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh are you talking about…
Tue, 10/08/2024 - 12:18

Oh are you talking about like in world UI? So not like this mod element?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh are you talking about…
Tue, 10/08/2024 - 15:09

Oh are you talking about like in world UI? So not like this mod element?


 

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't quite understand…
Tue, 10/08/2024 - 15:12

I don't quite understand what World UI is, the message above is not to mimic, I just made a mistake

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
like campfires and the new…
Tue, 10/08/2024 - 15:14

like campfires and the new decoration pots

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if what I wrote is done…
Tue, 10/08/2024 - 15:25

if what I wrote is done through world ui, then yes

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is it possible to implement…
Wed, 10/09/2024 - 00:20

is it possible to implement your idea? If so, how? If it is not clear what the essence of my idea is, then I can try to rephrase it.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, having tried to…
Mon, 11/04/2024 - 16:46

Well, having tried to understand it myself, it turned out unsuccessfully