MineScript

Published by lolsalat on
Share this on:
Downloads:
406
Upvotes: 5
Project status
In development
Supported Minecraft versions
1.8

Jump to downloads

With this mod you can write scripts out of minecraft commands and execute them ingame

 

I'M LOOKING FOR NEW IDEAS FOR A NEW VERSION (LIKE ADD LUA OR SOMETHING LIKE THAT) PLEASE TELL ME WHAT YOU WANT IN A COMMENT!

 

 

 

Maps using this Mod:

 

Villager Skyblock :

  • A Skyblock based map, where you can get EVERYTHING by trading with villagers
  • The only thing you have is a book to summon villagers and a block of dirt with a tree
  • faster tree-growing
  • mobs don't destroy Blocks
  • and MUCH more

 

Downloads:

  • for Minescript 1.1.1 and up: Link
  • for Minescript 1.0.1: Link
  • for Minescript 1.0.0: Link

 

 

Explained by a user:

 

"you create a txt file and put commands in it every line = new command with slashs. then get the link to the txt file something like this Desktop\something.txt and type /script Desktop\something.txt or put the txt file in your world folder an type /mscript something.txt" -junh123

 

 

/jpscript

 

executes a javascriptfile directly from pastebin!

Syntax:

           /jpscript <PastebinName>

 

Example:

          /jpscript TMeb4xJZ

would execute this script: link

 

 

 

/jmscript:

 

the same as '/mscript', but you don't put minecraft-commands in the script, but javascript commands.

 

script file Examples:

Basic functions: http://pastebin.com/Gd02FHpj

Cutscene: http://pastebin.com/tUSr2TnB

Robot Carol in minecraft (with minescript): http://pastebin.com/Sg4p3Ks7

 

 

 

/script:

 

e.g:

File C:\Minescript\Example.txt :

   /say this is a Example

   /say every line is one Command

   /say you cannot only use /say but also EVERY other minecraft-command :

   /say setblock :

   /setblock ~ ~ ~ minecraft:stone

   /say kill

   /kill @e[name!=@p]

   /say and MUCH more

   /say you could also execute very long comments for example:

   /give @p written_book 1 0 {pages:["{\"text\":\"Test Book\",\"bold\":true,\"color\":\"blue\"}"],title:TEST,author:ExarnCun,display:{Lore:["This is a Test"]}}

 

Ingame:

Just Type /script <path>

in this case:

   /script C:/Minescript/Example.txt

and then all of the commands will be executed!

Of course you can also use this command in commandblocks and books!

 

 

/mscript (before Minescript v1.1.0 : /sscript):

 

It's the same as as /script but it executes the script directly from the world folder

eg:

File C:\Users\Example\Appdata\Roaming\.minecraft\saves\Test_World\Example.txt :

   /say this is a Example

   /say every line is one Command

   /say you cannot only use /say but also EVERY other minecraft-command :

   /say setblock :

   /setblock ~ ~ ~ minecraft:stone

   /say kill

   /kill @e[name!=@p]

   /say and MUCH more

   /say you could also execute very long comments for example:

   /give @p written_book 1 0 {pages:["{\"text\":\"Test Book\",\"bold\":true,\"color\":\"blue\"}"],title:TEST,author:ExarnCun,display:{Lore:["This is a Test"]}}

 

Ingame:

Just Type /mscript <name>

in this case:

   /mscript Example.txt

and then all of the commands will be executed!

Of course you can also use this command in commandblocks and books!

 

 

/setvar

 

Use this command to store numbers in variables!

Syntax: /setvar <name> <value>

 

e.g.:

/setvar x 1

/setvar y 1+5*3

/setvar z %x%+0.5

 

after setting variables you can use them in your scripts like:

/say %x%

/setvar x %x%+1

/tp @p %x% loc.y loc.z

if %x%>10 end /say X>10 (X=%x%)

 

All variables are stored in your world's save folder!

 

 

Conditions:

 

you can use 'if'-Conditions in your script-file like this:

  • if <condition> end <command>

if you want to create one or more 'elseif's just do that :

  • if <condition1> end <command1> if <condition2> end <command2> if <condition3> end ...

if more than one command has a true condition, only the first one will be executed.

 

for example:

in the following example it will say 'TRUE' because 1==1 is a true condition

  • if 1==1 end  /say TRUE      

 

in the following example it wont say anything because 1==2 is a false condition

  • if 1==2 end  /say TRUE      

 

in the following example it will only say '1=1' because it's the first condition to be true

  • if 1==2 end  /say 1=2       if 1==1 end  /say 1=1      if 1>0 end /say 1>0

 

There are also some blueprints:

  • loc.x will be replaced with the x-coordinate of the player / commandblock executing this command
  • loc.y will be replaced with the y-coordinate of the player / commandblock executing this command
  • loc.z will be replaced with the x-coordinate of the player / commandblock executing this command
  • more comeing soon . . .

for example:

in the following example the nearest player will be killed, if the player / commandblock executeing this command is on the x-coordinate '12'

  • if loc.x==12 end /kill @p

 

in the following example the player's / commandblock's coordinates will be printed in the chat

  • /say X:loc.x Y:loc.y Z:loc.z

All mathematical functions, operators and expressions

 

 

 

 

Tools used to create this mod:

 

 

 

Changelog:

 

1.4.0

  • added command 'jpscript'
  • added pastebin support ('jpscript')

1.3.4

  • final Bug-fixes

1.3.3

  • Bug-fixes

1.3.2

  • Bug-fixes

1.3.1

  • Bug-fixes

1.3.0

  • added command 'jmscript'
  • added javascript support (for command 'jmscript')

1.2.1

  • minor performance updates

1.2.0

  • added command 'setvar'
  • added variables

1.1.1

  • 'mscript'-worldcrash-bug fixed
  • removed download of Version 1.1.0

1.1.0

  • added 'if'-conditions
  • command 'sscript' is now called 'mscript'
  • minor bug-fixes

1.0.1

  • added command 'sscript' (thanks @junh123 for the idea!)

1.0.0

  • released mod

 

Modification files
MineScript v1.4.0.zip - Version 1.4.0 - Stable - NEWESTUploaded on: 07/25/2016 - 20:58   File size: 934.84 KB
MineScript v1.3.4.zip - Version 1.3.4 - Stable - OLDUploaded on: 07/25/2016 - 20:58   File size: 931.26 KB
MineScript v1.2.0.zip - Version 1.2.0 - Stable - OLDUploaded on: 07/25/2016 - 20:58   File size: 93.42 KB
MineScript v1.1.1.zip - Version 1.1.1 - Stable - OLDUploaded on: 07/25/2016 - 20:58   File size: 91.04 KB

how do you make it work???!?!??!?!? I T I S G R E A T!
wowwowwow! Epic mod! i left an upvote!

Great job! This is one of the best mods I have ever seen. This should be mod of the week! Also it could be used for teaching basic coding skills!

@#10 thanks! I might be adding some other features as well, but first I'm gonna create a tutorial in my next holidays (I hope I can find some time for this project). So I'm not completly inactive but I don't have much time at the moment

Holy stttt your mod is amazing bro! The best MCreator mod I think. I really like to use MCreator to make advanced things, and this is the best example of how powerful MCreator can be. Congratulations and keep the good work!

@#9.1 You're welcome! Yeah I'm learning java with Mcreator also :) MCreator is great 'cause it does the work for the stuff easily without write for yourself classes from scratch to make a simple block/item/whatever. We use it for the base objects and behaviors and then the we do the code for our own things. That's why I love MCreator.