simplexterrain icon indicating copy to clipboard operation
simplexterrain copied to clipboard

Scripting: Let's get this thing started!

Open valoeghese opened this issue 3 years ago • 12 comments

valoeghese avatar Jul 18 '20 03:07 valoeghese

(Scripting)

valoeghese avatar Jul 18 '20 03:07 valoeghese

Time to rewrite more of the code to use scripting :yeefuckinhaw:

valoeghese avatar Jul 18 '20 06:07 valoeghese

I'm convinced simplex terrain java edition was run on black magic

valoeghese avatar Jul 18 '20 09:07 valoeghese

I basically copied all the code and it broke making stuff underwater 90% of the time

valoeghese avatar Jul 18 '20 09:07 valoeghese

I mean after 1000 blocks or so I found land image

valoeghese avatar Jul 18 '20 09:07 valoeghese

Ok maybe it isn't stuffed up, and this is normal for simplex?

valoeghese avatar Jul 18 '20 09:07 valoeghese

I'm starting to think the "bug" was just really bad luck

valoeghese avatar Jul 18 '20 09:07 valoeghese

It will have different terrain to old worlds due to the RNG sent to the noise being different, but the algorithm itself should be the same. If you really want to keep it exactly the same you can mess with the noise generator class urself :irritat:

valoeghese avatar Jul 18 '20 09:07 valoeghese

make it use ts bc ts. I hate vanilla js

Suyashtnt avatar Dec 06 '20 11:12 Suyashtnt

@Suyashtnt That won't work as the Nashorn engine only supports JS.

Juuxel avatar Dec 06 '20 12:12 Juuxel

oh ok. Atleast add typings so we can use ts to compile to js?

Suyashtnt avatar Dec 07 '20 12:12 Suyashtnt

Lol that's a lot of conflicting files. If we are to reboot this for java 16 we'll need to use either luajs, graal, or write our own script implementaiton

valoeghese avatar May 13 '21 03:05 valoeghese