voxelers / mcthings Goto Github PK
View Code? Open in Web Editor NEWA Python framework for creating 3D scenes in Minecraft and Minetest
License: Apache License 2.0
A Python framework for creating 3D scenes in Minecraft and Minetest
License: Apache License 2.0
And it seems that the Minetest plugin has already some support for it:
After the research at #50 the decision is to invest in the support of the Python API in Minetest.
https://github.com/arpruss/raspberryjammod-minetest
After our research at #45 the plugin is usable as it is right now. The next steps:
I have already fork the repository at: https://github.com/acs/raspberryjammod-minetest/blob/master/README.md
The original developer seems to have lost motivation about the plugin, but he is answering issues: arpruss/raspberryjammod#49
STL is a format used for 3D printing. In the project In the project AbadIA they are reproducing the Abadia large building using STL generated from a CSV file with the heights data..
The idea is to read this STL files and reproduce them inside Minecraft. In this case they are using as unit building block a 1x1x1 block, just the same than in Minecraft. So It should be easy to recreate in Minecraft the building.
The steps are:
Generating entities and capturing events could provide life to our cool scenes.
A really cool feature is that you can build your house inside Minecraft and the capture it in McThings in order to use it (copy, scale ...).
I think that schematic feature in Minecraft goes in that direction: reusing designs created inside Minecraft.
https://minecraft.gamepedia.com/Schematic_file_format
https://www.minecraft-schematics.com/
https://www.curseforge.com/minecraft/mc-mods/schematica
https://minecraftstuff.net/schematics
https://www.planetminecraft.com/resources/projects/?share=schematic
Right now scenes can be stored in files using pickle. So this is the way to go. In the future, other formats as JSON or RAML could be considered for scenes, so you can edit this files directly to modify the scenes.
But, how to share scenes? In the Minecraft community there are two ways to share creations right now:
It seems there are two file formats: "Schematics" file and "World Save" file. But probably both of them describe the creation at block level.
From the experience in:
understand the impact of https://minecraft.gamepedia.com/Java_Edition_1.13/Flattening and how it is managed in Spigot with the Legacy Material support.
In which direction of the x,y,z build things?
x: width
y: height
z: large
We build in both cases from the lower value to the higher value. So if initial x is -10 and the width is 30, the end x is 20. The same for y and z.
By default we use the player position as the initial pos for x, y, z. Following this approach, the initial thing is built nex to the player, without covering it (at least with the first thing).
With that, tools like WorldEdit can be used to interoperate with scenes.
WorldEdit seems to be the leading tool for MC/MT world editors: https://worldedit.enginehub.org/en/latest/. It has just released its 7.1version https://matthewmiller.dev/blog/introducing-worldedit-71/ in Jan 2020, so it is alive.
Update also the doc, in special with the support for Schematics, which is the killer feature probably.
Farm .. ¿which one? https://minecraft.gamepedia.com/Farming (food one probably)
Not sure yet what is the best platform, but the Things based platform of McThings is ideal for creating the scenes using blocks.
https://github.com/google/blockly
http://robotblocks.appspot.com/static/minecraft/index.html
https://forum.minetest.net/viewtopic.php?f=11&t=13316
https://en.wikipedia.org/wiki/Blockly
«Blockly uses visual blocks that link together to make writing code easier, and can generate code in JavaScript, Lua, Dart, Python, or PHP. It can also be customised to generate code in any textual programming language.[2]»
Someone could upload a pip package like:
mcthings-cool-houses
with more things related to houses, and McThings must load it and make the things available.
https://github.com/juntosdesdecasa/minecraft/blob/develop/server/data/python/scene1_0.ipynb
This complex scene is not well moved. It is great for debugging the move of things.
For example, to create a town with a line of houses in one side of a street and another at the other side, we can just build the second one as a mirror of the first one.
Road (defined by dots joined by lines)
Analyze and implement what is needed in McThings so it works with Minetest: https://www.minetest.net/
Minetest has support also for the Python API: https://github.com/arpruss/raspberryjammod-minetest
So it should work out of the box mainly.
Try to keep the ASL license as short as possible.
https://issues.apache.org/jira/browse/LEGAL-124
The header is:
# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
and about the authors and copyright:
# Author/s (©): <name of the author/s>
Not sure if the © introduces problems. Probably we can just use (c).
Probably this work in a natural way. If you continue adding things to the Creation, you are evolving it. And also, you can remove builds. Probably, when a thing is unbuild, it must be removed from the creation also. So closing this issue because it works out of the box!
The town must include all things that exists now and also:
The idea is to implement the wall around a town using the end_position property the town.
It could be a labyrinth of tunnels ...probably easier to build and very attractive. To exist from a cave is exciting.
This is important to debug issues in the future when new versions that can break the API appear.
After builiding the thing the end_position must be defined to other things could be positioned relative to the last thing built. It is essential for doing compositions.
It is already done for town.
The tests must be executed with a Minecraft server running. They are integration tests. Right now I feel that the best approach is to leave them as independent tests like samples.
Once the development has finished it is time to create the v0.20.0 release:
Use as reference: Bitergia/prosoul#51
Our users are also developers, so thing about the above distinction. The real doc is the first one. The second one (notebooks) is more a kind of guide.
After finishing #47 it is time to join the three levels in a common building.
The goal is to share creations in the easiest way.
The size of the creations is minimal (560 bytes in the current creation sample).
The complete API supported at the server is:
https://github.com/zhuowei/RaspberryJuice
There is a mcpi modded to include the full API: https://github.com/zhuowei/RaspberryJuice/tree/master/src/main/resources/mcpi/api/python/modded/mcpi
With it, for example, entities can be created. And there are a lot of them:
We are using right now the 1.11 version which includes:
1.11 - spawnEntity, setDirection, setRotation, setPitch
In 1.12 we have also:
1.12 - getEntities, removeEntities, pollProjectileHits, events calls by player and entity
so we need to move to it. In javierete.com we have:
root@javierete:~# ls -1 /home/minecraft/spigot/plugins/
PluginMetrics
RaspberryJuice
bStats
raspberryjuice-1.11.jar
We need to migrate to the last one.
and specifically with projects like:
https://github.com/martinohanlon/mcpi (python lib)
https://minecraft-stuff.readthedocs.io/en/latest/ (similar concept than McThings but more basic)
https://github.com/zhuowei/RaspberryJuice (Java)
https://github.com/arpruss/raspberryjammod-minetest (minetest)
Events in Minecrafts, like hitting a block, can be collected from the Python API. So when the player hits a block (for example a button), the scene could change and show/hide Things, for example.
In order to have quality releases, we need to execute all tests automatically.
If it is not too expensive to implement in Things (or Scenes), it can be interesting. Let's explore it!
Once we have tested that Python can be used in:
It seems that all the mod/plugin version for the Rasperry PI API share the same code, because all stopped in 1.12 version. But I need to review it. For example, for minetest, it has not been changed since 4 years ago.
Lines are not in the air, so unbuild them is not to fill the with air but with a dirt block.
It seems it is possible to execute Python API directly in the client side with:
https://github.com/arpruss/raspberryjammod
You install a mod for the minecraft client (Forge are mods for client side?)
This map could be a list of coordinates with the thing to be build in each one.
It could be used to automate the creation of the scene, to share them, to evolve ...
Including the version in Scene it will be serialized to the scene file and it can be used later for debugging purposes, migration strategies ...
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.