# Cheats

**URL:** https://forum.makecode.com/t/cheats/9929
**Category:** Minecraft
**Created:** [September 7, 2021, 8:16pm UTC](https://forum.makecode.com/t/cheats/9929 "2021-09-07T20:16:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lender\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lender_l/32/4948_2.png) [@Lender\_L](https://forum.makecode.com/u/Lender_L)
#### Post date: [September 7, 2021, 8:16pm UTC](https://forum.makecode.com/t/cheats/9929/1 "2021-09-07T20:16:41Z")

</div>

Requires at least the nether update

> **[g](https://minecraft.makecode.com/87480-47535-55117-30429)**
>
> Made with ❤️ in Microsoft MakeCode for Minecraft.

code in javascript is:  
blocks.onBlockPlaced(DIRT, function () {  
agent.setItem(DIAMOND\_PICKAXE, 1, 1)  
agent.teleportToPlayer()  
agent.dropAll(UP)  
})  
loops.forever(function () {  
mobs.enchant(  
mobs.target(ALL\_PLAYERS),  
“efficiency”,  
5  
)  
})  
blocks.onBlockBroken(DEAD\_TUBE\_CORAL\_BLOCK, function () {  
mobs.applyEffect(HASTE, mobs.target(ALL\_PLAYERS), 1000, 255)  
shapes.sphere(  
blocks.blockByName(“minecraft:netherite\_block”),  
agent.getPosition(),  
999,  
ShapeOperation.Replace  
)  
})  
agent.teleportToPlayer()  
agent.setItem(MILK, 1, 1)  
agent.setItem(TUBE\_CORAL\_BLOCK, 1, 2)  
agent.dropAll(UP)
