xgkkp / mcmaketest Goto Github PK
View Code? Open in Web Editor NEWMinecraft test level generator
License: Other
Minecraft test level generator
License: Other
I have removed the need for the NBT module. I tried to push my patch but I don't have permission so here it is!
diff --git a/maketest.py b/maketest.py
index dbd4999..e4a4e89 100644
--- a/maketest.py
+++ b/maketest.py
@@ -22,7 +22,6 @@ Reqires:
"""
from pymclevel import mclevel
-import nbt
import base64
from gzip import GzipFile
@@ -43,75 +42,33 @@ def get_int(question, default=0):
except:
return default
-def PlayerTag():
def Itemstack(item, slot, count=1):
def Create_LevelDat(filename):
"Creates a blank level.dat suitable for initializing fresh worlds"
def FillChunk(chunk):
"""Creates the block data for a new chunk, based on program options"""
@@ -189,7 +146,7 @@ if name == 'main':
os.makedirs(worldpath)
world = mclevel.fromFile(worldpath)
I used git clone to make a copy of your repository after doing the same for pymclevel and NBT. However, the maketest.py script cannot see the pymclevel and nbt modules, and neither module has a proper "installation" procedure. Did you do anything else, like copy the other modules into a module path or modify the path or something? Please let me know as I am very eager to use this code. :-) Thanks!
Jack.
Just thought I would add this, as it's a pretty big known issue:
The test world loads fine inside minecraft the first time, however once you quit+save, the next time you load the level all the players inventory for this world will have reset, along with the player position.
I suspect it is something to do with the way the player details are being written in the .nbt.
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.