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

Started by supermj767 on

Topic category: Help with modding (Java Edition)

Last seen on 02:12, 24. Apr 2024
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
Last seen on 02:12, 24. Apr 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All of these procedure…
Tue, 04/11/2023 - 15:12

All of these procedure blocks are in the latest versions, you just got to find them, there is a search bar at the top of the procedure editor.

Last seen on 19:49, 21. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where are they in the latest…
Thu, 05/18/2023 - 15:29

Where are they in the latest version? I've watched multiple videos on how procedures work in general and still can't find half of these things.

Last seen on 02:12, 24. Apr 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can search for them in…
Thu, 05/18/2023 - 15:32

You can search for them in the search bar at the top of the screen.

Last seen on 03:15, 18. Nov 2023
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yo I come for two things…
Tue, 07/18/2023 - 18:42

Yo I come for two things your procedure doesn't do

1: the creative mode check is missing. 
2: when i put a block (which is in my off hand) against a log while i have the ax it skins the wood and puts the block down (which minecraft doesn't do because it just skins the wood) 

and what does the "swing hand" do?

Last seen on 02:12, 24. Apr 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1. I don't know if a…
Fri, 07/28/2023 - 15:39

1. I don't know if a creative check is necessary, it should work just the same as vanilla.

2. Try using the "cancel event" procedure block followed by the rest of the code.

The "swing hand" block does exactly what it says in it that it swings the hand, for example, if you hit a mob in game your hand will swing up towards it, if you place a block it will swing the hand aswell. But since the procedure we're making is not a built in thing we have to add it manually.

Last seen on 18:59, 1. Aug 2023
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it sort of works for me, the…
Sat, 07/29/2023 - 11:07

it sort of works for me, the stripping goes as usual, but as soon as i want to place an item on top of my (unstripped) custom log nothing happens. i can only place a block on top if a sneak, does anyone know how to fix this?

Last seen on 02:12, 24. Apr 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Your problem is happening…
Sat, 07/29/2023 - 15:04

Your problem is happening because you applied the procedure to your custom log, do not apply it to the custom log and it should be fixed.

Last seen on 18:59, 1. Aug 2023
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It indeed now works, thank…
Sat, 07/29/2023 - 18:09

It indeed now works, thank you very much!

Last seen on 02:12, 24. Apr 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem!
Sat, 07/29/2023 - 20:57

No problem!

Last seen on 14:11, 22. Apr 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I fixed the code a little,…
Sat, 02/17/2024 - 17:20

I fixed the code a little, so you can't strip logs in adventure mode, and you dont lose durability in creative. Small touches but it improves the mod experience

Last seen on 02:12, 24. Apr 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nice job! I hadn't thought…
Sat, 02/17/2024 - 19:16

Nice job! I hadn't thought of that when i originally made this.

Last seen on 02:06, 24. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is great. But when I…
Sun, 04/07/2024 - 04:28

This is great. But when I try to place the block it wont let me

Last seen on 02:06, 24. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unless I shift
Sun, 04/07/2024 - 04:38

Unless I shift

Last seen on 02:12, 24. Apr 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is because you applied…
Sun, 04/07/2024 - 11:21

This is because you applied the procedure to your custom block, un-apply that and it will work.