How to make an Item place a block?

Started by NathanTheCraziest on

Topic category: Help with MCreator software

Active 4 years ago
Joined Aug 2019
Points:
660

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
How to make an Item place a block?

I know that you can do this

Place block at X, Y+1, Z

but it will only place it on top, how to make it place a block depending on which side of the block you clicked?

Active 4 years ago
Joined Sep 2019
Points:
746

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 139
I am not sure you can find…
Mon, 02/10/2020 - 09:36

I am not sure you can find that out... Do you write java or block as this might be a significant difference. What are you hoping to do once you can find out what side of the block you are clicking on?

Active 2 months ago
Joined Jan 2020
Points:
872

User statistics:

  • Modifications: 3
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 210
I am not sure you can find…
Wed, 02/19/2020 - 01:21

I am not sure you can find that out... Do you write java or block as this might be a significant difference. What are you hoping to do once you can find out what side of the block you are clicking on?

me neither, just ask the creator

Active 5 years ago
Joined Feb 2020
Points:
630

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
Hi, I have the same problem,…
Fri, 02/28/2020 - 19:13

Hi, I have the same problem, i want to place a block by clicking on the floor (like redstone dust) but the block have to be placed only when I aim at the top side.

Active 4 months ago
Joined Dec 2017
Points:
858

User statistics:

  • Modifications: 8
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 98
i think this would need a…
Fri, 02/28/2020 - 19:19

i think this would need a raycast

Active 4 years ago
Joined Sep 2019
Points:
746

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 139
Maybe you could have it only…
Fri, 02/28/2020 - 23:12

Maybe you could have it only place if the player is looking down? I mean it probably won't have the affect you guys want but it could work?

Active 3 months ago
Joined Jun 2019
Points:
2785

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3716
I think mcreator recently…
Sat, 02/29/2020 - 01:30

I think mcreator recently added a block face that is clicked feature...

I'll test that and give you answers

Active 1 year ago
Joined Feb 2020
Points:
774

User statistics:

  • Modifications: 10
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 69
That was five months ago got…
Wed, 07/28/2021 - 01:16

That was five months ago got a answer yet?

Active 5 days ago
Joined Oct 2019
Points:
652

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Managed to solve? I have the…
Mon, 08/02/2021 - 00:53

Managed to solve? I have the same problem!

Active 3 years ago
Joined Oct 2021
Points:
467

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
to those who still stuck…
Sun, 10/24/2021 - 06:00

to those who still stuck with this, try doing this. and do it 6 times total. change the "trigger direction/face" to all 6 different axis. and if it gets a bit buggy in game, remove the if statement "does entity exist" https://media.discordapp.net/attachments/890441186786041857/901711469912150026/Screenshot_2021-10-23_225918.png?width=560&height=676

Active 1 year ago
Joined Oct 2021
Points:
508

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Yes I tried and it actually…
Tue, 07/18/2023 - 14:23

Yes I tried and it actually works, I was stuck but now I solved thank u (a bit late I know)

Active 1 month ago
Joined Feb 2025
Points:
8

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
I know this is an old topic,…
Sat, 02/08/2025 - 17:00

I know this is an old topic, but to anyone still struggling with this and searching on the forums for answers, there's a purple | orange colored "... offset of direction | Trigger direction/face" block for all three coordinates that helps with this exact thing.

So instead of putting "X", you put "X + X offset of direction | Trigger direction/face", or "Y + Y offset of direction | Trigger direction/face" for Y.

I also recommend checking whether the block on that face is air, so players can't replace stairs or slabs by right clicking on the block behind them.