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

Started by RedFox on Wed, 09/22/2021 - 12:17

Topic category: Help with MCreator software

Last seen on 12:03, 10. Oct 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 17:54, 18. Oct 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 01:25, 18. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

                 )

      }

}