#(hmoe) gate made of blocks

1 messages · Page 1 of 1 (latest)

serene rock
#

I want to make a script that moves a gate between open and closed every so often, on server time. I haven't worked with placing/breaking blocks before so im not sure how to do this. Would it be best to load schematics? the gate shouldnt be more than 4 wide by 8 tall.

night compassBOT
#

(hmoe) gate made of blocks

night compassBOT
#

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>

chrome karma
#

!c switch

sullen edgeBOT
# chrome karma !c switch
Group

world

Syntax

switch [<location>|...] (state:{toggle}/on/off) (duration:<value>) (no_physics)

Short Description

Switches state of the block.

Description

Changes the state of a block at the given location, or list of blocks at the given locations.

Optionally specify "state:on" to turn a block on (or open it, or whatever as applicable) or "state:off" to turn it off (or close it, etc).
By default, will toggle the state (on to off, or off to on).

Optionally specify the "duration" argument to set a length of time after which the block will return to the original state.

Works on any interactable blocks, including:

  • the standard toggling levers, do...
chrome karma
#

this opens/closes doors etc

serene rock
#

oh sorry, i want to make like a big gate made out of blocks, not just a minecraft door

#

im thinking schematic makes the most sense for this. im trying schematic create but my area: is not a valid area object. I used the selector tool and noted the area, is that not right?

serene rock
#

ahhh this is so annoying i cant figure out how to get a valid area object

serene rock
#

ok new question: how do i get a noted area's tag? im trying to get the location of a noted area

chrome karma
#

i mean you could do display entities, you could do schematic rotate, you could just rotate everything manually

serene rock
#

similar to player.location but i want noted_area.location

sullen edgeBOT
# chrome karma !t .areas
Cannot Specify Searched Tag

Multiple possible tags: <LocationTag.areas[(<matcher>)]>, <PlayerTag.areashop.owned>.

chrome karma
#

!t location.areas

sullen edgeBOT
# chrome karma !t location.areas

Returns a ListTag of all noted areas that include this location.
Optionally, specify a matcher to only include areas that match the given AreaObject matcher text.

Group

areas

Returns

ListTag(AreaObject)

Examples
# This example shows all areas at the player's location.
- narrate "You are inside: <player.location.areas.parse[note_name].formatted>"
# This example finds which "Town" area the player is in.
- narrate "You are inside the town of <player.location.areas[town_*].first.flag[town_name].if_null[Nowhere!]>"
chrome karma
#

!t area.note_name

sullen edgeBOT
#
Possible Confusion

Did you mean to search for cuboidtag.note_name?

sullen edgeBOT
# chrome karma !t area.note_name

Gets the name of a noted CuboidTag. If the cuboid isn't noted, this is null.

Returns

ElementTag

Examples
# For example, this might return something like:
# "The cuboid you are currently in is noted as: my_cuboid!"
- narrate "The cuboid you are currently in is noted as: <player.location.areas[cuboid].first.note_name.if_null[null! You aren't in a cuboid]>!"
chrome karma
#

oh oop you meant location of an area

serene rock
#

thanks. those all use <player.location>, what if i just want to get the coordinates of the gate location?

chrome karma
#

you can do .center

#

or .blocks

#

idk depends on what you want to do

serene rock
#

i want to spawn this schematic with the origin at the red wool

chrome karma
#

!c schematic

sullen edgeBOT
# chrome karma !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...

chrome karma
#

huh damn i remember there being an origin arg

#

wait a sec

serene rock
#

there is sorta

#

the usage example is

- schematic paste name:MySchematic <player.location> noair```
i just want the <player.location> to be <noted_area.location>
chrome karma
#

The 'create' option requires an area and a center location as input.

#

then you'd just schematic.origin

#

!t schematic.origin

sullen edgeBOT
serene rock
#

schematic.origin returns 0,0,0

#

maybe it would be easier to just paste it at raw coordinates. I want to do /ex schematic paste name:gate5 -1774,-290,91,world but the schematic just doesnt appear

#

ugh ignore all of this. its all my mistake. THIS WORKS:
/ex schematic paste name:gate5 -1778,90,-288,18,259,1.20-world

serene rock
#

any ideas to make this look better? im pretty happy with it, but im new to particles :)

#

this is the script. its... really ugly. i guess i could use a loop with some logic that adds to the particle spawning?

chrome karma
#

😨

#

if you're just doing THAT

#

modifyblock the locations to air

#

..i thought you wanted it to slide open or stuff like that

chrome karma
#

its ok to kinda hardcode this stuff, that is, if the gate is truly unique

sullen edgeBOT
chrome karma
#

lemme see how you do ur particles

serene rock
#

Oh I thought I pasted

#

its ugly but i wanted to test the functionality

#

multiple schematics for each "Gate" phase lol

radiant haven
#

have you thought about adding some data/velocity to the particles? and also some blockcrack

#

might help it feel more dynamic

#

example i made a while back

cosmic horizon
#

that might have even been his inspiration xd

#

also your bosses are legendary Ricky

serene rock
radiant haven
#

I think I posted it somewhere on here

#

You mount falling blocks on top of armor stands to control their speed

#

And you can use shulkers to allow for collision

#

Found it

#

It’s very out of date code though, I need to update it to modern standards

#

Especially the disguise part

wraith dune
#

display entities might be better for that now :)

radiant haven
#

yeah, main downside is that you can walk through them without shulkers
and if you want shulkers, you need armor stands
so you may as well just mount falling blocks since it's easier to configure

#

up to personal preference i guess

#

simplest way is to just spawn in display entities using the schematic then move them down yeah

#

could also do barriers that are removed roughly as the display entities move past them

#

would be basically indistinguishable