I have been trying to make a plugin lately that involves various machines in forms of command blocks. However this in unrealted as i still can't change the text in the command blocks so it can save the machine's state, speed, upgrades, and type. here is the "basic" code on what i'm trying to do. Code: Block block = p.getLocation().getBlock(); block.setType(Material.COMMAND); CommandBlock state = (CommandBlock) block.getState(); state.setCommand("test"); Is there something i'm missing, like setting the blocks state to the command block one, or something... i URGENTLY need this because everyone on my server is expecting this to be done by tomorrow. So i kinda need this quite a lot, and i thank anyone that can help me.