Simon816
Simon816
> Interoperation between Data Packs This is now possible from this commit: c99ed910415e367f17c9897d1f56e5382fbacc74 I'll write some documentation for it once I finish some refactoring. Functions and global variables can now...
> though I would have to figure out how to pass data around. (My guess is with using NBT trickery.. having data packs reference an entity in the shared datapack...
> Why "cmdl" for CBL? I've decided to rename them to `.cbl` files f4c01bdc404bf0ad09138f52b2455a4dbd421274. Also discovered that you can force a specific syntax highlighter on GitHub, so have made them...
> Autoruns or Looped Functions I've improved the event handler API in a256feac679b5583d9b8fcedb618fe52a98455d2. There are two types of events: tag events and advancement events (the wiki describes them [here](https://github.com/simon816/Command-Block-Assembly/wiki/Command-IR#event-handlers)). In...
@FinnT730 it works on both 1.15 and 1.14. I have been testing changes on 1.15 and will likely drop support for 1.14 at some point. If something doesn't work, there...
> `get_item_count(container, item, slot_range=all)` > test every slot in container for each number 1-64, sum them, use result - yes, very slow It's not actually necessary to test specific quantities...
The baked in items/blocks/entities are for convenience. A modded block will be created like so: `new BlockType("modname:blockname")` (I don't have string-based constructor support currently, so cannot do this at the...
I've been making a bit of progress on a [Container](https://github.com/simon816/Command-Block-Assembly/blob/master/cbl/include/Container) API. I've added `Container.get_item_count` The following code snippet gets the number of stone blocks within a chest at position 193,...
As it stands the varargs stuff won't work anyway so this is largely unimportant for now. Being standards compliant is nice but not a requirement for this project.
It's possible to add different sized integer types, but note that it would add some overhead to arithmetic operations. Integers >32 bits would be even more complex (but possible). I...