What's wrong with this code?

Started by Withie The Cryptid on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What's wrong with this code?
Thu, 12/08/2022 - 05:00 (edited)

I'm trying to make it so if you place some blocks in a specific order, it'll summon a giant mob, similar to an Iron Golem.

However, it doesn't seem to work.

Can anyone tell me what I'm doing wrong or how I can fix it?

Also I don't know how to upload screenshots to this website so if someone could tell me how or just ask me to email them then I'd be happy to!

I've also exported a copy of the procedure as well if anyone wants to look at that

 

 

UPDATE: I figured out a way to share screenshots. However the code is so big it's impossible for me to upload a picture of it all and for it all to still be readable so I just took 3 screenshots, 2 are close ups of some important parts and 1 is a wide shot of a large majority of the code.

https://i.pinimg.com/originals/dc/67/40/dc674002a8fd2bdb154bb9ad4ac0a2d…

https://i.pinimg.com/originals/eb/5f/4d/eb5f4de3b09cf53bc86a348a3853e86…

https://i.pinimg.com/originals/6d/76/a7/6d76a7f8b0cd3b55f6eade9ddd2cc26…

Edited by Withie The Cryptid on Thu, 12/08/2022 - 05:00
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are you trying to do it in a…
Thu, 12/08/2022 - 03:06

Are you trying to do it in a specific order, or just a specific shape?

If you just need a specific shape, like the iron Golem, make a procedure that fires when a player places the desired blocks- the procedure should check for the right blocks in the right locations when the block is placed. If it finds them, it should destroy said blocks, and spawn your entity. 

If they need to be placed in a specific order, (sort of how the wither skulls have to be placed last), just have the last block check for the right combination.

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Mindthemoods Yeah, I'm just…
Thu, 12/08/2022 - 05:02

@Mindthemoods

Yeah, I'm just trying a specific shape, and that's what I've been doing, it just doesn't work. I guess maybe the shape is too complicated if that's something that could be an issue.

Also I uploaded screenshots that you can look at to get a better idea of what I might've done wrong