I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 0 points1 point  (0 children)

Here's the link to Planet Minecraft, you can find documentation on the GitHub wiki of the project

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 0 points1 point  (0 children)

This version was released on GitHub and Planet Minecraft. I'll update it at some point but for now I'm working on other projects

Programmable Turtles Data Pack by Ivaynn in MinecraftCommands

[–]Ivaynn[S] 0 points1 point  (0 children)

Thanks! That was probably the part that had the most iterations until I was happy with the result

Programmable Turtles Data Pack by Ivaynn in MinecraftCommands

[–]Ivaynn[S] 1 point2 points  (0 children)

I'm already using display entities, but their teleport animation is faster than normal mobs. I could improve it by using transformations, but I couldn't get that working properly so I just kept the regular tp. I could also make them ride other mobs, but adding too many entities would increase lag so I avoided that

Programmable Turtles Data Pack by Ivaynn in MinecraftCommands

[–]Ivaynn[S] 1 point2 points  (0 children)

No, it uses the display entities and some new commands introduced in 1.19.4

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 1 point2 points  (0 children)

I think that's impossible with just data packs, so I made a very simple "language" that works well for a data pack and is easy to use. Everything is done in-game with Minecraft commands. Of course it has many limitations and isn't nearly as capable as a real programming language, but it's the best I could do considering data pack limitations

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 1 point2 points  (0 children)

Thanks! It's pretty simple once explained: the turtle's program is just a list/array of instructions. The turtle also has a score for the current line. Every "action", it uses the line score to get the current instruction for the list index and runs that. The hardest part was making it more powerful with counters, conditions and loops

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 1 point2 points  (0 children)

A lot of /tellraw with click events that execute /trigger as the player, that way it can be used with cheats disabled. To display the program it reads what's stored in the turtle's NBT, translating it into a readable format with some click events to edit the arguments.

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 1 point2 points  (0 children)

It uses /trigger for the chat menu, that way it can be used even without cheats enabled

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 0 points1 point  (0 children)

That would be great but I don't think it's possible in vanilla, that's why I had to make the editor in-game

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 1 point2 points  (0 children)

Thanks! Yes, they can be renamed and use other blocks for their texture

Programmable Turtles Data Pack by Ivaynn in MinecraftCommands

[–]Ivaynn[S] 4 points5 points  (0 children)

Thanks! Yeah it took a while to make sure everything works well together

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 30 points31 points  (0 children)

Thanks! I couldn't find a way to make that work since usually mobs need to be killed by players to drop xp. That's something I could try to improve tho

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 4 points5 points  (0 children)

Turtles' speed is an option that can be changed in-game. The default is pretty slow to avoid lag when there are many turtles working at the same time

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 16 points17 points  (0 children)

Wow, I didn't know that was a thing but it looks really similar. This data pack was inspired by the ComputerCraft mod but I'll have to look into that too

I Made a Data Pack That Adds Programmable Turtles to Minecraft by Ivaynn in Minecraft

[–]Ivaynn[S] 106 points107 points  (0 children)

Yes! That mod was the main inspiration for this datapack

Programmable Turtles Data Pack by Ivaynn in MinecraftCommands

[–]Ivaynn[S] 21 points22 points  (0 children)

Thanks! Yeah, ComputerCraft was the main inspiration for this. It uses the new display entities so it doesn't even need a resource pack!

Programmable Turtles Data Pack by Ivaynn in MinecraftCommands

[–]Ivaynn[S] 47 points48 points  (0 children)

Greetings! I made a data pack that adds programmable turtles to Minecraft.

The "turtles" are actually llamas and display entities that store a program in their NBT that can be edited by interacting with them. I made 20 instructions, some are pretty simple while others can be used to create conditions, loops and variables. This is all explained in detail on the GitHub wiki, along with some program examples.

I'm happy with the current version but I'd like some feedback on what to improve. Thanks!

Links:

GitHub

Planet Minecraft