#(Bill Gates) how to delete a schematic?

42 messages · Page 1 of 1 (latest)

hollow flicker
#

i know i can delete them manually in the files, but how can i do that with scripts? and not just any schematic or all of them, but one with a specific name

urban fiberBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

hollow flicker
#

is it only with delete_file?

thorny turret
#

!m delete_file

dusk cradleBOT
# thorny turret !m delete_file

Deletes the given file from the server.
File path starts in the Denizen folder.
Require config file setting "Commands.Delete.Allow file deletion".

Object

server

Input

ElementTag

Tags

<server.has_file[<file>]> Deprecated in favor of !tag util.has_file

Examples
- adjust server delete_file:schematics/house.schem
thorny turret
#

i mean its in the example

hollow flicker
#

does it accept tags in the path argument?

thorny turret
#

i think almost anything in denizen accepts tags

hollow flicker
#

if i fill in a tag with the name of the schematic

#

nice

#

i'll try it out

#

uh, do schematics only appear in the folder once the server restarts?

nimble bronze
#

!mech server.save

dusk cradleBOT
nimble bronze
#

edits to files only exist in ram unless saved

hollow flicker
#

oh, thanks

nimble bronze
#

haven't tested whether that applies to schematics but it is a generally applicable principle across plugins

hybrid basalt
#

Schematics have their own save operation iirc

#

!c schematic

dusk cradleBOT
# hybrid basalt !c schematic
Group

world

Syntax

schematic [create/load/unload/rotate/save/flip_x/flip_y/flip_z/paste (fake_to:<player>|... fake_duration:<duration>) (noair) (mask:<material_matcher>)] [name:<name>] (filename:<name>) (angle:<#>) (<location>) (area:<area>) (delayed) (max_delay_ms:<#>) (entities) (flags)

Short Description

Creates, loads, pastes, and saves schematics (Sets of blocks).

Description

Creates, loads, pastes, and saves schematics. Schematics are files containing info about blocks and the order of those blocks.

Denizen offers a number of tools to manipulate and work with schematics.
Schematics can be rotated, flipped, pasted with no air, or pasted with a delay.

All schematic command usages must specify the "name" argument, which is a unique global identifier of the schematic in memory.
This will be created by "create" or "load" options, and persist in memory until "unload" is...

hybrid basalt
#

^

nimble bronze
#

oh yeah that too, because you can technically make like ghost schematics that you never save

hybrid basalt
#

They're only saved to file if you specifically save them, otherwise they're kept in memory iirc

#

Yeah ^, can be handy for copying areas for example

hollow flicker
#

ooohhh that's so cool

#

i put the adjust server save, and the schematic save too, will see if it works

hybrid basalt
#

Might be wrong, but pretty sure you only need the schematic save to save it to file

nimble bronze
#

schematics have to be specifically saved I think

#

but if you're fuckin with files it's good to know about the server save mechanism as well

#

anyway all of this can be answered by

#

!tias

dusk cradleBOT
# nimble bronze !tias
Info: tias

Try it and see!

If somebody pulled this up for you, you're probably asking a question of the public channel that's easier and faster to figure out by just attempting your idea in-game and looking at the result of that attempt.

hollow flicker
#

it worked guys

#

thank you