Started by
supermj767
on
Topic category: Help with Minecraft 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
somethings like that for example won't show on search bar, instead go to Entity Data
where is the "is _ tooltype _"?
nvm i found it, all i need now is the top part with the = sign, but i cant find it
nvm got that too.
this is still not letting me place blocks on it.
You can't place blocks on it. L tutorial.
Don't apply the procedure to your custom log.
Nolsjokes it wont show if you search it up.
But you can find it in entity data
don't pay attention to my comment above I didn't know he found it
You are still unable to place anything on the unstripped logs without crouching? I'm using mcreator version 2021.3
You should be able to place blocks on the unstripped logs using this method on any version of MCreator.
This (and all other strip codes) have the same problem. It completey takes over the right click of the log, which means that you cannot place any blocks on it anymore (without sneaking). Every time you try to right-click this code activates. If you have an axe, it get stripped. If not, then the code silently exits.
I have not yet solved it, since I am very new to MCreator, but there should be an "else" statments that calls base.doTheNormalThing-someting if you are not holding an axe in your hand.
Just need to figure this out....
Make sure NOT to apply this procedure to the custom log, then it will work.
something more updated? i mean, half of that boxes didn't show on recent versions