Nukkit icon indicating copy to clipboard operation
Nukkit copied to clipboard

Cannot give self command block as op

Open TheCoder2019-exe opened this issue 3 years ago • 6 comments

Expected Behavior

/give @s command_block would give 1 command block

Actual Behavior

There is no such item with name command_block

Steps to Reproduce

Run /give @s command_block

Crashdump, Backtrace or Other Files

I did not include a /debugpaste link, kept throwing an error I made sure there aren't duplicates of this report I made sure I am using an up-to-date version of Nukkit I Made sure the bug/error is not caused by a plugin

/debugpaste error:

java.io.IOException: Server returned HTTP response code: 503 for URL: https://hastebin.com/documents
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) ~[?:?]
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) ~[?:?]
        at cn.nukkit.utils.HastebinUtility.upload(HastebinUtility.java:30) ~[nukkit-1.0-SNAPSHOT.jar:?]
        at cn.nukkit.utils.HastebinUtility.upload(HastebinUtility.java:62) ~[nukkit-1.0-SNAPSHOT.jar:?]
        at cn.nukkit.command.defaults.DebugPasteCommand$1.onRun(DebugPasteCommand.java:36) [nukkit-1.0-SNAPSHOT.jar:?]
        at cn.nukkit.scheduler.AsyncTask.run(AsyncTask.java:23) [nukkit-1.0-SNAPSHOT.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]

TheCoder2019-exe avatar Feb 01 '21 05:02 TheCoder2019-exe

Did you install the command block plugin?

Sleepybear avatar Feb 01 '21 06:02 Sleepybear

Also, @s does not work, try using the actual name

Sleepybear avatar Feb 01 '21 06:02 Sleepybear

Where can the command block plugin be found? @s worked fine for me

TheCoder2019-exe avatar Feb 01 '21 08:02 TheCoder2019-exe

Go to the cloudburstmc.org website and you can find it under the Resources section.

Sleepybear avatar Feb 04 '21 02:02 Sleepybear

Command blocks are not implemented so you need to use their numeric id with /give

PetteriM1 avatar May 21 '21 17:05 PetteriM1

Command blocks are not implemented so you need to use their numeric id with /give

What's their ID?

TheCoder2019-exe avatar May 21 '21 17:05 TheCoder2019-exe