Started by
RedFox
on
Topic category: Help with MCreator software
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
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
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
)
}
}
this is confusing, anyone wanna give me a link to a youtube tutorial?