-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the cblockstate command #331
base: fabric
Are you sure you want to change the base?
Conversation
This PR needs updating after the fcapi merge |
src/main/java/net/earthcomputer/clientcommands/command/BlockStateCommand.java
Outdated
Show resolved
Hide resolved
source.sendFeedback(getPropertyLine(entry)); | ||
} | ||
|
||
return 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return 0; | |
return Command.SINGLE_SUCCESS; |
Identifier id = Registry.BLOCK.getId(state.getBlock()); | ||
String idStr = id == null ? "Unregistered" : id.toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id
is never null
.
@@ -0,0 +1,57 @@ | |||
package net.earthcomputer.clientcommands.command; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import order is a bit weird.
This pull request adds a command that lists the properties and their values of a specific block state.
/cblockstate minecraft:oak_slab
/cblockstate minecraft:oak_slab[type=top,waterlogged=true]