I need to create a Lock Pick to open iron doors on right click

Started by RedFox on

Topic category: Help with MCreator software

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need to create a Lock Pick to open iron doors on right click
Wed, 09/22/2021 - 12:18 (edited)

pls pls pls, I need to create this Lock Pick.
I just need to know how to change the attribute of the block.
I don't need to make the door automaticly close after some time.

pls pls pls

I'm new to MCreator and Minecraft coding in general

Edited by RedFox on Wed, 09/22/2021 - 12:18
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok look, there is TONS of…
Wed, 09/22/2021 - 15:44

ok look, there is TONS of tutorials for this, just add an If item in main hand of event target entity = YOUR_LOCK

  and then the procedure for the tutorial

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
heres some psudocode, have…
Sun, 10/17/2021 - 21:51

heres some psudocode, have fun:

if [hand.main.item.id == forge.testmod.lock_pick.id] {

      if [mcserver.player.current.raytrace(5).block == forge.minecraft.iron_door_closed] {

                mcserver.world.SetBlockAtPos(

                         forge.minecraft.iron_door_open,mcserver.player.current.raytrace(5).pos

                 )

      }

}

 

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this is confusing, anyone…
Wed, 08/28/2024 - 07:36

this is confusing, anyone wanna give me a link to a youtube tutorial?