Started by
RedCorr
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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
this may be confusing, but I can probably make it simpler.
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.
appreciate***