Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/minescript/block/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import net.minecraft.util.Identifier;

public class ModBlocks {
public static final Block TURTLE_BLOCK = registerBlock("turtle_block", new TurtleBlock(FabricBlockSettings.copyOf(Blocks.MANGROVE_WOOD)));
public static final Block TURTLE_BLOCK = registerBlock("turtle_block", new TurtleBlock(FabricBlockSettings.copyOf(Blocks.IRON_BLOCK).strength(5.0f).requiresTool()));

private static Block registerBlockWithoutBlockItem(String name, Block block){
return Registry.register(Registries.BLOCK, new Identifier(MineScript.MOD_ID, name), block);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/minescript/network/TurtleCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static CompletableFuture<BlockPos> step(MinecraftServer server, ServerWor
}
}

// world.breakBlock(entity.turtlePos, true);
world.setBlockState(entity.turtlePos, state, Block.NOTIFY_ALL);
world.setBlockState(oldPos, placingBlock.getDefaultState(), Block.NOTIFY_ALL);

Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"minescript:turtle_block"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"minescript:turtle_block"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minescript:turtle_block"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}