GithubHelp home page GithubHelp logo

rotolonico / datapack-converter Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 25 KB

Convert Minecraft command block chains to a datapack!

Home Page: https://youtu.be/249syz1gths

Python 92.50% mcfunction 7.50%
datapack minecraft

datapack-converter's Introduction

DigitsRecognition

An example of digits recognition using Machine Learning backpropagation AI in Unity, C#

Details

I have used the MNIST database to train the network. It's a simple 1 hidden layer network with only 32 neurons.

datapack-converter's People

Contributors

rotolonico avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

datapack-converter's Issues

"Anvil" not found.

PS C:\Users\Falling\Downloads\Datapack-Converter-main\Datapack-Converter-main> python3 datapack_converter.py "G:\minecraft\falling\instances\Simply Optimized\.minecraft\saves\new\world\0" 4956 300 3238 4921 301 3224
Traceback (most recent call last):
  File "datapack_converter.py", line 1, in <module>
    from utils.world_loader import get_blocks_from_coordinates
  File "C:\Users\Falling\Downloads\Datapack-Converter-main\Datapack-Converter-main\utils\world_loader.py", line 1, in <module>
    import anvil
ModuleNotFoundError: No module named 'anvil'

When I tried to install anvil it said "Already satisfied"

I tried to use anvil-new install and it said:

Traceback (most recent call last):
  File "datapack_converter.py", line 1, in <module>
    from utils.world_loader import get_blocks_from_coordinates
  File "C:\Users\Falling\Downloads\Datapack-Converter-main\Datapack-Converter-main\utils\world_loader.py", line 1
    import 'anvil-new'
           ^
SyntaxError: invalid syntax

doesnt work properly

C:\Users\Rondy\Desktop\Datapack-Converter-main>python.exe datapack_converter.py "C:\Users\Rondy\AppData\Roaming.minecraft\saves\test2" 10 67 2 7 73 0 -d -n night_night-1.1
Writing datapack with the following chains at C:\Users\Rondy\AppData\Roaming.minecraft\saves\test2\datapacks\night_night-1.1

  • CHAIN r0
    r0_0 | gamerule commandBlockOutput false

  • CHAIN i0
    i0_0 | scoreboard objectives add clock dummy "cycle"
    i0_1 | scoreboard objectives setdisplay sidebar clock

  • CHAIN r1
    r1_0 | execute store result score time clock run time query daytime
    r1_1 | execute if score time clock matches 18000 run gamerule doDaylightCycle false

  • CHAIN r2
    r2_0 | execute as @A at @s if data entity @s SleepingX run summon minecraft:tnt
    Traceback (most recent call last):
    File "C:\Users\Rondy\Desktop\Datapack-Converter-main\datapack_converter.py", line 299, in
    find_chains(blocks)
    File "C:\Users\Rondy\Desktop\Datapack-Converter-main\datapack_converter.py", line 153, in find_chains
    write_datapack(args.world_path, chains, "map_name" if args.n is None else args.n, args.f, args.d, all_blocks,
    File "C:\Users\Rondy\Desktop\Datapack-Converter-main\utils\datapack_writer.py", line 73, in write_datapack
    os.rename(os.path.join(datapack_path, "data", "converted_datapack"),
    FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\Users\Rondy\AppData\Roaming\.minecraft\saves\test2\datapacks\night_night-1.1\data\converted_datapack' -> 'C:\Users\Rondy\AppData\Roaming\.minecraft\saves\test2\datapacks\night_night-1.1\data\night_night-1.1'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.