your current location:首页 > news>MinecraftWorldedEdit plug -in CraftScript script use tutorial

MinecraftWorldedEdit plug -in CraftScript script use tutorial

2024-12-17 06:04:25|Myriagame |source:minecraft skins

The script allows you to complete some simple tasks when you don't need to learn Java, understand how to compile the worlddit, or re -build the wheel.Craftscript is written in JavaScript.

The script support before the Worldedit version 0.8 is different.

Note: You must install the Rhino script runtime to use this feature.

Installation script

Create a Plugins/Worldedit/CraftScripts/path (if it is a single mode, the .mineCraft path) in your server root directory) and put the CraftScript script into the directory.Script files generally have .js extensions.

Note: Do not run the unbelievable script.

Built -in script

When downloading the worldedit, you will bring four scripts (if you need to use it, remember to copy them from the download folder to Plugins/Worldedit/CraftScripts/folder).

> << i> square >
File name Parameters Introduction
Maze.js << i> Block > [] [] Generate a 2 -square -high maze with a specified block as a wall.notWool is rendered in the game, using the V parameter to make it vertically generated.The image file must be placed in Plugins/Worldedit/Drawings/Path.not> Create a simple note box sequence with redstone connection.Example: Quickshot.js 1A# 1C 2F 2F
ROOF.JS Create a pyramid -shaped roof on your constituency.
Running script/cs << i> script name > [ ...]/. s [i> parameter ...] (Run the previous script again)/<< i> script name > JS [ Parameter …] (shortcut)

This command runs the script.Don't forget the .js extension.If the script uses them, you can add additional parameters.

Install Rhino

When your Java version does not have the need for components (you will receive "Failed to Find An Installed script Engine."), You need to manually install Rhino Javascript Engine.If you receive "RefernceError,", installing Rhino should be able to solve your problem.

You should install Rhino because the Rhino version comes with Java is generally low.

Script

Please check the script development page.

The script is written in JavaScript.

Possibilities

If you install some Java libraries, Worldedit will automatically use them to provide more functions.The process of installing these libraries is to find the required files (the list below) after downloading and put it into your Plugins/Worldedit/path.After restarting the server, Worldedit should be able to find these libraries.

Truezip
The better support of ZIP files Save as Truezip.jar
Rhino (JavaScript Engine) Must -use items using script function Extract js.jar

Note that the file name must be exactly the same as in the table.