MineScript

Submitted by lolsalat on Fri, 01/01/2016 - 15:27
Downloads:
0

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

 

Latest supported Minecraft version
1.8
Release type
In development

Submitted by junh123 on Fri, 01/08/2016 - 04:46

Im the only one that thinks this mod is AMAZING?!
Did you heared about ONE Command blocks, WELP One COMMAND now! no need for the block man...
this is soo awesome :D

Submitted by junh123 on Fri, 01/08/2016 - 04:47

I just wanted to add you can put you script in the save world while giving other people to make the command be effective everywhere.

Submitted by IgorWest on Mon, 01/11/2016 - 17:33

Hmm... Nice mod! ;) Good luck man!

Submitted by lolsalat on Mon, 01/11/2016 - 19:17

I got a question:
Could you please tell me if you got bugs or crashes,
would be awesome and it would make it easier to fix them (if there are any),

lolsalat

@#4 There is a bug where if you dont give an input for a txt file it sends this error. instand of giving a custom error with "Please put a link for a txt file." http://prntscr.com/9qk212
And I have to montion how did you made this mod with MCReator? I dont think its possible with MCReator. and not that I have anything against it, I think you should get the mod without MCReator and release it as your mod and it will get more populared. again nothing against MCReator.