Started by
supermj767
on
Topic category: Help with modding (Java Edition)
Hello, supermj767 here, I'm going to show you how to make the ability to strip custom log blocks whilst having the ability to place on them without the need of code at all!
I have seen many tutorials on "how to make make a block strippable" but none of them work very well.
Simply create a procedure mod element
Use the "player right clicks block" global procedure :
Then make a procedure that looks like this :
And your done!
If you want to make this work for the off hand (left hand) aswell just change every "Item in main-hand" to "Item in off-hand" and it should work.
This procedure acts exactly as it does in regular Minecraft!
Important: Make sure NOT to apply it to your custom log!
If you have a problem please explain in the comments below and I will help you.
Post any questions or feedback in the comments, Thank you!
Edited by supermj767 on Tue, 10/18/2022 - 20:16
THANKS SO MUCH
No problem!
i'm on mcreator 2024.1 and i can't find the "is [] tooltype []" block
You can use the search bar. Try searching for "tooltype." It should work.
nvm they changed it to "is [] of item type []"
I figured.
I have the problem of not being hable to place blocks on my logs unless I sneak.
I know there's a way to fix it, but it seems like I'm not smart enough to figure out what "not applying the proccedure to the custom block" is supposed to mean.
I've tried things but they all didn't work.
@Azertium Go into your custom block element and do not add the procedure to the right click event. It should look like this -
It should say "(no procedure)"
Omg can't believe it was right in front of me this whole time.
Thank you for the help.
No problemo, Good luck on the project! :)