Posted August 14, 20205 yr I am making a structure with 4 template pieces . Sometimes it gen properly like this. But mostly,it gen like this. here is the code https://github.com/HungTeen/pvzmod/tree/dev/src/main/java/com/hungteen/pvz/structure/davevilla and this picture maybe helpful.It shows the place of structure block. I have troubled a whole day. hope you guys will help me out. Thanks ! Edited August 15, 20205 yr by _HungTeen_
August 15, 20205 yr Author ok,finally i know the problem. Im just so stupid ! public DaveVillaComponent(TemplateManager manager, ResourceLocation res,BlockPos pos, Rotation rotation) { super(IStructurePieceType.SHIPWRECK, 0); this.templatePosition = pos; this.rotation = rotation; this.res=res; // this.midPos=blockpos; this.setUpTemplate(manager); } I just forgot to change the IStrucurePieceType.SHIPWRECK which I copy from default code.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.