• Hey! Register here to create your account, engage with the community, and talk about what is new!

Blubba: The new way to code in DiamondFire!

Proximitynow

Support staff
Support
Joined
Sep 22, 2020
Messages
6
Reaction score
6
Blubba
Blubba allows experienced programmers to write Diamondfire Code using JavaScript.

Hasn't This Been Done Before?
To put a long story short; yes, but not with full support like Blubba.

Why should I choose Blubba over other written Diamondfire languages?
I'll compare Blubba with Prismarine: another written Diamondfire language with JavaScript syntax.
BlubbaPrismarine
Full Support Of DFYesNo
JavaScript SyntaxYesYes
Terminal BasedYesNo (Prismarine is a website)

Usage
Currently Blubba is in-development, meaning a select few have access to Blubba. Blubba will be released to NPM in the near future. If you wish to gain early access to Blubba join Our Discord

Example Code
JavaScript:
const blubba = require("blubba");
blubba.on("JOIN", () => {
  blubba.player_action.SENDMESSAGE("Hello World!");
});
module.exports = blubba.blocks;

For More Information: Join Our Discord

Blubba.png
 

Proximitynow

Support staff
Support
Joined
Sep 22, 2020
Messages
6
Reaction score
6
Question: is generated code close to optimal?

It depends what you write, Blubba does not optimise your code yet (as we have not planned this) it simply translates it from JavaScript into useable DiamondFire code templates
 

Proximitynow

Support staff
Support
Joined
Sep 22, 2020
Messages
6
Reaction score
6
What bout math?
Does it compile math or smth?

Well since this is JavaScript you can put math in an argument that requires a number and it will compile with the number unless it has a variable in it
 
Top Bottom