#(chikage_) can i do something like this

21 messages · Page 1 of 1 (latest)

pliant furnace
#

With denizen, can I do something like, if I put the right object at a specific entry, it destroys / makes invisible the blocks of my choice around (which would be even better, it would destroy them from the point of view of the player who made the action but not the other players on the server).

cyan dockBOT
#

(chikage_) can i do something like this

cyan dockBOT
#

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.

cloud axle
#

sure, not particularly difficult

#

!c showfake

lunar sailBOT
# cloud axle !c showfake
Group

player

Syntax

showfake [<material>|.../cancel] [<location>|...] (players:<player>|...) (d:<duration>{10s})

Short Description

Makes the player see a block change that didn't actually happen.

Description

Makes the player see a block change that didn't actually happen.
This means that the server will still register the block being what it was before the command,
and players not included in the command will still see the original block.

You must specify a location (or list of locations), and a material (or list of materials).
The material list does not have to be of the same size as the location list (materials will be repeated automatically).

Optionally, specify a list of players to show the ch...

cloud axle
#

you can showfake it as air to make it vanish client-side

#

need more info to give advise on the trigger mechanism

pliant furnace
#

And anything for the detection of placing a specified block at specfied place ?

drowsy shoal
#

!c flag

lunar sailBOT
# drowsy shoal !c flag
Group

core

Syntax

flag [<object>|...] [<name>([<#>])](:<action>)[:<value>] (expire:<time>)

Short Description

Sets or modifies a flag on any flaggable object.

Description

The flag command sets or modifies custom data values stored on any flaggable object (the server, a player/NPC/entity, a block location, ...).
See also !language flag system.

This command supports data actions, see !language data actions.

Flags by default are added permanently (or for the lifetime of the object they're attached to).
You can optionally specify a system time the flag will expire at, using either a DurationTag or a TimeTag.
If a DurationTag is used, it will be equivalent to: <util.time_now.add[<your_duration_here>]>

drowsy shoal
#

to flag a location ^

#

!e places block

lunar sailBOT
# drowsy shoal !e places block
Group

Player

Event Lines

player places block player places <item>

Switches

using:<hand_type> to only process the event if the player is using the specified hand type (HAND or OFF_HAND).
against:<location> to only process the event if block that this new block is being placed against matches the specified LocationTag matcher.
type:<material> to only process the event if the block placed matches the MaterialTag matcher input.

Triggers

when a player places a block.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.location> returns the LocationTag of the block that was placed.
<context.material> returns the MaterialTag of the block that was placed.
<context.old_material> returns the MaterialTag of the block that was replaced.
<context.item_in_hand> returns the ItemTag of the item in hand.
<context.hand> returns the name of the hand that the block was in (HAND or OFF_HAND).
<context.against> returns the LocationTag of the block this block was placed against.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

Examples
on player places block:
after player places torch using:off_hand:
on player places cactus against:sand:
# This example process the event only if the player places any block that isn't tnt.
on player places block type:!tnt:
- announce "<player.name> has placed a block that isn't TNT. Lucky!"
drowsy shoal
#

Has Known Location True - this adds switches in:<area> + location_flagged:<flag name>.

#

eg on player places grass_block location_flagged:my_flag:

drowsy owlBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@pliant furnace