Skip to content

Commit

Permalink
0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevertus committed Apr 27, 2018
1 parent e8aca3a commit d0b241d
Show file tree
Hide file tree
Showing 21 changed files with 206 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
package-lock.json
lib/modals/cam.mcscript
41 changes: 41 additions & 0 deletions Core Modals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Minecraft Script Core Modals
`- parameter -`
` [optional] `
` <allowed types>`
` this | or that`
### console
> `log( - text <string | number> - , [entity] )`
### ToDo
Logges into a console for the Minecraft Chat
## Minecraft Cam Modals
These are integrated Modals from my Camera Datapack for Mapmaking.
Install it [here](https://github.com/Stevertus/McCam).
### cam.pos1
> `cam.pos1( [location <string>] , [rotation <string> ] )`
Sets the first position to a optional point.
### cam.pos2
> `cam.pos2( [location <string>] , [rotation <string> ] )`
Sets the second position to a optional point.
### cam.start
> `cam.start( [entity] )`
Starts the camera process.
### cam.stop
> `cam.stop( [entity] )`
Stops the camera process.
### cam.time
> `cam.time( length <number> , [entity] )`
Sets the cam duration to a custom value (for an optional entity).
### cam.noParticles
> `cam.noParticles( [entity] )`
Disables the particles for the given entity.

### cam.noText
> `cam.noText( [entity] )`
Disables the messages for the given entity.
6 changes: 3 additions & 3 deletions README-DE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
![](https://i.imgur.com/YedWe7W.png)

# Minecraft Script Dokumentation
> Update 0.1.2: [Alle Änderungen](https://github.com/Stevertus/mcscript/releases)
> Update 0.1.3: [Alle Änderungen](https://github.com/Stevertus/mcscript/releases)
Minecraft Script ist eine Programmiersprache für Entwickler der mcfunctions, sowie für die Minecraft Map und Package Erschaffer. Die .mcscript Dateien werden dabei zu mcfunction compiled und generiert. Dies bietet dem Entwickler erweiterte Möglichkeiten, wie zum Beispiel Modals, Loops, Variablen, Konstanten und Command-Wrapping.

Expand Down Expand Up @@ -634,15 +634,15 @@ Auch sind optionale und vordefinierte Argumente verfügbar:
<a id="systemModals"></a>
### 3.16 System Modals

Es gibt schon einige vordefinierte Modals, die hilfreich sein könnten. Bitte schaue dir dafür die spezifischen Dokumentationen [hier](#) an.
Es gibt schon einige vordefinierte Modals, die hilfreich sein könnten. Bitte schaue dir dafür die spezifischen Dokumentationen [hier](https://github.com/Stevertus/mcscript/blob/master/Core%20Modals.md) an.

Du hast Ideen, welche Modals unbedingt als Standart-Modal aufgegriffen werden müssen? Sende mir einfach die [Konfigurationsdatei](#24_Dev_mcscript_modals_54) zur Überprüfung.
<a id="ide"></a>
## IDEs und Syntax Highlighting


* GitHubs Atom Editor: link here (credit: [MrYurihi](https://atom.io/users/MrYurihi))
* Notepad++: [see code](https://github.com/Stevertus/mcscript/blob/master/Nodepad%2B%2B%20Highlighter.xml) | [download](http://www.mediafire.com/file/4534q4tual7zccm/Nodepad++%20Highlighter.xml)
* Notepad++: [see code](https://github.com/Stevertus/mcscript/blob/master/Nodepad%2B%2B%20Highlighter.xml) | [download](http://download1496.mediafire.com/x2k7loq5imbg/4534q4tual7zccm/Nodepad+++Highlighter.xml)

Jetzt bleibt nichts mehr übrig als: **Happy Developing**
--------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Minecraft Script Documentation
==============================
> Update 0.1.2: [All Changes](https://github.com/Stevertus/mcscript/releases)
> Update 0.1.3: [All Changes](https://github.com/Stevertus/mcscript/releases)
Minecraft Script is a programming language for developers of mcfunctions, Minecraft maps and packages. The .mcscript files are therefore compiled and generated to the function format. This enables the developer extended possibilities, such as Modals, Loops, Varibles, Constants and Command-Wrapping.

Expand Down Expand Up @@ -619,7 +619,7 @@ There are optional and predefined arguments, too:
<a id="systemModals"></a>
### 3.11 System Modals

There are already some helpful predefined modals. Please read the specific documentation [here](#).
There are already some helpful predefined modals. Please read the specific documentation [here](https://github.com/Stevertus/mcscript/blob/master/Core%20Modals.md).

You have ideas which modals should be a standart? Send me your [configuration file](#ownmodal) to check.
<a id="ide"></a>
Expand All @@ -628,7 +628,7 @@ You have ideas which modals should be a standart? Send me your [configuration fi
> Not available yet
* GitHubs Atom Editor: link here (credit: [MrYurihi](https://atom.io/users/MrYurihi))
* Notepad++: [see code](https://github.com/Stevertus/mcscript/blob/master/Nodepad%2B%2B%20Highlighter.xml) | [download](http://www.mediafire.com/file/4534q4tual7zccm/Nodepad++%20Highlighter.xml)
* Notepad++: [see code](https://github.com/Stevertus/mcscript/blob/master/Nodepad%2B%2B%20Highlighter.xml) | [download](http://download1496.mediafire.com/x2k7loq5imbg/4534q4tual7zccm/Nodepad+++Highlighter.xml)

Now there´s nothing left than: **Happy Developing**
---------------------------------------------------
Expand Down
16 changes: 12 additions & 4 deletions _changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@

Minecraft Script Changes
==============================
### v0.1.3
* added: Minecraft Cam datapack modals
* added: Core Modal documentation
* changed: the load.mcscript will automaticly generate the mcscript/load file and execute it
* changed: the corresponding file generator for load.mcscript
* changed: . are now allowed in variable names
* changed: the mcscript folder will be automaticly deleted! save important files!!
* fixed: the forWeb.js file
### v0.1.2
* changed: fixed asat to "at @s"
* changed: raycasting is more accurate
Expand All @@ -9,6 +17,10 @@ Minecraft Script Changes
* added raycast entity option
* added raycast target option
* added Nodepad++ Highlighting
## v0.1.1
* fixed: forEach function was written uppercase, which is not allowed by Minecraft
* fixed: raycast score didn´t reset and messed up
* added: now cases can accept a direct value instead of "== [value]"
## v0.1
* added a changelog
* added table of contents for documentation
Expand All @@ -25,7 +37,3 @@ Minecraft Script Changes
* added a custom scripts folder for all files
* added a switch functionality
____
**v0.1.1**
* fixed: forEach function was written uppercase, which is not allowed by Minecraft
* fixed: raycast score didn´t reset and messed up
* added: now cases can accept a direct value instead of "== [value]"
2 changes: 1 addition & 1 deletion documentation.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p><img src="https://i.imgur.com/YedWe7W.png" alt=""></p>
<h1 id="minecraft-script-dokumentation">Minecraft Script Dokumentation</h1>
<blockquote>
<p>Update 0.1: <a href="https://github.com/Stevertus/mcscript/blob/master/_changelog.md">Alle Änderungen</a></p>
<p>Update 0.1.3: <a href="https://github.com/Stevertus/mcscript/blob/master/_changelog.md">Alle Änderungen</a></p>
</blockquote>
<p>Minecraft Script ist eine Programmiersprache für Entwickler der mcfunctions, sowie für die Minecraft Map und Package Erschaffer. Die .mcscript Dateien werden dabei zu mcfunction compiled und generiert. Dies bietet dem Entwickler erweiterte Möglichkeiten, wie zum Beispiel Modals, Loops, Variablen, Konstanten und Command-Wrapping.</p>
<p>Wer das ausprobieren möchte oder Beispiele anschauen möchte, kann meinen playground <a href="http://www.stevertus.ga/tools/mcscript">stevertus.ga/tools/mcscript</a> besuchen und etwas herumspielen.</p>
Expand Down
2 changes: 1 addition & 1 deletion documentation_en.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<h1><a id="Minecraft_Script_Documentation_2"></a>Minecraft Script Documentation</h1>
<blockquote>
<p>Update 0.1: <a href="https://github.com/Stevertus/mcscript/releases">All Changes</a></p>
<p>Update 0.1.3: <a href="https://github.com/Stevertus/mcscript/releases">All Changes</a></p>
</blockquote>
<p>Minecraft Script is a programming language for developers of mcfunctions, Minecraft maps and packages. The .mcscript files are therefore compiled and generated to the function format. This enables the developer extended possibilities, such as Modals, Loops, Varibles, Constants and Command-Wrapping.</p>
<p>Everyone who wants to try, can visit my playground <a href="http://www.stevertus.ga/tools/mcscript">stevertus.ga/tools/mcscript</a> and can play with its function.</p>
Expand Down
9 changes: 9 additions & 0 deletions examples/functions/mcscript/dowhile3.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#######
# Compiled from /examples/functions/do-while-Loops.mcscript
# to examples/functions/mcscript/dowhile3.mcfunction
#
# Generated by Minecraft Script for 1.13
######
tellraw @a [{"text":"console => ","color":"aqua"},{"text":"commands","color":"white"}]
execute if entity @s[tag=!mcscriptStop] if entity @s[tag=loop] run function examples:mcscript/dowhile3
tag @s[tag=mcscriptStop] remove mcscriptStop
10 changes: 10 additions & 0 deletions examples/functions/mcscript/foreach1.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#######
# Compiled from /examples/functions/forEach.mcscript
# to examples/functions/mcscript/foreach1.mcfunction
#
# Generated by Minecraft Script for 1.13
######
say hey
scoreboard players add i i 1
execute if entity @s[tag=!mcscriptStop] if score i i matches ..9 run function examples:mcscript/foreach1
tag @s[tag=mcscriptStop] remove mcscriptStop
10 changes: 10 additions & 0 deletions examples/functions/mcscript/foreach5.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#######
# Compiled from /examples/functions/forEach.mcscript
# to examples/functions/mcscript/foreach5.mcfunction
#
# Generated by Minecraft Script for 1.13
######
say hey
scoreboard players add i i 1
execute if entity @s[tag=!mcscriptStop] if score i i matches ..9 run function examples:mcscript/foreach5
tag @s[tag=mcscriptStop] remove mcscriptStop
10 changes: 10 additions & 0 deletions examples/functions/mcscript/foreach6.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#######
# Compiled from /examples/functions/forEach.mcscript
# to examples/functions/mcscript/foreach6.mcfunction
#
# Generated by Minecraft Script for 1.13
######
scoreboard players operation result result *= i i
scoreboard players add j j 1
execute if entity @s[tag=!mcscriptStop] if score j j matches ..10 run function examples:mcscript/foreach6
tag @s[tag=mcscriptStop] remove mcscriptStop
12 changes: 12 additions & 0 deletions examples/functions/mcscript/raycast2.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#######
# Compiled from /examples/functions/raycasting.mcscript
# to examples/functions/mcscript/raycast2.mcfunction
#
# Generated by Minecraft Script for 1.13
######
particle flame ~ ~ ~
scoreboard players add raycast2 mcscript_raycast 1
execute positioned ^ ^ ^1 unless block ~ ~ ~ air run tag @s add mcscriptStop
execute positioned ^ ^ ^1 if entity @s[tag=!mcscriptStop] if block ~ ~ ~ air if score raycast2 mcscript_raycast matches ..10 run function examples:mcscript/raycast2
execute if score raycast2 mcscript_raycast matches ..10 if entity @s[tag=mcscriptStop] positioned ^ ^ ^1 run setblock ~ ~ ~ stone
tag @s[tag=mcscriptStop] remove mcscriptStop
9 changes: 9 additions & 0 deletions examples/functions/mcscript/while4.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#######
# Compiled from /examples/functions/while-Loops.mcscript
# to examples/functions/mcscript/while4.mcfunction
#
# Generated by Minecraft Script for 1.13
######
tellraw @a [{"text":"console => ","color":"aqua"},{"text":"commands","color":"white"}]
execute if entity @s[tag=!mcscriptStop] if entity @s[tag=loop] run function examples:mcscript/while4
tag @s[tag=mcscriptStop] remove mcscriptStop
9 changes: 9 additions & 0 deletions examples/functions/mcscript/while6.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#######
# Compiled from /examples/functions/while-Loops.mcscript
# to examples/functions/mcscript/while6.mcfunction
#
# Generated by Minecraft Script for 1.13
######
tellraw @a [{"text":"console => ","color":"aqua"},{"text":"commands","color":"white"}]
execute if entity @s[tag=!mcscriptStop] if entity @s[tag=loop] run function examples:mcscript/while6
tag @s[tag=mcscriptStop] remove mcscriptStop
Loading

0 comments on commit d0b241d

Please sign in to comment.