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

Started by SuperBully on Fri, 07/10/2020 - 16:38

Topic category: Help with MCreator software

Last seen on 15:06, 7. Aug 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 04:00, 6. Aug 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 15:42, 4. Aug 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 15:42, 4. Aug 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 15:06, 7. Aug 2020
Joined Jul 2020
User points:

User statistics:

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