Continue Discussion 19 replies
July 2018

Anicc

How many commands can I add to a block?

1 reply
July 2018 ▶ Anicc

SirWill

There is no limit atm.

July 2018

Anicc

/bcmd add
[21:12:43] [Server thread/INFO] [nucleus]: Server 执行指令: /bcmd add
[21:12:43] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Error occurred while executing command: No value present
[21:12:43] [Server thread/ERROR] [Sponge]: Error occurred while executing command ‘bcmd add’ for source DedicatedServer: No value present
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Unknown Source) ~[?:1.8.0_172]
at net.mineyourmind.blockcommand.commands.AddCommand.execute(AddCommand.java:23) ~[AddCommand.class:?]
at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute(ChildCommandElementExecutor.java:255) ~[ChildCommandElementExecutor.class:1.12.2-2705-7.1.0-BETA-3206]
at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:388) ~[CommandSpec.class:1.12.2-2705-7.1.0-BETA-3206]
at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:341) ~[SimpleDispatcher.class:1.12.2-2705-7.1.0-BETA-3206]
at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:328) [SpongeCommandManager.class:1.12.2-2705-7.1.0-BETA-3206]
at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1083) [dh.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71333_ah(DedicatedServer.java:432) [nz.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_172]
/bcmd add

1 reply
July 2018 ▶ Anicc

SirWill

You didn’t specific any command.

1 reply
July 2018 ▶ SirWill

Anicc

/bcmd add
I am using this

1 reply
July 2018 ▶ Anicc

SirWill

Did you read the examples above? You have to write a command behind add.

2 replies
July 2018 ▶ SirWill

Anicc

[BlockCommand] The block White wool is not listed in the config!

1 reply
July 2018 ▶ Anicc

SirWill

Add the block to the config.

July 2018

After

The plugin works fine.
Good job, seriously sponge deserve more plugin like this.

November 2018

hellbringer616

Any chance of adding Mod support?
When i try to add a modded block to the .conf it errors out on me

1 reply
November 2018 ▶ hellbringer616

SirWill

Which command are you trying to run and whats the error?

1 reply
November 2018 ▶ SirWill

hellbringer616

/bcmd add
error is a null exicution error from sponge
Sponge Log: https://pastebin.com/cL5G96va

The plugin works great without modded blocks.

1 reply
March 2019

Column01

Looks like the log is missing. You need to actually specify a command for the command to work.

March 2019

VinceOrlando

How close in terms of usability is this to server signs? Can i set item costs to it like server signs? like items with custom enchants, etc.?

1 reply
March 2019 ▶ VinceOrlando

Column01

No you can’t. If you read the post it clearly lists it’s features there. Not sure if there is an alternative for sponge that has these features

July 2019

Tamashi

on my server i am running:
Pixelmon
Pixelextras
BlockCommand
command-utils-2.4.0
(for the main ones involved)
what im wanting to do is when right clicking on a sign execute this command
cu execute if “cu has in hand pixelmon:poke_ball” “pokeedit 1 ball:poke”

so as to change the pokeball the user’s first pokemon is in. with your plugin however this does not work as i assume its using " to figure out what the command it is supposed to run is. however, the command-utils-2.4.0 also uses " and requires it to be in to find out what argument is what. is there a way to either make " work inside of the blockcommand.conf or is it possible to add conditionals directly through commands and not through something like command-utils-2.4.0. ive tried even using a scoreboard method but pokeedit doesnt recognize @p in the command blocks.

January 2020

Stigmiaios

Is there a way to limit it to once a MC day?

July 2021

FatTony

Is there a way to make a block disappear after clicking? Currently I am using a custom head in my server and I want it to disappear after being used. I have tried adding world edit commands that would replace the head with air but I can’t figure it out. Thanks in advance

1 reply
October 2021 ▶ FatTony

Vi_t_Binh_Hu_nh

I gave the player permission: (blockcommand.command.use) but the player still can’t click on the block
please help me !!!