generated from Fabricators-of-Create/create-multiloader-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.1.3: - Fixed display bug, thanks to discord user @KarolOfGutovo for reporting - Created ponder system with 1 ponder about printing (contraption ponder coming soon) - (Technical) Created datagen
- Loading branch information
Showing
35 changed files
with
358 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
1.1.3: | ||
- Fixed display bug, thanks to discord user @karolofgutovo for reporting | ||
- Created ponder system with 1 ponder about printing (contraption ponder coming soon) | ||
- (Technical) Created datagen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
common/src/generated/resources/.cache/a0215e79d0b720ef451ebefde67e867b1dd8939d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// 1.20.1 2024-08-02T17:54:09.165329 Create: Pattern Schematics/Registrate Provider for create_pattern_schematics [Recipes, Advancements, Loot Tables, Tags (blocks), Tags (items), Tags (fluids), Tags (entity_types), Blockstates, Item models, Lang (en_us/en_ud)] | ||
ef2d06ece9923cc75b5e3dc3070df2808f1cdb74 assets\create_pattern_schematics\models\item\pattern_schematic.json | ||
6d3646ec7fe803669476e65e7d373706b2016bee assets\create_pattern_schematics\lang\en_us.json | ||
79f1b8656342eb1076dad4c796a19efab36b5c8d assets\create_pattern_schematics\lang\en_ud.json | ||
19e25b53bb643c63106b1f83e2f1fe5a6ac63f13 assets\create_pattern_schematics\models\item\empty_pattern_schematic.json |
19 changes: 19 additions & 0 deletions
19
common/src/generated/resources/assets/create_pattern_schematics/lang/en_ud.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"create_pattern_schematics.ponder.schematic_printing.header": "sɔıʇɐɯǝɥɔs uɹǝʇʇɐd ɥʇıʍ suɹǝʇʇɐd buıʇuıɹԀ", | ||
"create_pattern_schematics.ponder.schematic_printing.text_1": "ǝɔɹnos ɐ sɐ ǝsn oʇ ɔıʇɐɯǝɥɔs ɐ ǝʌɐs ʇsɹıɟ ʇsnɯ noʎ 'sɔıʇɐɯǝɥɔs uɹǝʇʇɐd ǝsn o⟘", | ||
"create_pattern_schematics.ponder.schematic_printing.text_2": "ɔıʇɐɯǝɥɔs ǝɥʇ ʎןddɐ oʇ ǝןqɐʇ ɔıʇɐɯǝɥɔs ɐ ǝsn 'uǝɥ⟘", | ||
"create_pattern_schematics.ponder.schematic_printing.text_3": "ɔıʇɐɯǝɥɔs ǝɥʇ pɐoןdn puɐ ǝןqɐʇ ǝɥʇ ǝs∩", | ||
"create_pattern_schematics.ponder.schematic_printing.text_4": "pǝʇɐǝdǝɹ ǝq uɐɔ ǝɹnʇɔnɹʇs ǝɥʇ 'ʇuǝɯǝɔɐןd uı ןooʇ ǝuoןɔ ǝɥʇ buısn 'uǝɥ⟘", | ||
"create_pattern_schematics.ponder.schematic_printing.text_5": "ʇɐǝdǝɹ oʇ ןooʇ ǝuoןɔ ǝɥʇ ǝsn 'uıbıɹo ǝɥʇ ɯoɹɟ buıʇɹɐʇS", | ||
"create_pattern_schematics.ponder.schematic_printing.text_6": "pǝʇɐʇoɹ ǝq uɐɔ ɔıʇɐɯǝɥɔs ǝɥʇ 'ʎןןɐuoıʇıppⱯ", | ||
"create_pattern_schematics.ponder.schematic_printing.text_7": "sǝuoןɔ ןןɐ oʇ ʎןddɐ uǝɥʇ ןןıʍ sıɥ⟘", | ||
"create_pattern_schematics.ponder.tag.pattern_schematics": "sɔıʇɐɯǝɥɔS uɹǝʇʇɐԀ", | ||
"create_pattern_schematics.ponder.tag.pattern_schematics.description": "sɔıʇɐɯǝɥɔs uɹǝʇʇɐd ɥʇıʍ buıʇuıɹԀ", | ||
"create_pattern_schematics.schematic.tool.clone": "ǝuoןƆ", | ||
"create_pattern_schematics.schematic.tool.clone.description.0": "ɔıʇɐɯǝɥɔs pǝʇɔǝןǝs ǝɥʇ sʇɐǝdǝᴚ", | ||
"create_pattern_schematics.schematic.tool.clone.description.1": "˙ʇı ʇɐǝdǝɹ oʇ ןןoɹɔS-]Ꞁᴚ⟘Ɔ[ puɐ ɔıʇɐɯǝɥɔS ǝɥʇ ʇɐ ʇuıoԀ", | ||
"create_pattern_schematics.schematic.tool.clone.description.2": "", | ||
"create_pattern_schematics.schematic.tool.clone.description.3": "", | ||
"item.create_pattern_schematics.empty_pattern_schematic": "ɔıʇɐɯǝɥɔS uɹǝʇʇɐԀ ʎʇdɯƎ", | ||
"item.create_pattern_schematics.pattern_schematic": "ɔıʇɐɯǝɥɔS uɹǝʇʇɐԀ" | ||
} |
19 changes: 19 additions & 0 deletions
19
common/src/generated/resources/assets/create_pattern_schematics/lang/en_us.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"create_pattern_schematics.ponder.schematic_printing.header": "Printing patterns with pattern schematics", | ||
"create_pattern_schematics.ponder.schematic_printing.text_1": "To use pattern schematics, you must first save a schematic to use as a source", | ||
"create_pattern_schematics.ponder.schematic_printing.text_2": "Then, use a schematic table to apply the schematic", | ||
"create_pattern_schematics.ponder.schematic_printing.text_3": "Use the table and upload the schematic", | ||
"create_pattern_schematics.ponder.schematic_printing.text_4": "Then, using the clone tool in placement, the structure can be repeated", | ||
"create_pattern_schematics.ponder.schematic_printing.text_5": "Starting from the origin, use the clone tool to repeat", | ||
"create_pattern_schematics.ponder.schematic_printing.text_6": "Additionally, the schematic can be rotated", | ||
"create_pattern_schematics.ponder.schematic_printing.text_7": "This will then apply to all clones", | ||
"create_pattern_schematics.ponder.tag.pattern_schematics": "Pattern Schematics", | ||
"create_pattern_schematics.ponder.tag.pattern_schematics.description": "Printing with pattern schematics", | ||
"create_pattern_schematics.schematic.tool.clone": "Clone", | ||
"create_pattern_schematics.schematic.tool.clone.description.0": "Repeats the selected schematic", | ||
"create_pattern_schematics.schematic.tool.clone.description.1": "Point at the Schematic and [CTRL]-Scroll to repeat it.", | ||
"create_pattern_schematics.schematic.tool.clone.description.2": "", | ||
"create_pattern_schematics.schematic.tool.clone.description.3": "", | ||
"item.create_pattern_schematics.empty_pattern_schematic": "Empty Pattern Schematic", | ||
"item.create_pattern_schematics.pattern_schematic": "Pattern Schematic" | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
155 changes: 155 additions & 0 deletions
155
...src/main/java/com/cak/pattern_schematics/content/ponder/PatternSchematicPonderScenes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
package com.cak.pattern_schematics.content.ponder; | ||
|
||
import com.cak.pattern_schematics.registry.PatternSchematicsRegistry; | ||
import com.simibubi.create.AllItems; | ||
import com.simibubi.create.foundation.ponder.*; | ||
import com.simibubi.create.foundation.ponder.element.EntityElement; | ||
import com.simibubi.create.foundation.ponder.element.InputWindowElement; | ||
import com.simibubi.create.foundation.utility.Pointing; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.core.Direction; | ||
import net.minecraft.core.Vec3i; | ||
import net.minecraft.world.entity.Entity; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.phys.AABB; | ||
import net.minecraft.world.phys.Vec3; | ||
|
||
public class PatternSchematicPonderScenes { | ||
|
||
public static void schematicPrinting(SceneBuilder scene, SceneBuildingUtil util) { | ||
scene.title("schematic_printing", "Printing patterns with pattern schematics"); | ||
scene.scaleSceneView(0.75f); | ||
scene.configureBasePlate(0, 0, 14); | ||
scene.world.showSection(util.select.layer(0), Direction.UP); | ||
scene.idle(20); | ||
|
||
//Obtaining schematic for printing | ||
BlockPos schematicSavingFrom = new BlockPos(5, 1, 4); | ||
BlockPos schematicSavingTo = new BlockPos(7, 3, 5); | ||
|
||
Selection schematicSavingSelection = util.select.fromTo( | ||
schematicSavingFrom, schematicSavingTo); | ||
|
||
scene.world.showSection(schematicSavingSelection, Direction.DOWN); | ||
|
||
scene.overlay.showText(80) | ||
.placeNearTarget() | ||
.pointAt(new Vec3(6, 3, 5)) | ||
.text("To use pattern schematics, you must first save a schematic to use as a source"); | ||
|
||
scene.idle(50); | ||
|
||
ItemStack schematicAndQuillStack = AllItems.SCHEMATIC_AND_QUILL.asStack(); | ||
|
||
scene.overlay.chaseBoundingBoxOutline(PonderPalette.BLUE, "schematic_saving", | ||
new AABB(schematicSavingFrom, schematicSavingTo.offset(1, 1, 1)), 100); | ||
|
||
scene.overlay.showControls( | ||
new InputWindowElement(Vec3.atCenterOf(schematicSavingFrom), Pointing.DOWN) | ||
.rightClick().withItem(schematicAndQuillStack), 50 | ||
); | ||
scene.idle(30); | ||
scene.overlay.showControls( | ||
new InputWindowElement(Vec3.atCenterOf(schematicSavingTo), Pointing.DOWN) | ||
.rightClick().withItem(schematicAndQuillStack), 30 | ||
); | ||
scene.idle(50); | ||
|
||
//Creating the pattern schematic item | ||
|
||
scene.addKeyframe(); | ||
|
||
scene.world.showSection(util.select.position(2, 1, 2), Direction.DOWN); | ||
|
||
scene.overlay.showText(70) | ||
.placeNearTarget() | ||
.pointAt(new Vec3(2.5, 1, 2.5)) | ||
.text("Then, use a schematic table with an empty pattern schematic"); | ||
scene.idle(40); | ||
|
||
ItemStack emptyPatternSchematicItem = PatternSchematicsRegistry.EMPTY_PATTERN_SCHEMATIC.asStack(); | ||
ItemStack patternSchematicItem = PatternSchematicsRegistry.PATTERN_SCHEMATIC.asStack(); | ||
ElementLink<EntityElement> currentItem; | ||
currentItem = scene.world.createItemEntity( | ||
new Vec3(2.5, 4, 2.5), | ||
new Vec3(0, 0, 0), | ||
emptyPatternSchematicItem | ||
); | ||
scene.idle(40); | ||
|
||
scene.overlay.showText(60) | ||
.placeNearTarget() | ||
.pointAt(new Vec3(2.5, 1, 2.5)) | ||
.text("Use the table to upload the schematic"); | ||
|
||
scene.idle(40); | ||
scene.world.modifyEntity(currentItem, Entity::kill); | ||
currentItem = scene.world.createItemEntity( | ||
new Vec3(2.5, 2, 2.5), | ||
new Vec3(0, 0.25, 0), | ||
patternSchematicItem | ||
); | ||
scene.idle(50); | ||
|
||
//Usage | ||
|
||
scene.addKeyframe(); | ||
|
||
scene.overlay.showText(70) | ||
.placeNearTarget() | ||
.pointAt(new Vec3(2.5, 2, 2.5)) | ||
.text("Then, using the clone tool in placement, the structure can be repeated"); | ||
scene.idle(60); | ||
|
||
Vec3i sectionOffset = new Vec3i(3, 0, 0); | ||
BlockPos sectionMin = new BlockPos(1, 1, 11); | ||
BlockPos sectionMax = new BlockPos(3, 3, 12); | ||
|
||
scene.overlay.showText(60) | ||
.placeNearTarget() | ||
.pointAt(new Vec3(2.5, 2, 12)) | ||
.text("Starting from the origin, use the clone tool to repeat"); | ||
|
||
for (int i = 0; i < 4; i++) { | ||
scene.world.showSection(util.select.fromTo( | ||
sectionMin.offset(sectionOffset.multiply(i)), | ||
sectionMax.offset(sectionOffset.multiply(i)) | ||
), Direction.DOWN); | ||
|
||
scene.idle(2); | ||
} | ||
scene.idle(62); | ||
|
||
//Usage 2 | ||
|
||
scene.addKeyframe(); | ||
|
||
scene.overlay.showText(80) | ||
.placeNearTarget() | ||
.pointAt(new Vec3(2.5, 2, 2.5)) | ||
.text("Additionally, the schematic can be rotated"); | ||
scene.idle(60); | ||
|
||
Vec3i sectionOffset2 = new Vec3i(0, 0, 3); | ||
BlockPos sectionMin2 = new BlockPos(11, 1, 1); | ||
BlockPos sectionMax2 = new BlockPos(12, 3, 3); | ||
|
||
scene.overlay.showText(80) | ||
.placeNearTarget() | ||
.pointAt(new Vec3(12, 2, 2.5)) | ||
.text("This rotation will then apply to all clones"); | ||
|
||
for (int i = 0; i < 3; i++) { | ||
scene.world.showSection(util.select.fromTo( | ||
sectionMin2.offset(sectionOffset2.multiply(i)), | ||
sectionMax2.offset(sectionOffset2.multiply(i)) | ||
), Direction.DOWN); | ||
|
||
scene.idle(2); | ||
} | ||
scene.idle(50); | ||
|
||
scene.markAsFinished(); | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...src/main/java/com/cak/pattern_schematics/content/ponder/PatternSchematicsPonderIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.cak.pattern_schematics.content.ponder; | ||
|
||
import com.cak.pattern_schematics.PatternSchematics; | ||
import com.cak.pattern_schematics.registry.PatternSchematicsRegistry; | ||
import com.simibubi.create.foundation.ponder.PonderRegistrationHelper; | ||
|
||
public class PatternSchematicsPonderIndex { | ||
|
||
static final PonderRegistrationHelper HELPER = new PonderRegistrationHelper(PatternSchematics.MODID); | ||
|
||
public static void register() { | ||
|
||
HELPER.forComponents(PatternSchematicsRegistry.EMPTY_PATTERN_SCHEMATIC, PatternSchematicsRegistry.PATTERN_SCHEMATIC) | ||
.addStoryBoard("pattern_schematic/schematic_printing", PatternSchematicPonderScenes::schematicPrinting, PatternSchematicsPonderTags.PATTERN_SCHEMATIC); | ||
|
||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
.../src/main/java/com/cak/pattern_schematics/content/ponder/PatternSchematicsPonderTags.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.cak.pattern_schematics.content.ponder; | ||
|
||
import com.cak.pattern_schematics.PatternSchematics; | ||
import com.cak.pattern_schematics.registry.PatternSchematicsRegistry; | ||
import com.simibubi.create.foundation.ponder.PonderRegistry; | ||
import com.simibubi.create.foundation.ponder.PonderTag; | ||
|
||
public class PatternSchematicsPonderTags { | ||
|
||
public static final PonderTag | ||
PATTERN_SCHEMATIC = create("pattern_schematics").item(PatternSchematicsRegistry.PATTERN_SCHEMATIC.get()) | ||
.defaultLang("Pattern Schematics", "Printing with pattern schematics") | ||
.addToIndex(); | ||
|
||
private static PonderTag create(String id) { | ||
return new PonderTag(PatternSchematics.asResource(id)); | ||
} | ||
|
||
public static void register() { | ||
// Add items to tags here | ||
|
||
PonderRegistry.TAGS.forTag(PATTERN_SCHEMATIC) | ||
.add(PatternSchematicsRegistry.EMPTY_PATTERN_SCHEMATIC) | ||
.add(PatternSchematicsRegistry.PATTERN_SCHEMATIC); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.