Started by
SuperBully
on
Topic category: Help with MCreator software
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:
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
Well i would need to see your code/procedure blocks.
I can't help you other wise.
I had the exact same problem
I can help you fix it
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
https://www.youtube.com/watch?time_continue=334&v=kThAmwU8PyI&feature=emb_logo
Tutorial on how to use item tags.
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:
A very important thing to remember, this procedure is NOT linked to the onblockrightclick trigger within the log block. This procedure stands alone.
Guys, all of the images are glitched for me, can someone send me an image that shows me how to do this?