User blog comment:Penguinkangaroo/my survival 303 ideas/@comment-25812005-20130402164340/@comment-6537153-20130408220128

You could use a command block. Possibly install some mods if that doesn't work.

Making your own mod with LUA isn't an option. Minecraft runs on Java.