Skip to content

Commit

Permalink
Added model to test sphere block
Browse files Browse the repository at this point in the history
  • Loading branch information
StewStrong authored and StewStrong committed Aug 18, 2023
1 parent 4812887 commit 8456d04
Show file tree
Hide file tree
Showing 7 changed files with 2,176 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import net.minecraft.client.renderer.texture.OverlayTexture
import net.minecraft.core.BlockPos
import net.minecraft.resources.ResourceLocation
import net.minecraft.world.inventory.InventoryMenu
import net.minecraft.world.level.block.Blocks
import net.minecraft.world.level.block.RenderShape.INVISIBLE
import net.minecraft.world.level.block.RenderShape.MODEL
import org.valkyrienskies.mod.common.ValkyrienSkiesMod
import org.valkyrienskies.mod.common.entity.VSPhysicsEntity
import org.valkyrienskies.mod.common.util.toMinecraft
import java.util.Random
Expand All @@ -22,7 +22,7 @@ class VSPhysicsEntityRenderer(context: EntityRendererProvider.Context) : EntityR
fallingBlockEntity: VSPhysicsEntity, f: Float, g: Float, poseStack: PoseStack,
multiBufferSource: MultiBufferSource, i: Int
) {
val blockState = Blocks.DARK_OAK_WOOD.defaultBlockState()
val blockState = ValkyrienSkiesMod.TEST_SPHERE.defaultBlockState()
if (blockState.renderShape != MODEL) {
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ object ValkyrienSkiesMod {
lateinit var TEST_HINGE: Block
lateinit var TEST_FLAP: Block
lateinit var TEST_WING: Block
lateinit var TEST_SPHERE: Block
lateinit var SHIP_CREATOR_ITEM: Item
lateinit var SHIP_ASSEMBLER_ITEM: Item
lateinit var SHIP_CREATOR_ITEM_SMALLER: Item
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "valkyrienskies:block/test_sphere"
}
}
}
Loading

0 comments on commit 8456d04

Please sign in to comment.