publicstaticfinalBlockEntry<MinecartAnchorBlock>MINECART_ANCHOR=REGISTRATE.block("minecart_anchor",MinecartAnchorBlock::new).initialProperties(SharedProperties::stone).blockstate((c,p)->p.simpleBlock(c.get(),p.models().getExistingFile(p.modLoc("block/cart_assembler/"+c.getName())).register();pu...
原版Minecraft 在ShovelItem中定义了上面这一字段。该字段存储的是一系列可以加快挖掘速度的方块,然后在getDestroySpeed方法中引用了它: publicfloatgetDestroySpeed(ItemStackstack,BlockStatestate){returnEFFECTIVE_ON.contains(state.getBlock())?efficiency:1.0F;} Forge 的调整 由于镐、斧、铲所涉及到的方块实在是太...
Returns ItemStack - Returns a copy of this item stack.getCanDestroygetCanDestroy(): string[]Get the list of block types this item can break in Adventure mode.Returns string[]Notes:This function can't be called in read-only mode.getCanPlaceOngetCanPlaceOn(): string[]...
Stack can be changed with commands by setting slot inventory.0 使用命令设置 inventory.0 以更改物品堆 Fields: 字段: item - item stack to display. Same format as in inventory (example:{id: "minecraft:dirt", Count: 1}) item - 要展示的物品。与物品栏中物品格式相同(举例: {id: "minecraft:...
Advanced Pick Block now copies the items inside when used on a Boat with Chest (MCPE-153410) 高级选择方块在运输船上使用时会复制其中的物品 (MCPE-153410) Resistance effect is no longer one level weaker than it should be (MCPE-156012)
Can be crafted by putting a Glass Block in the middle of four Amethyst Shards on a Crafting ...
Data Value (or damage value) identifies the variation of the block if more than one type exists for the Minecraft ID. Stack Size is the maximum stack size for this item. While some items in Minecraft are stackable up to 64, other items can only be stacked up to 16 or 1. (NOTE: The...
Gives the simulated player a particular item stack. Parameters itemStack:@minecraft/server.ItemStack Item to give. selectSlot?:boolean=false Whether to set the selected slot once given. Returnsboolean Notes: This function can't be called in read-only mode. ...
There are five different types of sculk blocks to be found in the deep dark. If you want to mine them, you will need to stay stealthy and use Silk Touch. The sculk block is a great decorative block thanks to its atmospheric glow. The sculk sensor is a redstone block that detects vibr...
- toStack(int count). This method creates an ItemStack representing this entry and is called by the '/oneblock get' command ('count' is the item count of the returned ItemStack).- generate(ServerWorld world, BlockPos pos). This method is called to generate the content of this entry in...