querz / mcaselector Goto Github PK
View Code? Open in Web Editor NEWA tool to select chunks from Minecraft worlds for deletion or export.
License: MIT License
A tool to select chunks from Minecraft worlds for deletion or export.
License: MIT License
I get a NoClassDefFoundError when restoring with the command:
java -jar mcaselector-1.8.2.jar --headless --mode import --world "${WORLD}" --input "${FOLDER}" --overwrite
The release notes on 1.8.2 say that javafx is not needed for headless mode, so i thought i will report it.
Interestingly this error is thrown even thought that openjfx is installed, but i guess thats another issue based on my setup or something (Ubuntu 18.04.2 LTS).
read threads: 1 process threads: 8 write threads: 4 Exception in thread "main" java.lang.NoClassDefFoundError: javafx/beans/property/StringProperty at net.querz.mcaselector.io.ChunkImporter.importChunks(ChunkImporter.java:33) at net.querz.mcaselector.headless.ParamExecutor.runModeImport(ParamExecutor.java:210) at net.querz.mcaselector.headless.ParamExecutor.lambda$parseAndRun$4(ParamExecutor.java:83) at net.querz.mcaselector.headless.ParamInterpreter.execute(ParamInterpreter.java:133) at net.querz.mcaselector.headless.ParamExecutor.parseAndRun(ParamExecutor.java:88) at net.querz.mcaselector.Main.main(Main.java:17) Caused by: java.lang.ClassNotFoundException: javafx.beans.property.StringProperty at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 6 more
I dont know why, but i was having problems with running the .jar file, whenever i clicked on it just poped up a window for a split second and then closed. I was trying to fix this problem for a couple of days and finally got a simple answer: "Jarfix"
I think it'd be a gread idea to add another step in the instructions for people who're having the same problem.
Official site of Jarfix: https://johann.loefflmann.net/en/software/jarfix/index.html
Other than that i have nothing to add but keep on the good work!
I have a 1.14 minecraft map, and i decided to add mods to oit, but first I have to go back in versions to 1.12 and export my progress to an 1.12 world file. I don't know how should I do it, can I have some help?
Can I import any exported chunk to other worlds?
As the title says, running mcaselector from the command line with "--headless" still requires JavaFX.
AdoptOpenJDK doesn't ship with that atm and I don't think a GUI library is needed to run headless, perhaps move that stuff out of main to another class?
I'm running mcaselector on a Win 10 machine with the following Java-version:
java version "1.8.0_161"(should be "JRE 8u161-b12")
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
If i open a 1.12 world, everything is fine but if i open a 1.13.1 world the screen looks like this:
This is from a test-world that contains 4 region-files. It looks like mcaselector can detect the region-files just fine but can't load/display the chunk-data.
I took a look at the region-files using NBTExplorer and they are using DataVersion 1628.
Are there any plans to implement support for Bedrock edition format worlds? While it is possible to convert them to Java edition with MCC Toolchest and then back again it would be nice to have native support especially since most of the editors that support Bedrock are not being updated and Amulet is still a long way away from being released.
I am trying to merge two worlds by offsetting all the chunks in world B by +1024 chunks (x).
I encountered some issues in the process, and am wondering if there is a workaround.
First, I had to individually import all files greater than 2MB or the importer would get stuck indefinitely. This took a while but eventually it seemed to work.
When I teleported to the new location, things seemed fine at first, but when I try moving further away the world stops loading new chunks and it isnt able to save when exiting.
Also, all the chests seemed to have been deleted, but they are "invisible" until touched, at which point I noticed all of the chest data (items) were deleted and the chests were empty. Is this intended?
Hi,
1.14 just came out and I've been searching for a tool that will delete chunks on my current 1.13 world so that when I load it in 1.14, new chunks will generate with all the new features (such as new biomes, villager architecture, etc). Will this tool be able to do that?
Hi,
I want translate this useful program to Czech but I don't know, how to properly build this for testing.
I was able to build jar, but it fails on missing net/querz/nbt/Tag class. I can build NBT:4, but have no idea, how to merge them together.
I cannot seem to find the .mca that mcaselector is supposed to look at in order to do anything. I use Twitch in order to play minecraft.
This isn't really an issue, but I'm not sure where else to ask for help. Is there a way to scroll around in the GUI? I've gone full screen and zoomed out as much as possible, but I'd like to scroll around if possible to look at things and zoom in etc.
I don't know if you want to add more features to the tool but after testing it for a few minutes i noticed two small things that could improve the chunk-filter (which, by the way, is an incredible feature).
https://imgur.com/a5RGKl0
https://imgur.com/PseNUj9
I tried clearing the cache multiple times but it still broken
It would be very useful to have a get a chunk info menu item. That way one does not have to resort to another program or viewer to view NBT data.
I have no idea how to open a world...
In Ubuntu19.10 (Debian like)
Java OpenJKD11 and openjfx install,
or with
OracleJDK13 and openjfx install
with
default-jre and openjfx install
with
default-jdk and openjfx install
java -jar mcaselector-1.9.3.jar
=
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/beans/property/StringProperty
at net.querz.mcaselector.Main.main(Main.java:25)
Caused by: java.lang.ClassNotFoundException: javafx.beans.property.StringProperty
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
I'm trying to import some chunks from other worlds into my Minecraft 1.14 custom map world but every time I try to import it freezes when the blue bar is about to reach the end.
If I click cancel then it lets me continue using the program but doesn't import the chunks. I've tried with different settings but no matter what I do it doesn't work. I've tested importing chunks to other worlds and there seems to be no problem.
when you filter chuks to search for entities there is an error in the tridents. Detect the entity: "triden" instead of its correct name "trident"
Hello! When I run mcaselector-1.8.3.jar, I get this crash:
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/beans/property/StringProperty
at net.querz.mcaselector.Main.main(Main.java:25)
Caused by: java.lang.ClassNotFoundException: javafx.beans.property.StringProperty
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
I'm using Xubuntu 18.04, openjdk-8-jdk & openjdk-8-jre
I don't have brain
Just discovered this tool, it will be extremely helpful to regenerate the villages on our private family server map once they release the 1.14.1 corrected version, but there's just too much of hassle to remember the coordinates of everything cause right now we have to use the goto to center on it, or maybe I didn't understand how to move otherwise, it would be much simpler if we could move around the map like on google map or with the arrow keys so we could center on the stuff we want manually and delete the chunks we want quicker.
I'm just curious as to whether or not this could be used to change the biome of a particular chunk. Not regenerate the terrain or anything, just change it (primarily to affect which mobs spawn in an area).
Thank you!
Can this do things like the old mcedit? Could I purge a chunk and make it so its just empty space instead of regenerating when loading? aka not deleting the chunk file but editing the blocks selected.
Like this: https://github.com/TOGoS/TMCMR
Hey Querz,
I was reading your installation instructions, and I applied some of that "brainpower" as per the requirements section.
I found that downloading a JRE 8+ from Oracle is quite a hassle, and --in most cases-- unnecessary.
In fact, a perfectly suitable JRE can already be found in C:\Program Files (x86)\Minecraft Launcher\runtime\jre-x64
I think you could improve the installation instructions with that information.
(but I don't know exactly how ... if I did, I would have created a PR)
When attempting to query multiple biomes from a single biome filter, only the last biome in the comma separated list is selected
Example: snowy_tundra,snow_taiga
only selects snowy_taiga biomes
OS: Win 10 (x64)
Java: v8 (1.8.0_114)
Minecraft: 1.14.4
Hi,
I was trying to use mcaselector in headless mode, but the lastUpdate filter does not function properly. I was doing some test with the following command
java -jar mcaselector-1.9.3.jar --headless --debug --mode "select" --output ./test.csv --world server/world/region --query "LastUpdate >=\"2020-08-28 11:13:43\""
The time is in the future, but there are still chunk being selected and the same chunk are selected regardless of using > or <
EDIT: The query filter simply looks like it is not working. It always select the same chunks regardless of the filter.
This software is very good. I want to repost it to the Chinese forum,and I will translate it into Chinese and hope to get your consent.
Okay, so whenever I zoom in or out of the map, the (cache?) breaks, and what I mean is that the regions/chunks unload and go grey. The only way I could fix this is by clearing the cache everytime this happens. At the same time, whenever I try to export chunks across worlds, it does not work, either by doing nothing at all or by scattering parts of the chunks in random places.
hello,
we want convert a old world (1.7.10) to a new minecraft version (1.12.2).
Our steps:
Next step is to change the block ids of the world. We have a mapping (old block id, new block id).
It is possible to write a query to change all block ids??
java -jar mcaselector-1.9.3.jar --headless --mode change --world atlantis --query<???>
Thanks for help!
I am assuming JRE 8+ requirement means that mcaselector should be compatible with Oracle JDK 13 too, but it is not:
> "C:\Program Files\Java\jdk-13.0.1\bin\java.exe" -jar mcaselector-1.9.1.jar
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/beans/property/StringProperty
at net.querz.mcaselector.Config.setLocale(Config.java:87)
at net.querz.mcaselector.Config.loadFromIni(Config.java:129)
at net.querz.mcaselector.Main.main(Main.java:24)
Caused by: java.lang.ClassNotFoundException: javafx.beans.property.StringProperty
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 3 more
Hello,
how exactly am I supposed to export chunks into another world? I tried exporting them from one world and copying the region files to another one, but the exported chunks just aren't there. Can you test and elaborate on how I'm supposed to do it correctly? Thank you.
java.lang.NullPointerException
at net.querz.mcaselector.version.anvil113.Anvil113ChunkDataProcessor.drawChunk(Anvil113ChunkDataProcessor.java:14)
at net.querz.mcaselector.tiles.TileImage.drawChunkImage(TileImage.java:141)
at net.querz.mcaselector.tiles.TileImage.createMCAImage(TileImage.java:125)
at net.querz.mcaselector.tiles.TileImage.generateImage(TileImage.java:96)
at net.querz.mcaselector.io.RegionImageGenerator$MCAImageProcessJob.execute(RegionImageGenerator.java:106)
at net.querz.mcaselector.io.ProcessDataJob.run(ProcessDataJob.java:21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
This could be a silly question, But, Will this be updated to work with 1.16. I have used it for my 1.13.x to 1.14.x world and would love to use it again to clean my world to use in 1.15.x and 1.14.x
This would be a great enhencement if you could adjust bounding boxes of structures as chunks are imported with an offset.
Great tool - thanks!
There should be a feature to prune the map. Meaning after you select all the chunks you want to keep, you should be able to go to Selection > Prune Chunks and it should delete all chunks that aren't selected in your selection
I recently read about MCA selector which lets you trim your minecraft world. I downloaded it and decided to give it a try. I loaded my world but the screen didn't change.All i could see were the grid lines. I tried loading different worlds but nothing worked.I didn't get any errors messages. I moved the camera left and right but all i could see were the grid lines. Any ideas about that problem?
Hello Querz, great work with this tool.
I was wondering if it's possible to add the feature to place the chunks you are importing, instead of overwriting the existing world (.mca). Because I'm currently manually renaming the .mca until it's in a chunk I want.
edit:
I was to quick to type, when entering a chunk that I manually moved the server crashed.
But it would be great if it was possible to select where to place the new chunks.
For those who doesn't use a qwerty keyboard, it would be handy to change the control keys.
Could it be possible to implement Biome Changes?
Jo! I spend hours and hours trying to fix the bugged world of me and my friends, until i finally tried your program. It just f*cking worked and everything was fine.
Thx man! Keep up the good work!!
I've been trying to get this to work for hours. wtf am I doing wrong?
java.exe -jar D:\downloads\mcaselector-1.9.jar --headless --mode select --world C:\Users\Jack\Desktop\nw\paperclip 1.14.2\world --output C:\Users\Jack\Desktop\nw\paperclip 1.14.2\test.csv --query "xPos >= -300 AND xPos <= 300 AND InhabitedTime < 1 hour"
It says "Multiple values for parameter world" no matter what I try.
Hi, how are you? I try to import chunks and when import and select the chunks in Offset, the program import the chunks in other chunks not selected. Any help?
I am looking to import a part of one world into another world, but I get this error:
Error: null
java.lang.NullPointerException
at java.io.File.<init>(File.java:277)
at net.querz.mcaselector.headless.ParamExecutor.parseFile(ParamExecutor.java:322)
at net.querz.mcaselector.headless.ParamExecutor.runModeImport(ParamExecutor.java:205)
at net.querz.mcaselector.headless.ParamExecutor.lambda$parseAndRun$4(ParamExecutor.java:84)
at net.querz.mcaselector.headless.ParamInterpreter.execute(ParamInterpreter.java:133)
at net.querz.mcaselector.headless.ParamExecutor.parseAndRun(ParamExecutor.java:89)
at net.querz.mcaselector.Main.main(Main.java:17)
These are the commands I use. The second one gives the error:
Hunter@dynmap:/mnt$ java -jar mcaselector-1.9.2.jar --headless --mode export --world /mnt/customterrain/customterrain/world/region/ --output /mnt/paper/paper/ct/ --query "xPos > -16 AND xPos < 16"
Hunter@dynmap:/mnt$ java -jar mcaselector-1.9.2.jar --headless --mode import --world /mnt/paper/paper/world/region/ --input /mnt/paper/paper/ct/ --debug
I am running Ubuntu 18.04 with OpenJDK 1.8.0 and with the JavaFX package installed.
edit: I didn't use my brain to read the documentation. This might actually be working, but I was using block offsets instead of chunk offsets. Give me a day to test it.
Running the jar using OpenJDK Java 8 rather than the Oracle's Java 8 crashes immediately, with the exception:
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/scene/paint/Color
at net.querz.mcaselector.Config.<clinit>(Config.java:12)
at net.querz.mcaselector.Main.main(Main.java:11)
Caused by: java.lang.ClassNotFoundException: javafx.scene.paint.Color
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 2 more
It's not clear whether this error is due to the use of OpenJDK or if you intend to support anything other than Oracle-brewed Java, but thought I would post this here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.