Can i make procedure that checks if 3x3 special blocks placed?

Started by RedCorr on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can i make procedure that checks if 3x3 special blocks placed?

I need to do thing, that, when you will build structure 3x3 with special blocks, it will transform into structure that gonna work like enchantement table, but instead, it will enchant items not like enchantement table. It will enchant items from 4-10 lvl.

 

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi! I am new to mcreator but…
Fri, 06/12/2020 - 13:14

Hi! I am new to mcreator but I think I can help.

you could make a script that when a block is placed, it checks to see if it is the final part of your structure and if it is, makes it possible to open an adapted enchantment table GUI (not sure how to do that part tho). all you would need is an if script that has loads of 'check block at xyz' things in it. then you could swap out the x- ,y- ,and z- variables inside the block for x/y/z minus or plus one (for some you would need to do more than one - or +).

these are the co-ordinates you would need if you mean 3 on the x and z and 1 on the y (that would be a square flat to the ground) and if the last block placed was in the centre:

x, y, z

x, y, z+1

x, y, z-1

x+1, y, z

x-1, y, z

x+1, y, z+1

x+1, y, z-1

x-1, y, z+1

x-1, y, z-1

 

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this may be confusing, but I…
Fri, 06/12/2020 - 13:15

this may be confusing, but I can probably make it simpler.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, thanks for answering!…
Sat, 06/13/2020 - 19:43

Oh, thanks for answering!
Well, i need to make some structure 3x3x3, but i think i know how to make y x3.
You can also do that for me i will apreciate that.

And, honestly, yes, make it simpler, please.
Im from Russia, and im not understanding from words a lil' bit.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
appreciate***
Sat, 06/13/2020 - 19:48

appreciate***