-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
CraftTweakerAll Issues that are needed by CraftTweakerAll Issues that are needed by CraftTweakerbugSomething isn't workingSomething isn't working
Milestone
Description
CTEventManager.register<RightClickBlockEvent>((event) => {
var level = event.player.level;
var pos = event.hitVec.blockPos;
var block = level.getBlockState(pos);
level.schedule()
.sleep(20)
.run((level) => {
level.setBlockAndUpdate(event.hitVec.blockPos, <blockstate:minecraft:dirt>);
})
.sleep(20)
.run((level) => {
level.setBlockAndUpdate(pos, <blockstate:minecraft:grass_block>);
})
.sleep(20)
.run((level) => {
level.setBlockAndUpdate(pos, block);
})
.build();
});gives a captured statement error
Metadata
Metadata
Assignees
Labels
CraftTweakerAll Issues that are needed by CraftTweakerAll Issues that are needed by CraftTweakerbugSomething isn't workingSomething isn't working