diff --git a/pages/cfa/basic-contraptions.md b/pages/cfa/basic-contraptions.md new file mode 100644 index 0000000..ba2a1f6 --- /dev/null +++ b/pages/cfa/basic-contraptions.md @@ -0,0 +1,20 @@ +# Basic Contraptions + +Let's make an airship. We first need to know what we want the airship to be. Of course! A contraption. Create +contraptions are extremely customizable and easy to move around. Precisely what we want. The next step is to define what +a contraption actually is: + +- it's a type of contraption +- it's a class +- it's an entity +- it's something that needs to be rendered + +## Terminology + +## A New Contraption + +As established, a contraption is a class, an entity and of course a type. Let's create a new class first and make it +extend `TranslatingContraption`. TranslatingContraption handles things that would otherwise be annoying to maintain +yourself, such as colliders and stabilization. + +TranslatingContraption requires an `assemble` method as well as a `getType` method. \ No newline at end of file diff --git a/pages/cfa/home.md b/pages/cfa/home.md index 9fedb2e..e8469f9 100644 --- a/pages/cfa/home.md +++ b/pages/cfa/home.md @@ -1,4 +1,8 @@ # Create Fabric Addon This wiki will guide you through on how to create your own Create Mod addon for the FabricMC modloader. From wrenchable -blocks to custom machines and even contraptions! \ No newline at end of file +blocks to custom machines and even contraptions! + +## Quick Notes + +- When you want to mixin into Create, don't forget to set `refmap = false` or else you may encounter a crash \ No newline at end of file diff --git a/pages/struct.json b/pages/struct.json index 0aa6a48..9da4bc8 100644 --- a/pages/struct.json +++ b/pages/struct.json @@ -28,6 +28,6 @@ "source": "https://github.com/JXSnack/create-fabric-addon-wiki-demo", "main": "home", - "page_structure": ["home.md", "setup.md", "datagen.md", "*Basics", "wrenchable-blocks.md", "goggle-info.md", "*Ponders", "*Rotational Blocks", "requiring-rotation.md", "creating-rotation.md", "*Contraptions", "lone-contraptions.md"] + "page_structure": ["home.md", "setup.md", "datagen.md", "*Basics", "wrenchable-blocks.md", "goggle-info.md", "*Ponders", "*Rotational Blocks", "requiring-rotation.md", "creating-rotation.md", "*Contraptions", "basic-contraptions.md"] } } \ No newline at end of file