Skip to content

Commit

Permalink
real
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Sep 5, 2023
1 parent d3c2adf commit 91b9d57
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 2 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ repositories {
maven { url = "https://maven.ladysnake.org/releases" } // CCA
maven { url = "https://maven.gegy.dev" } // LDL
maven { url = "https://maven.parchmentmc.org" }
maven { url = "https://raw.githubusercontent.com/Fuzss/modresources/main/maven/" } // Forge Config API Port
maven { url = "https://maven.tterrag.com" } // Flywheel and Registrate
maven { url = "https://maven.createmod.net" } // Ponder and Catnip
maven { url = "https://jitpack.io/" } // Mixin Extras
}

Expand Down Expand Up @@ -44,6 +47,12 @@ dependencies {

// Compat
modImplementation("com.terraformersmc:modmenu:$mod_menu_version")

modImplementation("com.jozufozu.flywheel:flywheel-fabric-$minecraft_version:$flywheel_version")
modImplementation("net.createmod.catnip:Catnip-Fabric-$minecraft_version:$catnip_version")
modImplementation("net.createmod.ponder:Ponder-Fabric-$minecraft_version:$ponder_version")
modLocalRuntime("org.quiltmc.quilted-fabric-api:quilted-fabric-api-deprecated:$qfapi_version-$minecraft_version") // flywheel uses deprecated api

modCompileOnly("maven.modrinth:visiblebarriers:$vb_version")
modCompileOnly("dev.lambdaurora:lambdynamiclights:$ldl_version")
modCompileOnly("com.github.Virtuoel:Pehkui:$pehkui_version")
Expand Down
7 changes: 5 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ archives_base_name = portal_cubed

# https://lambdaurora.dev/tools/import_quilt.html
loader_version = 0.20.2
qfapi_version = 7.1.2+0.87.0
qfapi_version = 7.2.1+0.88.0

# Mappings
qm_version = 23
Expand All @@ -25,8 +25,11 @@ mixin_extras_version = 0.2.0-beta.8

# Compat
mod_menu_version = 7.1.0
flywheel_version = 0.6.9-1
catnip_version = 0.6.2
ponder_version = 0.6.2
vb_version = 2.0.4
ldl_version = 2.3.1+1.20.1
pehkui_version = 3.6.3
rayon_version = 1.7.2+1.20.1
sodium_version = mc1.20.1-0.5.2
sodium_version = mc1.20.1-0.5.2
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.fusionflux.portalcubed.client.render.portal.PortalRenderPhase;
import com.fusionflux.portalcubed.client.render.portal.PortalRendererImpl;
import com.fusionflux.portalcubed.client.render.portal.PortalRenderers;
import com.fusionflux.portalcubed.compat.ponder.PortalCubedPonderPlugin;
import com.fusionflux.portalcubed.entity.Portal;
import com.fusionflux.portalcubed.entity.PortalCubedEntities;
import com.fusionflux.portalcubed.fluids.PortalCubedFluids;
Expand Down Expand Up @@ -576,6 +577,10 @@ Items.LIGHT, new ResourceLocation("level")
})
);
});

if (QuiltLoader.isModLoaded("ponder")) {
PortalCubedPonderPlugin.init();
}
}

public static void zoomGoBrrrr(MutableDouble fov) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.fusionflux.portalcubed.compat.ponder;

import com.fusionflux.portalcubed.PortalCubed;
import com.fusionflux.portalcubed.items.PortalCubedItems;
import net.createmod.ponder.foundation.PonderIndex;
import net.createmod.ponder.foundation.PonderPlugin;
import net.createmod.ponder.foundation.PonderRegistrationHelper;
import org.jetbrains.annotations.NotNull;

import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.resources.ResourceLocation;

public class PortalCubedPonderPlugin implements PonderPlugin {
@Override
@NotNull
public String getModID() {
return PortalCubed.MOD_ID;
}

@Override
public void registerScenes() {
PonderRegistrationHelper helper = new PonderRegistrationHelper(getModID());
ResourceLocation portalGun = BuiltInRegistries.ITEM.getKey(PortalCubedItems.PORTAL_GUN);
helper.addStoryBoard(portalGun, "test_ponder", TestScene::test);
}

public static void init() {
PonderIndex.addPlugin(new PortalCubedPonderPlugin());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.fusionflux.portalcubed.compat.ponder;

import net.createmod.ponder.foundation.SceneBuilder;
import net.createmod.ponder.foundation.SceneBuildingUtil;

import net.minecraft.world.entity.EntityType;

public class TestScene {
public static void test(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("test", "Test Scene");
scene.world.createEntity(EntityType.PARROT::create);
scene.debug.debugSchematic();
}
}
Binary file not shown.
Binary file not shown.

0 comments on commit 91b9d57

Please sign in to comment.