4

If I understand it right, this question is about behaviour packs in MCBE. As far as I know, those are written in a regular programming language, just using an MCBE specific API. Are those questions on-topic?

This is why this is a difficult question:

  • Physical mechanisms in Minecraft are of course on-topic, they are clearly in-game things.
  • Redstone is just another mechanism.
  • Command blocks used to be heavily integrated into the redstone system and very often there are questions that can have one answer with redstone and one answer with commands. You can basically do everything with commands that can be done in the game regularly. Commands are considered on-topic here.
  • Functions are just an accumulation of commands, but they are edited outside of the game itself. They are considered on-topic here.
  • Everything else in datapacks is also considered on-topic here, it is heavily integrated with functions and for example often a function needs to be executed every tick, which can be done with function tags or advancements or other datapack related things.
  • MCBE's behaviour packs are very similar to datapacks, they are often seen as MCBE's (not quite as powerful) equivalent to MCJava's datapacks. But by now we've gone quite far out of the realm of "do stuff in the game", because this is about programming in a regular, non-Minecraft-specific programming language, outside of the game. But it is still something that is interpreted by the game, just like functions in a datapack are.
  • MCJava mod development is considered off-topic here, even though it is very similar to developing behaviour packs. A lot of things can be done with either a mod or a datapack/behaviour pack.

Datapacks and mods already both fall into the area between "gaming" and "programming" and now behaviour packs are in between those two. Do we draw the line before them, making them off-topic here and on-topic on gamedevSE, or after them, making them on-topic here and off-topic (or maybe not) on gamedevSE, or should the line be moved even further, to move all datapack and maybe even command questions to gamedevSE?

1

Behaviour Packs are not part of the base game. I think that logically excludes them.

That functions are considered on-topic might have to do with their likeness - correct me if I'm wrong - to batch files and shortcut parameters, which are not that different from using in-game console commands and don't require any third-party software.

But! this is also closely related to our current stance on questions about level editors and other developer tools, the most recent provocation of which has gained very little attention.

In the case of the question you refer to: the OP is talking about "coding an addon". That sounds like unmistakable GameDev material to me.

-2

Datapacks and Behaviour packs have no discernable difference, but shouldn't stay here.

Datapacks and Behaviour packs are coded in the same language written in the same format, JSON.

They're functionally different in the same way Pocket Edition and Java Edition are different. If we allow datapacks, why not behaviour packs?

But considering how separate they are from the game (they're barely related to playing the game, they're related to coding modifications for it. We redirect mod creation over to GameDev.SE anyway), I think redirecting both datapacks and behaviour packs to GameDev is for the best.

  • JSON is not a "language". Behaviour packs do not use JSON, they use C# or something like that, an actual programming language. Datapacks not only use JSON, but also regular text files (.mcmeta, .mcfunction) and compressed binary files (.nbt). Please only answer if you know what you are talking about. And as I said, command questions are allowed (it would be ridiculous to direct questions like "how do I teleport to my friend" to gamedevSE) and functions (the most common use for datapacks) are just a collection of commands. – Fabian Röling Jan 28 at 13:07
  • Apologies - I was basing my answer off the Minecraft Wiki, which has no mention of anything except JSON. – Corsaka Jan 28 at 14:23
  • Here is an article about it: minecraft.net/en-us/article/scripting-api-now-public-beta And for datapacks the wiki definitely lists all the basic information. – Fabian Röling Jan 28 at 15:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .