simon816 / Command-Block-Assembly

Compile high-level code into Minecraft commands
https://www.simon816.com/minecraft/assembler
MIT License
272 stars 29 forks source link

Fibonacci CBL example not working (Version compatiblity?) #15

Closed tprk77 closed 4 years ago

tprk77 commented 4 years ago

First off, this is a very cool project.

I'm test out the Fibonacci CBL example, and it doesn't seem to be working. I've two methods of generating the datapack:

  1. python3 mcc.py examples/fib.asm examples/fib.dpd and...
  2. https://www.simon816.com/minecraft/assembler/

With both of those datapacks, there's no output.

I'm trying to use it with Minecraft 1.14.4. Maybe that's not a supported version of Minecraft? I looked through the README, but I didn't see anything about version compatibility.

simon816 commented 4 years ago

It should work, are you running the command? It should be /function fib:main or /function fib:sub_main (sub_ is prefixed in the assembler, and by extension the C compiler)

tprk77 commented 4 years ago

Yep, that was definitely the problem! Sorry, I was mistakenly expecting the setup function to just start printing the sequence. I might have figured that out, but I'm not so familiar with Minecraft commands yet. Thanks!