Skip to content

Commit

Permalink
More work on ponder
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 5, 2024
1 parent 5940440 commit 3a99526
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ subprojects {
apply(plugin = "dev.architectury.loom")
apply(plugin = "net.kyori.blossom")

val capitalizedName = project.name.capitalized()
val capitalizedName = project.name.replaceFirstChar { it.uppercase() }

val loom = project.extensions.getByType<LoomGradleExtensionAPI>()
loom.apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.simibubi.create.foundation.data.TagGen;
import com.tterrag.registrate.providers.RegistrateItemTagsProvider;
import com.tterrag.registrate.providers.RegistrateTagsProvider;
import dev.architectury.injectables.annotations.ExpectPlatform;
import dev.ithundxr.createnumismatics.Numismatics;
import dev.ithundxr.createnumismatics.multiloader.CommonTags;
import dev.ithundxr.createnumismatics.registry.NumismaticsTags;
Expand Down Expand Up @@ -50,7 +49,7 @@ public static void addOptionalTag(ResourceLocation id, TagKey<Block>... tags) {
OPTIONAL_TAGS.computeIfAbsent(tag, (e) -> new ArrayList<>()).add(id);
}
}

public static void generateBlockTags(RegistrateTagsProvider<Block> tags) {
addTagToAllInRegistry(tags, BuiltInRegistries.BLOCK, NumismaticsTags.AllBlockTags.NUMISMATICS_BLOCKS.tag);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.simibubi.create.foundation.ponder.SceneBuilder;
import com.simibubi.create.foundation.ponder.SceneBuildingUtil;
import com.simibubi.create.foundation.ponder.Selection;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
Expand All @@ -37,10 +38,13 @@ public static void item(SceneBuilder scene, SceneBuildingUtil util) {
Selection salepoint = util.select.position(11, 3, 4);
Selection portableInterface = util.select.position(7, 2, 4);
Selection funnel = util.select.position(7, 2, 3);
Selection station = util.select.position(11, 1, 9);

Selection beltIntoFunnel = util.select.fromTo(7, 1, 2, 7, 1, 3);
Selection beltIntoBelt = util.select.fromTo(12, 1, 2, 8, 1, 2);

BlockPos beltStart = util.grid.at(12, 1, 2);

Selection gearBoxes = util.select.fromTo(8, 1, 3, 9, 1, 3);
Selection smallCog = util.select.position(12, 1, 3);
Selection largeCog = util.select.position(13, 0, 3);
Expand Down Expand Up @@ -71,5 +75,13 @@ public static void item(SceneBuilder scene, SceneBuildingUtil util) {
scene.idle(10);
scene.world.showSection(funnel, Direction.DOWN);
scene.idle(10);
scene.world.showSection(station, Direction.DOWN);
scene.idle(10);

ItemStack stack = new ItemStack(Items.IRON_INGOT, 64);
for (int i = 0; i < 10; i++) {
scene.world.createItemOnBelt(beltStart, Direction.DOWN, stack);
scene.idle(10);
}
}
}
Binary file modified common/src/main/resources/assets/numismatics/ponder/salepoint.nbt
Binary file not shown.

0 comments on commit 3a99526

Please sign in to comment.