(Tutorial) How to make logs strippable, without code and able to place blocks on it.

Started by supermj767 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Tutorial) How to make logs strippable, without code and able to place blocks on it.
Tue, 10/18/2022 - 20:16 (edited)

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 :

on player right clicks block

Then make a procedure that looks like this : 

This Procedure

 

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
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem!
Tue, 04/16/2024 - 01:26

No problem!

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i'm on mcreator 2024.1 and i…
Sat, 06/08/2024 - 13:50

i'm on mcreator 2024.1 and i can't find the "is [] tooltype []" block

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the search bar…
Sun, 06/09/2024 - 11:44

You can use the search bar. Try searching for "tooltype." It should work.

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm they changed it to "is […
Sun, 06/09/2024 - 21:26

nvm they changed it to "is [] of item type []"

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured.
Sun, 06/09/2024 - 23:32

I figured.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the problem of not…
Fri, 07/05/2024 - 16:10

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.

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Azertium Go into your…
Fri, 07/05/2024 - 16:36

@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)"

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Omg can't believe it was…
Fri, 07/05/2024 - 17:10

Omg can't believe it was right in front of me this whole time.

Thank you for the help.

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problemo, Good luck on…
Fri, 07/05/2024 - 17:41

No problemo, Good luck on the project! :)

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi,This has worked perfectly…
Thu, 09/05/2024 - 03:36

Hi,
This has worked perfectly so far! However, there's a pretty major problem.
When holding a block or similar item with right-click functionality in the other hand, the procedure is run at the same time as whatever the function of the other item held is.
For example, noob-towering while holding an axe in the main or offhand, and holding the custom strippable block in the other hand, will strip the log beneath whenever you jump up and place a new one, but wont cancel the block placement of the new one like vanilla would.
Is there a fix for this?

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To elaborate on my previous…
Thu, 09/05/2024 - 03:39

To elaborate on my previous reply, holding an axe in the offhand but a vanilla log in the mainhand will only place the log and won't strip it, but holding the axe in the main hand and the vanilla log in the offhand will prioritize stripping the log you're looking at, cancelling out the placement of the log in the offhand. Ideally, this should be how the custom procedure works as well.

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You cold possibly make sone…
Thu, 09/05/2024 - 03:51

You cold possibly make sone special case for when it's in your off hand and somitting else is in your main hand. Or possibly use the cancel global trigger procedure block to prevent this from happening. Just try and mess around with it I'm sure there's a way. Hope this helps! 

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Managed a bit of a…
Thu, 09/05/2024 - 04:20

Managed a bit of a workaround (ignore the fact it's an "else if", just using that for multiple wood types). Doesn't let you strip the custom block as long as you've got a block in the other hand, so it doesn't work entirely like vanilla, but meh.
At this point it would genuinely just be easier to follow one coding tutorial or copy/paste how Minecraft strips logs and go off that, but I don't want to have to rewrite that every single time I want to add another block to the mod using MCreator's UI.
Hope this helps other people at least, and if any of you find a way to improve upon it to be closer to vanilla, please let the rest of us know