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:
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
@#5 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 /sscript something.txt
@#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.
@#4.1 We have checked the mod and it was made with MCreator. He used the base from the command creation from MCreator and kept the format. He just used the View code and added custom code here. This is also one of the MCreator use cases - as the toolkit to ease advanced mod creation; that's why this mod is here. And I guess this mod will be quite popular as it was choosen for the mod of the week.
@#7 Thanks :)