[Fixed] Right Click Block Procedure not functioning correctly (Stripping Logs)

Started by SuperBully on

Topic category: Help with MCreator software

Last seen on 06:32, 14. Sep 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Fixed] Right Click Block Procedure not functioning correctly (Stripping Logs)
Sat, 07/11/2020 - 08:31 (edited)

I made a new type of wood for my mod and added the ability to right click on it with an axe to strip it.

However when you right click with anything else, it just swings your fist, meaning I can't place blocks on it without shift clicking. Is there a way to fix this?

EDIT:

Solution:

I have a procedure that is run when a player right clicks a block, and just detects if the block is my regular log and if I'm holding an axe using the tags, then simply replaces it with keep state checked:

"StripLogProcedure"

A very important thing to remember, this procedure is NOT linked to the onblockrightclick trigger within the log block. This procedure stands alone.

Edited by SuperBully on Sat, 07/11/2020 - 08:31
Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well i would need to see…
Fri, 07/10/2020 - 19:16

Well i would need to see your code/procedure blocks.

I can't help you other wise. 

 

Last seen on 16:38, 18. Nov 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I had the exact same problem…
Fri, 07/10/2020 - 19:20

I had the exact same problem

I can help you fix it

Last seen on 16:38, 18. Nov 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First create a minecraft tag…
Fri, 07/10/2020 - 19:29

First create a minecraft tag and name it for ex. axes and add to it every single vanilla axe and if your modded ones if you created some.

Now make a procedure and link it to a random item in when right clicked with item
Write the procedure like in this image:
https://imgur.com/a/SNH1lLX

 As you can see in the screenshot you need to replace my modded blocks with yours of course. (The lighter variant of the wood is my stripped one)

Then test it, if something's wrong tell me, I'll help

Last seen on 06:32, 14. Sep 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for your help. The…
Sat, 07/11/2020 - 07:00

Thank you for your help. The solution you presented didn't fix the problem I was having, but it did help me to come up with a solution that was much much simpler.

I have a procedure that is run when a player right clicks a block, and just detects if the block is my regular log and if I'm holding an axe using the tags, then simply replaces it with keep state checked:

"StripLogProcedure"

A very important thing to remember, this procedure is NOT linked to the onblockrightclick trigger within the log block. This procedure stands alone.

Last seen on 14:23, 13. Apr 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Guys, all of the images are…
Thu, 01/27/2022 - 16:58

Guys, all of the images are glitched for me, can someone send me an image that shows me how to do this?