minecraft-combine-command

Transform an array of Minecraft commands into a single one

Usage no npm install needed!

<script type="module">
  import minecraftCombineCommand from 'https://cdn.skypack.dev/minecraft-combine-command';
</script>

README

minecraft-combine-command

Transform an array of Minecraft commands into a single one

Installation

npm install minecraft-combine-command

Usage

var combine = require('minecraft-combine-command');

var commands = [
    'say Foo',
    'say Bar',
    'say Baz'
];

combine(commands); // 'summon MinecartCommandBlock ~ ~1 ~ {Comman...'

License

MIT.