Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.20.1/update #625

Merged
merged 201 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
fdd73b4
Updated version to 2.1.0-beta.15
Jul 20, 2023
b2de01d
Updated version to 2.2.0-beta.4
Jul 20, 2023
e2e1dc7
Update misc.json (#547)
Weromano Aug 1, 2023
e957ee6
Update redstone_components.json (#546)
Weromano Aug 1, 2023
11829d7
Update 1_18_blocks.json (#545)
Weromano Aug 1, 2023
2aece11
Got physics kind of working, but ships fall through the ground
Aug 15, 2023
eafc67b
ITS WORKING!
Aug 15, 2023
0ff8f3f
Fixed world unload mem leak
Aug 16, 2023
63a3b07
Use air chunks instead of empty updates
Aug 16, 2023
c56654f
Beginning of VSPhysicsEntity
Aug 16, 2023
19e3aed
Added debug renderer for VSPhysicsEntity
Aug 16, 2023
a57ea93
Added shipId and rotation fields to VSPhysicsEntity
Aug 16, 2023
3fed532
Got basic physics entity working
Aug 17, 2023
4812887
Send rotation of VSPhysicsEntity
Aug 17, 2023
8456d04
Added model to test sphere block
Aug 17, 2023
08900ff
Fixed VSPhysicsEntity loading and unloading
Aug 17, 2023
5cd9e58
Added lerping to VSPhysicsEntity
Aug 17, 2023
c31b258
Made teleporting physics entities work
Aug 17, 2023
50d80c8
Made physics entities go through nether portals
Aug 17, 2023
3179b67
Fixed worlds not unloading properly
Aug 17, 2023
36c886d
Fixed ships falling through the ground when using nether portals
Aug 17, 2023
c563ed0
Fixed scaling, fixed physics settings not applied
Aug 18, 2023
6df2674
Fixed null pointer error
Aug 18, 2023
8bf6830
Changed vs-core to be main
Aug 18, 2023
9cf1406
Fixed weird crash
Aug 18, 2023
5791e10
Fixed build errors
Aug 18, 2023
939d466
Got dimension tp working
Aug 19, 2023
7d16a14
Fixed ships falling through the ground on super-flat worlds
Aug 19, 2023
42d5a1c
Fixed ships not unloading when all blocks are destroyed
Aug 19, 2023
5ce8726
Ships tp through nether portals, but fall through the floor
Aug 19, 2023
c9e06ae
Added collision mask, restitution, and friction to physics entities
Aug 20, 2023
89c9640
Don't make default physics entity high friction
Aug 20, 2023
226003d
More work on tp
Aug 21, 2023
1edd5c6
Got ships through portals fully working
Aug 22, 2023
4dfc042
Fixed ships not showing up when using tp command to other dimensions
Aug 22, 2023
e3e5a8a
Updated vs-core to main
Aug 22, 2023
0fe7f85
Updated vs-core to main
Aug 22, 2023
96da5d4
Merge pull request #561 from ValkyrienSkies/1.18.x/feature/dimension-tp
StewStrong Aug 22, 2023
ebd0b2f
Fixed PhysicsEntityCreatorItem not working on ships
Aug 22, 2023
6ae504e
Scale ship mass and inertia based on collision scale
Aug 22, 2023
975083b
Implemented ship scaling command
Aug 22, 2023
906540f
Lower default lodDetail to 512
Aug 22, 2023
e47563d
Fixed null pointer exception
Aug 23, 2023
e5a3666
Made VSPhysicsEntity open
Aug 23, 2023
bd95a69
Made constraints work on Physics Entities
Aug 24, 2023
01c0429
Got slab and stair shapes working!
Aug 24, 2023
96a8332
Allow force inducers to be attached to physics entities
Aug 24, 2023
75dcbc2
Initial work sending physics entities to client
Aug 25, 2023
e791fbf
Finished phys entity tracking
Aug 25, 2023
7b9a49b
Updated vs-core to main
Aug 25, 2023
c4fb3ff
Merge pull request #565 from ValkyrienSkies/feature/phys-entity-tracking
StewStrong Aug 25, 2023
fa2e699
Fixed physics entity tracking
Aug 26, 2023
1421ab3
Make a new voxel state for each block state
Aug 27, 2023
6a116a6
Added data-pack configurable elasticity and friction values
Aug 27, 2023
62b6f9c
Got bouncing kind of working
Aug 27, 2023
7d94aa6
Got fence shapes working
Aug 28, 2023
63d35f8
Replaced some magic numbers with constants
Aug 28, 2023
a11f421
Moved box cutting code to Lod1SolidShapeUtils
Aug 28, 2023
6cc8b4a
Implement VSConstraint serialization
Aug 29, 2023
4d86f4c
Implemented fluid height and water-logging
Aug 29, 2023
46f094f
Updated vs-core to main
Aug 29, 2023
3dfb6b3
Fixed Chest collision shape
Aug 29, 2023
8e4bc59
Updated vs-core
Aug 29, 2023
2d28606
Merge pull request #568 from ValkyrienSkies/1.18.x/feature/lod-block-…
StewStrong Aug 29, 2023
ff2f775
Added 1.20 to GitHub issue templates
Aug 29, 2023
1de370d
Changed 1.20 to 1.20.x in GitHub issue templates
Aug 29, 2023
5599242
Fixed C2Me compat
Sep 2, 2023
7d84b43
update gradle, kotlin, refactor core dependency
Rubydesic Sep 3, 2023
7d44621
add gradle.properties
Rubydesic Sep 3, 2023
772fb28
remove checkstyle+ktlint
Rubydesic Sep 4, 2023
5bba21c
biome foilage (#572)
alex-s168 Sep 18, 2023
58550de
replaced override in block tinting mixin (#578)
alex-s168 Sep 18, 2023
b86112b
update gradle, update core, update quiltflower to vineflower
Rubydesic Sep 21, 2023
0bf1ea9
update core
Rubydesic Sep 21, 2023
f0c1f76
New terrain loading
Sep 24, 2023
869ce06
Update 1_18_blocks.json
Weromano Sep 25, 2023
d9456ca
Update crafting_stations.json
Weromano Sep 25, 2023
1b5c822
Update plants.json
Weromano Sep 25, 2023
a1928f5
Update redstone_components.json
Weromano Sep 25, 2023
49d6c28
Update misc.json
Weromano Sep 26, 2023
69f4c97
Update ground.json
Weromano Sep 26, 2023
2c854cd
Update masonry.json
Weromano Sep 26, 2023
31df0cb
Update wood.json
Weromano Sep 26, 2023
66d53f3
Updated vs-core
Sep 27, 2023
e733856
Fixed ships getting stuck on top of the world
Sep 28, 2023
58665aa
Updated forge Krunch
Sep 28, 2023
be901b8
Fixed forge not depending on vs-core util
Sep 28, 2023
939e4ee
Merge pull request #581 from ValkyrienSkies/feature/new-terrain
StewStrong Sep 28, 2023
31d4767
Merge pull request #589 from Weromano/patch-30
StewStrong Sep 28, 2023
de4c377
Merge pull request #588 from Weromano/patch-29
StewStrong Sep 28, 2023
1355a4e
Merge pull request #587 from Weromano/patch-28
StewStrong Sep 28, 2023
628cab7
Merge pull request #585 from Weromano/patch-26
StewStrong Sep 28, 2023
07004a0
Merge pull request #583 from Weromano/patch-24
StewStrong Sep 28, 2023
9cb78ac
Merge pull request #582 from Weromano/patch-23
StewStrong Sep 28, 2023
5b5d41f
Merge pull request #586 from Weromano/patch-27
StewStrong Sep 28, 2023
d8e64df
Update plants.json
Weromano Sep 28, 2023
de4fa39
Update misc.json
Weromano Sep 28, 2023
a9247ba
Update wood.json
Weromano Sep 28, 2023
3fd6860
Added isStatic property to ServerShip
Sep 30, 2023
32bc9e0
Fixed malformed json
Oct 1, 2023
7b13223
Fixed vs-core dependencies
Oct 1, 2023
1551831
Fixed vs-core dependencies (again)
Oct 1, 2023
57f9cc2
Fixed ship creator item not handling scale correctly
Oct 1, 2023
c46ae36
Added json/yaml validator to GitHub Actions
Oct 1, 2023
0b7cf8a
Updated Krunch
Oct 4, 2023
3c9dc35
Updated vs-core
Oct 8, 2023
e3b580f
Merge pull request #584 from Weromano/patch-25
StewStrong Oct 10, 2023
3d05ecb
Merge pull request #591 from Weromano/patch-32
StewStrong Oct 10, 2023
61411a6
Merge pull request #592 from Weromano/patch-33
StewStrong Oct 10, 2023
c67a24f
Fixed invalid json 😭
Oct 10, 2023
0c7fe94
Fixed another invalid json 🤡
Oct 10, 2023
95d18bd
Fixed ShipArgument @v always being suggested in teleport command
Oct 10, 2023
c8e9817
Fixed EntitySelectorParser suggesting over @v ShipArgument
Oct 10, 2023
a726ba3
Made ShipArgument behave like EntityArgument
Oct 10, 2023
7bcdf18
Fixed EntitySelectorParser.getSelector() not throwing an exception
Oct 10, 2023
2dd59c6
Made VSCommands require permission 2
Oct 10, 2023
60312f9
Incremented version to 2.1.1-beta.1
Oct 10, 2023
9465f52
Added ServerTickListener interface
Oct 11, 2023
8b4f026
Use kotlinforforge 3.12.0 at runtime
Oct 11, 2023
9445389
Get kotlinforforge from curse maven instead
Oct 11, 2023
328c4f4
More kotlinforforge madness! 🙄🙄🙄
Oct 11, 2023
2505880
🔥🐛 Remove outdated CBC mixin MixinAbstractCannonProjectile.java
rbasamoyai Oct 12, 2023
0d985b3
Increment version
Oct 12, 2023
bfbdffe
Merge pull request #598 from rbasamoyai/1.18.x/main
StewStrong Oct 12, 2023
e225187
Increment version
Oct 12, 2023
abe814e
Added some change logs
Oct 12, 2023
babd287
Don't create render chunks for air sections
Oct 15, 2023
4861dfb
Fix mounted players teleported to void when ship is destroyed #601
Oct 15, 2023
1419646
Removed unused import
Oct 15, 2023
247fdee
Updated vs-core
Oct 15, 2023
2139deb
Fixed PhysShip.transform scaling
Oct 16, 2023
33e03c5
Updated create to 0.5.1
Oct 16, 2023
f95be0e
Fixed mixins
Oct 16, 2023
ba64881
Fixed wings not working on contraptions
Oct 16, 2023
71c5986
Merge pull request #603 from ValkyrienSkies/1.18.x/feature/create-0.5.1
StewStrong Oct 16, 2023
dad25fc
Initial work moving create compat mixins
Oct 16, 2023
cb158e8
Added fabric create mixins
Oct 16, 2023
63468f6
Fixed forge not launching
Oct 16, 2023
e00ea73
Added forge create mixins
Oct 16, 2023
4986c94
Fixed static ships acting sus
Oct 17, 2023
854f492
Fixed static ships acting sus (again 😳)
Oct 17, 2023
4c612b2
Extra info for a log, and limited the zip bombing
ewoudje Oct 17, 2023
f8638b1
Replaced MixinCarriageContraptionEntity @Redirect with @WrapOperation
Oct 19, 2023
c82b836
Updated vs-core
Oct 19, 2023
1b862df
Fixed crash when moving train from ship to world
Oct 19, 2023
8578aac
Fixed ship contraption raytracing when multiple ships near player
Oct 19, 2023
a3c2f4e
Updated vs-core
Oct 20, 2023
df32e76
Fixed game freezing because of too-large entity AABBs
Oct 21, 2023
6aba87a
Added setting to disable teleporting ships when touching portals
Oct 22, 2023
0ba628d
Fixed bug when teleporting ships across dimensions
Oct 22, 2023
799c85d
Empty commit to retry actions
Oct 22, 2023
ce9d361
Fixed players getting stuck colliding with ships in other dimensions
Oct 22, 2023
d11ad1a
Make Level.transformAabbToWorld only transform if the ship dimension …
Oct 22, 2023
1413de5
Made getShipObjectManagingPos() only return the ship if it's in the s…
Oct 22, 2023
8dedf68
Fixed create compat on forge
Oct 23, 2023
2a68860
Updated vs-core
Oct 25, 2023
52b910b
Revert "Don't create render chunks for air sections"
Oct 26, 2023
3df498e
Use contraption anchor pos for wings
Oct 28, 2023
4e46321
Added 100 tick delay when unloading chunks
Oct 28, 2023
301addc
Unified common mixin code
Nov 2, 2023
b3b3682
Improved drill contraptions on ships
Nov 2, 2023
9528e93
Fixed flywheel block entities still rendering after ship is deleted
StewStrong Nov 6, 2023
959c039
Print reason when Krunch fails to load
StewStrong Nov 6, 2023
b101025
Fix entities in ships not rendering when Sodium is installed
StewStrong Nov 6, 2023
e90b710
Only load Sodium mixins on client side
StewStrong Nov 7, 2023
1993e17
Added compat with ReachEntityAttributes to fix chests on ships closin…
StewStrong Nov 9, 2023
c8f16eb
Make VSPhysicsEntity.physicsEntityData and VSPhysicsEntity.physicsEnt…
StewStrong Nov 12, 2023
7155e68
Fixed compile error
StewStrong Nov 12, 2023
edc9712
Fixed chests rendering double with sodium
StewStrong Nov 12, 2023
b794c55
s
mrsterner Nov 16, 2023
14cedf2
1.19.2 port
mrsterner Nov 16, 2023
79b7df2
1.19.2 port
mrsterner Nov 16, 2023
dc3851c
1.19.2 port forge also works now
mrsterner Nov 16, 2023
5f84102
1.19.2 eh somehow this doesnt work anymore
mrsterner Nov 16, 2023
5c994e5
1.19.2 there we go, both fab and forg seems to work
mrsterner Nov 16, 2023
4c71fdb
links to deps
mrsterner Nov 16, 2023
c5aeb87
forgot to initialize items, oh whel ill pR this anyway
mrsterner Nov 16, 2023
17ee0c9
items actually init
mrsterner Nov 16, 2023
47d4fcc
clokwork thingy
mrsterner Nov 16, 2023
3e440e1
clockwork thingy
mrsterner Nov 16, 2023
b3b37ee
Change Deprecated Libraries
some-du6e Nov 16, 2023
b535060
Merge pull request #626 from some-du6e/patch-1
StewStrong Nov 17, 2023
2c49c70
clockwork thingy
mrsterner Nov 17, 2023
b6d2101
Merge remote-tracking branch 'origin/1.19.2/main' into 1.19.2/update
mrsterner Nov 17, 2023
21ee564
merge conflict misses
mrsterner Nov 17, 2023
f491e70
Merge remote-tracking branch 'origin/1.20.1/main' into 1.20.1/update
mrsterner Nov 17, 2023
f027d53
merge conflict misses
mrsterner Nov 17, 2023
b55add7
added missing mixins
mrsterner Nov 17, 2023
5766686
fix cc
mrsterner Nov 17, 2023
8171a8a
your shit together fabric
mrsterner Nov 17, 2023
40c4243
get out of here joml
mrsterner Nov 17, 2023
6f85423
get out of here joml
mrsterner Nov 17, 2023
f998b17
jk get back in here joml
mrsterner Nov 17, 2023
cc41f27
im become death destroyer of joml
mrsterner Nov 17, 2023
efbac0c
Fixed entities not sitting in seats on ships
StewStrong Nov 19, 2023
62d1c0e
Fixed dismounting destroyed seats teleporting entities into the sky
StewStrong Nov 20, 2023
57ff5e9
Fixed forge server not launching
StewStrong Nov 20, 2023
183167f
Replaced an @Overwrite with @WrapOperation
StewStrong Nov 20, 2023
3fbc598
Merge branch '1.18.x/main' into 1.19.2/update
mrsterner Nov 20, 2023
546f1d1
Merge branch '1.19.2/update' into 1.20.1/update
mrsterner Nov 20, 2023
83894b9
im become death destroyer of joml
mrsterner Nov 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ body:
- 1.16
- 1.18
- 1.19
- 1.20.x
validations:
required: true
- type: dropdown
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/compatibility_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ body:
- 1.16
- 1.18
- 1.19
- 1.20.x
validations:
required: true
- type: dropdown
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,26 @@ jobs:
name: "Validate Gradle wrapper"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true # Clone with vs-core submodule
- uses: gradle/wrapper-validation-action@v1

json-yaml-validate:
name: "Validate Json/Yaml files"
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # enable write permissions for pull request comments
steps:
- uses: actions/checkout@v4

- name: json-yaml-validate
id: json-yaml-validate
uses: GrantBirki/[email protected]
with:
comment: "true" # enable comment mode

test-server:
name: Test Server
strategy:
Expand All @@ -27,7 +42,7 @@ jobs:
timeout-minutes: 20 # Fail after 20 minutes
steps:
- name: Shallow Clone (--recurse-submodules)
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "vs-core"]
path = vs-core
url = https://github.com/ValkyrienSkies/vs-core
126 changes: 64 additions & 62 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@ buildscript {
plugins {
// Needed for Forge+Fabric
id "architectury-plugin" version "3.4.146"
id "dev.architectury.loom" version "1.1.346" apply false
id 'io.github.juuxel.loom-quiltflower' version '1.8.0' apply false
id "dev.architectury.loom" version "1.3.355" apply false
id 'io.github.juuxel.loom-vineflower' version '1.11.0' apply false
// Kotlin
id "org.jetbrains.kotlin.jvm" version "1.7.10" apply false
// Kotlin linter
id "org.jlleitschuh.gradle.ktlint" version "10.3.0"

id "org.jetbrains.kotlin.jvm" version "1.9.10" apply false
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
id "com.modrinth.minotaur" version "2.4.3" apply false

// Java linter
id "checkstyle"
}

// Determine the version
Expand All @@ -42,20 +36,73 @@ dependencyLocking {
lockAllConfigurations()
}

// Determine the version of vs-core
String vsCoreGitRevision = "git rev-parse HEAD".execute(null, gradle.includedBuild("vs-core").projectDir).text.trim()
ext.vs_core_version = "1.1.0+" + vsCoreGitRevision.substring(0, 10)
tasks.register("updateVsCore") {
File versionFile = null
File gradleProperties = file("gradle.properties")

try {
def vsCoreBuild = gradle.includedBuild("vs-core")
versionFile = new File(vsCoreBuild.projectDir, "api-game/build/version.txt")

inputs.file(versionFile)
outputs.file(gradleProperties)
dependsOn(vsCoreBuild.task(":api-game:writeVersion"))

[':impl', ':api', ':api-game', ':util'].each {
dependsOn(vsCoreBuild.task("${it}:publishToMavenLocal"))
}
} catch (UnknownDomainObjectException ignore) {}

onlyIf {
versionFile != null
}

doLast {
def vsCoreVersion = versionFile.text
def newGradleProperties = gradleProperties.text.replaceFirst("(?m)^vs_core_version=.*", "vs_core_version=" + vsCoreVersion)
gradleProperties.write(newGradleProperties)
}
}

subprojects {
apply plugin: "dev.architectury.loom"
// Apply checkstyle and ktlint to check the code style of every sub project
apply plugin: "org.jlleitschuh.gradle.ktlint"
apply plugin: "checkstyle"
apply plugin: "org.jetbrains.kotlin.jvm"
apply plugin: "io.github.juuxel.loom-quiltflower"
apply plugin: "io.github.juuxel.loom-vineflower"

configurations.each { it.resolutionStrategy.useGlobalDependencySubstitutionRules.set(false) }

repositories {
try {
def vsCoreBuild = gradle.includedBuild("vs-core")
mavenLocal {
content {
includeGroup("org.valkyrienskies.core")
}
}

[':impl', ':api', ':api-game'].each {
compileJava.dependsOn(vsCoreBuild.task("${it}:publishToMavenLocal"))
}
} catch (UnknownDomainObjectException ignore) {}

mavenCentral()
maven {
url "https://cursemaven.com"
content {
includeModule "curse.maven", "kotlinforforge-351264"
}
}
maven {
name = "Valkyrien Skies Internal"
url = project.vs_maven_url ?: 'https://maven.valkyrienskies.org'
if (project.vs_maven_username && project.vs_maven_password) {
credentials {
username = project.vs_maven_username
password = project.vs_maven_password
}
}
}
if (!project.block_external_repositories) {
mavenLocal()
maven {
Expand All @@ -72,28 +119,14 @@ subprojects {
name = 'tterrag maven'
url = 'https://maven.tterrag.com/'
}
maven { url = "https://api.modrinth.com/maven" } // LazyDFU, Suggestion Tweaker
maven { url = "https://api.modrinth.com/maven" } // LazyDFU, Suggestion Tweaker, Create Big Cannons
maven { url = "https://maven.shedaniel.me/" } // Cloth Config, REI
maven { url "https://maven.architectury.dev/" }
maven { url = "https://mvn.devos.one/snapshots/" } // Fabric Create, Porting Lib, Forge Tags, Milk Lib
maven { url = "https://raw.githubusercontent.com/Fuzss/modresources/main/maven/" } // Forge Config API Port
maven { url = "https://maven.tterrag.com/" } // Registrate, Forge Create and Flywheel
maven { url = "https://maven.cafeteria.dev/releases" } // Fake Player API
maven { url = "https://maven.jamieswhiteshirt.com/libs-release" } // Reach Entity Attributes
maven { url = "https://mvn.devos.one/#/snapshots/" } // Create Fabric
maven {
url = "https://jitpack.io"
content { includeGroup("com.github.llamalad7.mixinextras") }
} // MixinExtras smh my head
}
maven {
name = "Valkyrien Skies Internal"
url = project.vs_maven_url ?: 'https://maven.valkyrienskies.org'
if (project.vs_maven_username && project.vs_maven_password) {
credentials {
username = project.vs_maven_username
password = project.vs_maven_password
}
}
}
}

Expand All @@ -114,37 +147,6 @@ subprojects {

compileOnly("com.google.code.findbugs:jsr305:3.0.2")
}

// configure checkstyle
checkstyle {
// configure to use checkstyle v8.41
toolVersion "8.45.1"
// Gradle should fail builds on checkstyle errors (not warnings)
ignoreFailures = true
// Checkstyle config file is in .checkstyle/checkstyle.xml
configFile = file("${rootDir}/.checkstyle/checkstyle.xml")
}

// configure checkstyle, but different
// https://docs.gradle.org/current/userguide/checkstyle_plugin.html
tasks.withType(Checkstyle) {
reports {
// Do not output html reports
html.enabled = false
// Output xml reports
xml.enabled = true
}
}

// configure ktlint
ktlint {
reporters {
// configure to output in checkstyle XML format
reporter "checkstyle"
}
ignoreFailures = true
disabledRules = ["parameter-list-wrapping"]
}
}

allprojects {
Expand Down
13 changes: 13 additions & 0 deletions changelogs/2.1.1-beta.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# New Features
* LOD that adds collision shapes for stairs/slabs/ect, and adds friction/elasticity/density properties to blocks
* Multithreaded Krunch physics engine
* Multithreaded terrain loading (so physics doesn't lag from terrain loading)
* Allow ships to travel through Nether and End portals
* Allow ships to be teleported between dimensions
* Added physics entity support (currently only used to make balls with the Physics Entity Creator Item, but more coming soon 🙂)

# Bugfixes
* Fixed ships randomly getting stuck in the air
* Fixed scaled ships not behaving correctly in water
* Fixed the @v command argument to behave correctly like the @e argument
* Fixed Ship Creator Item not scaling ships correctly
5 changes: 5 additions & 0 deletions changelogs/2.1.1-beta.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# New Features
Nothing

# Bugfixes
* Removed old CBC mixin that doesn't work on new versions
25 changes: 15 additions & 10 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@

dependencies {
annotationProcessor(implementation("com.github.llamalad7.mixinextras:mixinextras-common:0.2.0-beta.8"))
implementation(annotationProcessor("io.github.llamalad7:mixinextras-common:0.2.0"))

compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
// We depend on fabric loader here to use the fabric @Environment annotations
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"

modApi("me.shedaniel.cloth:cloth-config:11.0.99")
modApi("me.shedaniel.cloth:cloth-config:${cloth_config_version}")

modCompileOnly("maven.modrinth:sodium:mc1.20-0.4.10")
modCompileOnly("maven.modrinth:sodium:${sodium_version}")

// vs-core
implementation("org.valkyrienskies.core:impl:${rootProject.vs_core_version}") {
exclude module: "netty-buffer"
exclude module: "fastutil"
exclude group: "com.google.guava"
}

implementation("org.valkyrienskies.core:util:${rootProject.vs_core_version}")

// FTB Stuffs
// modCompileOnly("curse.maven:ftb-util-404465:4210935")
// modCompileOnly("curse.maven:ftb-teams-404468:4229138")
// modCompileOnly("curse.maven:ftb-chunks-314906:4229120")
modCompileOnly("curse.maven:ftb-util-404465:4210935")
modCompileOnly("curse.maven:ftb-teams-404468:4229138")
modCompileOnly("curse.maven:ftb-chunks-314906:4229120")

// Common create compat,
// We just use a version from a platform and hope the classes exist on both versions and mixins apply correctly
//Common create compat,
//We just use a version from a platform and hope the classes exist on both versions and mixins apply correctly
modCompileOnly("com.simibubi.create:create-fabric-${minecraft_version}:${create_fabric_version}")
{ exclude group: 'com.github.AlphaMode', module: 'fakeconfigtoml' }
modCompileOnly("com.jozufozu.flywheel:flywheel-fabric-${minecraft_version}:0.6.9-4")
modCompileOnly("net.fabricmc.fabric-api:fabric-api:${fabric_api_version}")
modCompileOnly("com.jozufozu.flywheel:flywheel-fabric-${minecraft_version}:${flywheel_version_fabric}")

modCompileOnly("maven.modrinth:create-big-cannons:${createbigcannons_version}")
}

architectury {
Expand Down
9 changes: 9 additions & 0 deletions common/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#https://mvn.devos.one/#/snapshots/io/github/fabricators_of_create/Porting-Lib/Porting-Lib
port_lib_version=2.1.1127+1.20
port_lib_modules = accessors,base,entity,extensions,fake_players,networking,obj_loader,tags,transfer,models,tool_actions,client_events,brewing

# https://modrinth.com/mod/cloth-config/version/8.3.103+fabric
cloth_config_version = 11.1.106

# https://modrinth.com/mod/sodium/versions
sodium_version = mc1.20-0.4.10
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package org.valkyrienskies.mod.compat;

import com.jozufozu.flywheel.backend.instancing.InstanceWorld;
import java.util.Collections;
import java.util.Set;
import java.util.WeakHashMap;
import org.valkyrienskies.core.impl.hooks.VSEvents.ShipUnloadEventClient;
import org.valkyrienskies.mod.mixinducks.MixinBlockEntityInstanceManagerDuck;

public class FlywheelEvents {
static {
registerEvents();
}

private static final Set<InstanceWorld> weakLoadedInstanceWorlds =
Collections.newSetFromMap(
new WeakHashMap<>()
);

private static synchronized void registerEvents() {
ShipUnloadEventClient.Companion.on(event -> {
for (final InstanceWorld instanceWorld : weakLoadedInstanceWorlds) {
((MixinBlockEntityInstanceManagerDuck) instanceWorld.getBlockEntityInstanceManager()).vs$removeShipManager(event.getShip());
}
});
}

public static void onInstanceWorldLoad(final InstanceWorld instanceWorld) {
weakLoadedInstanceWorlds.add(instanceWorld);
}

public static void onInstanceWorldUnload(final InstanceWorld instanceWorld) {
weakLoadedInstanceWorlds.remove(instanceWorld);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,13 @@ public interface EntityAccessor {

@Accessor("feetBlockState")
void setFeetBlockState(BlockState feetBlockState);


@Accessor("portalCooldown")
void setPortalCooldown(int portalCooldown);

@Accessor("portalCooldown")
int getPortalCooldown();

@Accessor("portalEntrancePos")
BlockPos getPortalEntrancePos();
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.valkyrienskies.mod.mixin.accessors.resource;

import java.util.Map;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -8,6 +9,14 @@

@Mixin(ResourceKey.class)
public interface ResourceKeyAccessor {
/*
@Accessor("VALUES")
static Map<String, ResourceKey<?>> getValues() {
throw new AssertionError();
}

*/

@Accessor
ResourceLocation getRegistryName();

Expand Down
Loading