New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to get the CuboidClipboard or a working Clipboard from Schematic? #313
Comments
Also, using the FAWE light API, I get this error on async or sync:
Using this: |
You could have used:
However I have added a getClipboard() method to the Schematic class.
What do you mean by the size being air? Anywho, the clipboard has to work since With regard to lighting, you can mess around with changing the mode in the config (lighting-mode: 2 is best) |
Clipboard clipboard ClipboardFormat.SCHEMATIC.getReader(new FileInputStream(file)).read(null); Changed to that. Same thing.
That would be good, but if I don't have to use the Schematic class, is useless...
Edited the post... Sorry for that :/ (Meant to be the size being right)
So what are the schematic coordinates? I just did a debug here, so you can see what's going on. Here is the debug link (not the whole debug, because that would be like 1000 lines). So I do a loop on the clipboard to get all the blocks:
Then, I use this to debug where c is the clipboard, e is a custom event and e.getBlock() the vector with the current x, y and z.
The schematic is not empty and it works well with the WorldEdit CuboidClipboard. Also, I'm running all of this 20 ticks after the schematic being loaded, so I'm sure everything is loaded. Also, the paste method was working right with the Schematic class. (I'm not pasting now because I don't need to) If you need more details, ask them. I need this solved ASAP. |
Want to show me the code? |
Btw, I just updated it, but now I'm getting this at startup: 08:52:21 INFO: ====== NO NMS BLOCK PLACER FOUND ====== 08:52:21 INFO: Download the version of FAWE for your platform I downloaded the 1.8 version and it stopped working. |
Bump |
Also, I get an error: (The error happens exactly before the things I posted above. |
Hi, I need to get the Clipboard/CuboidClipboard from FAWE Schematic which I get from this:
ClipboardFormat.SCHEMATIC.load(file)
I already tried to get it from the private clipboard variable (using reflection), but it returns an empty clipboard... (the size is right, but everything is air)
Then I tried to use CuboidClipboard directly using the WorldEdit API, and it works, but it leaves a lot of shadow bugs. I tried the nms method which is called on FAWE asnyc queue:
nmsWorld.x(new BlockPosition(x, y, z));
Any ideas how to get the Clipboard from the Schematic...? I need to scan it and remove some blocks.
The text was updated successfully, but these errors were encountered: