Skip to content
This repository was archived by the owner on Jul 17, 2022. It is now read-only.

Commit 7085032

Browse files
V1.0.0
1 parent 6bd84f5 commit 7085032

5 files changed

Lines changed: 27 additions & 86 deletions

File tree

Firework.js

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,6 @@ import * as Backend from './Backend.js'
1010
import chalk from 'chalk'
1111
import { createSpinner } from 'nanospinner'
1212

13-
/*function Compile(){
14-
const tokens = Tokenizer.tokenize(fs.readFileSync('./Delay.frw').toString())
15-
16-
const ETree = ExecutionTree.generateETree(tokens)
17-
18-
if(ETree instanceof Backend.Error){
19-
console.log('\x1b[31m Error: ' + ETree.message + '\x1b[0m')
20-
21-
return
22-
}
23-
24-
const compiled = Compiler.compile(ETree)
25-
26-
if(compiled instanceof Backend.Error){
27-
console.log('\x1b[31m Error: ' + compiled.message + '\x1b[0m')
28-
29-
return
30-
}
31-
}*/
32-
3313
function CompileFile(source, path, endPath, config){
3414
//console.log('Compiling entity from ' + source + ' to ' + endPath + ' with ' + path)
3515

@@ -82,7 +62,7 @@ export async function Start(path, com){
8262
await(sleep(100))
8363
}
8464

85-
//try{
65+
try{
8666
let mainfest = null
8767

8868
while(!mainfest || !fs.existsSync(com + '/development_behavior_packs/' + projectName + ' BP/entities/')){
@@ -171,9 +151,8 @@ export async function Start(path, com){
171151

172152
fs.writeFileSync(com + '/development_behavior_packs/' + projectName + ' BP/manifest.json', JSON.stringify(mainfest, null, 2))
173153
}
174-
/*}catch (err){
175-
console.log(chalk.hex('#ffc825').bold('Warning:'), 'Ignored error!')
176-
console.log(err.toString())
177-
}*/
154+
}catch (err){
155+
console.log(chalk.hex('#ffc825').bold('Warning:') + ' Ignored error: ' + err.toString())
156+
}
178157
}
179158
}

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# How to Use
2+
## Install
3+
1. Clone this repository onto your local machine.
4+
2. Make sure you have node installed.
5+
3. Run these commands:
6+
```
7+
npm install util
8+
npm install chalk
9+
npm install inquirer
10+
npm install nanospinner
11+
```
12+
4. Run `npm start`
13+
14+
## Setup Project
15+
1. Enter the path to your bridge. v2 project
16+
2. Choose setup
17+
18+
## Compile
19+
1. Enter the path to your bridge. v2 project
20+
2. Choose compile
21+
3. DON'T CLOSE THE TERMINAL
22+
4. To compile again just restart the dev the server using bridge. v2
23+
124
# Examples
225
## Basic Script
326
This script runns every tick and places a block at the entities position.

data/config.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/world_runtime_template.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

output/world_runtime.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)