Step 1: Craft a turtle
You will need a computer and a chest to craft a turtle. Place the computer in the middle of the crafting grid and the chest bellow it, and surround it with 7 iron ingots.
You should get a turtle as a result.
Step 2: Program the turtle
You will need to write some code to make the turtle do what you want. To do this, right-click on the turtle and type edit startup.lua in the terminal.
This will open a text editor where you can write your code.
Here is an example of code that will make the turtle suck up and drop down any items it finds:
while true do — This will make the turtle repeat the following actions forever
turtle.suckUp() — This will make the turtle suck up any items above it
for i = 1, 16 do — This will make the turtle loop through all its inventory slots
turtle.select(i) — This will make the turtle select each slot
turtle.dropDown() — This will make the turtle drop down any items in that slot
end
end
Save your code by pressing Ctrl+S and exit the editor by pressing Ctrl+T.
Step 3:
Place the turtle down with a chest above it and a bucket of lava below it.
Step 4: Run the program
To run your program, type trash in the terminal and press Enter.
The turtle should start sucking up and dropping down any items you throw at it.
To stop it, press Ctrl+T again.
Step 5: Enjoy your trash destroyer
You have successfully made a trash destroyer in Minecraft with CC: Tweaked.
You can place it anywhere you want and use it to get rid of unwanted items.
Just be careful not to throw anything valuable or useful at it!