u/Easy_Note2920

Insane idea for a mod

So, first of all, I don't know Java. So this idea may be impossible or very hard to implement. But here's the idea: Using Jython, create a block that you write code in, in the Python language, and then you can run that code. For example,

print("Hello, World!")

would output "Hello, World!" in the code block's built-in output/input area. You could also manipulate blocks or entities and check for things, like:

while Minecraft.Entity.Villager in Minecraft.Area((0, 0, 0), (100, 0, 100)):
  Minecraft.DisplayToPlayers("@a", "Villager is still in the village!")

Or, even create custom mobs with AIs! (That might require a Programmable entity).

Python is also easy to learn and understand, so the average player could use this block as well. Also, Jython already exists to interpret the code, making it a bit easier.

reddit.com
u/Easy_Note2920 — 5 days ago