hyperadev / scaffolding Goto Github PK
View Code? Open in Web Editor NEWSchematic library for Minestom
License: MIT License
Schematic library for Minestom
License: MIT License
Readme specifies com.crystalgames
as the group id whereas the actual group id is net.crystalgames
This is an issue so I can remember to make this project MIT license when I wake up.
Describe the bug
So when you trying to load up a schematic via Scaffolding.fromFile or via the FileInputStream the response is always null. There is no exception too which would be thrown. BTW my entire completeable future is beeing closed but i have no idea what why and whats caused it...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should throw an error and should load when the schematics are right, load them up.
Screenshots
1.
2. (Debug)
(- Please ask for a full code snippet)
Desktop (please complete the following information):
Describe the bug
MCEdit schematics are loaded with a different block pallet when compared to how WorldEdit handles the same schematic. Currently, state Ids can only go from 0 to 255 if addBlocks is not used. This is an issue since Minestom block state Ids can go up to ~15000. To fix the issue, blockId and blockData should be mapped together to get the true stateId, such as how WorldEdit does.
I have a have a solution that just needs to be cleaned up when I have a bit of free time. I just wanted to create an issue so I can resolve it ;)
The schematic should be building at/around the area where the schematic was saved from.
The schematic is saved using WorldEdit on Fabric like so
However when the schematic is pasted with schematic.build(spawnInstance, new Pos(0, 100, 0))
the schematic is actually built with the centre emerald block at 9, 119, 8
instead of 0, 99, 0
I have a schematic created and loaded which contains Signs with Text on it.
The Signs on loading does not have a Text
Does Schematics contain the Text of the Signs? if yes -> They dont get loaded correctly (I have BlockHandler for Signs registered)
Describe the bug
When placing a schematic it produces:
java.lang.ArrayIndexOutOfBoundsException: Index 1048576 out of bounds for length 24
at java.base/java.util.ImmutableCollections$ListN.get(ImmutableCollections.java:680)
at net.minestom.server.instance.DynamicChunk.getSection(DynamicChunk.java:109)
at net.minestom.server.instance.Chunk.getSectionAt(Chunk.java:95)
at net.minestom.server.instance.DynamicChunk.setBlock(DynamicChunk.java:72)
at net.minestom.server.instance.batch.ChunkBatch.apply(ChunkBatch.java:216)
at net.minestom.server.instance.batch.ChunkBatch.singleThreadFlush(ChunkBatch.java:188)
at net.minestom.server.instance.batch.ChunkBatch.lambda$apply$0(ChunkBatch.java:156)
To Reproduce
Steps to reproduce the behavior:
Schematic schem = Scaffolding.fromFile(...);
schem.build(..., Pos.ZERO);
(unpack for schematic, WE is ok with it, and it seems to have everything expected)
lightouse.schem.zip
Expected behavior
should build
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem 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.