Jump to content

Path issue


zuyn123

Recommended Posts

I have tried with home\ and without it but results in the same error

 

 

[Skript] method #load called with (home\plugins\FastAsyncWorldEdit\schematics\schem.schem (File)) threw a FileNotFoundException: home\plugins\FastAsyncWorldEdit\schematics\schem.schem (No such file or directory)

 

 

import:
    com.sk89q.worldedit.extent.clipboard.io.ClipboardFormats
    com.sk89q.worldedit.bukkit.BukkitWorld
    com.sk89q.worldedit.math.BlockVector3
    java.io.File

effect paste schematic %string% at %location% [(1¦(with|including) air)]:
    trigger:
        set {_schematic} to new File(expr-1)
        set {_pos} to BlockVector3.at((x-pos of expr-2), (y-pos of expr-2), (z-pos of expr-2))
        set {_includeAir} to true if parse mark = 1, else false
        await ClipboardFormats.findByFile({_schematic}).load({_schematic}).paste(new BukkitWorld(world of expr-2), {_pos}, true, {_includeAir}, null)
		



command /test:
	trigger:
		paste schematic "home\plugins\FastAsyncWorldEdit\schematics\schem.schem" at player's location with air
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...