Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemmmy committed May 12, 2022
0 parents commit f3dc83e
Show file tree
Hide file tree
Showing 77 changed files with 3,766 additions and 0 deletions.
120 changes: 120 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# User-specific stuff
.idea/

*.iml
*.ipr
*.iws

# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

.gradle
build/

# Ignore Gradle GUI config
gradle-app.setting

# Cache of project
.gradletasknamecache

**/build/

# Common working directory
run/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

src/generated/resources/.cache
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2022 SquidDev, Lemmmy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
77 changes: 77 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Plethora-Fabric

Plethora-Fabric is a port of [Plethora](https://github.com/SquidDev-CC/plethora) for Fabric 1.18+. The port is still
ongoing.

## Port status
### Handheld modules
- [x] Kinetic augment
- [x] Frickin' laser beam
- [x] Block scanner
- [x] Entity sensor
- [ ] Keyboard
- [ ] Neural interface

### Peripheral modules
- [ ] Manipulator
- [ ] Chat recorder
- [ ] Overlay glasses
- [ ] Introspection nodule
- [ ] Kinetic augment
- [ ] Frickin' laser beam
- [ ] Block scanner
- [ ] Entity sensor
- [ ] Redstone integrator

### Other features
- [ ] Minecart computer
- [ ] Cost system
- [ ] Module blacklist & method configuration

### Integration
- [ ] API
- [ ] ComputerCraft integration (?)
- [ ] Vanilla integration (?)

# Plethora (original Forge readme)

Plethora is a ComputerCraft/CC:Tweaked peripheral provider for Minecraft 1.8.9+. It aims to provide both metadata and
peripherals for vanilla Minecraft and most mainstream mods.

Plethora also adds a series of "modules" to the game. These modules can be used by the player with varying success.
They really come in to their element when put in a manipulator, providing a series of methods which allow
interacting with your environment. This includes:
- Introspection: investigating the current player's inventory (and ender chest)
- Scanner: scans blocks in an area, gathering metadata about them.
- Sensor: scans entities in an area. Like the scanner this allows getting metadata.
- Frickin' laser beam. It fires lasers.
- Chat recorder: allows listening to chat messages, capturing and sending messages as the owning player.
- Kinetic augment: allows remote access to your muscles, making them even stronger than before.

If you've ever wanted to embed a computer in your skull then today is your lucky day. Plethora provides a neural
interface which can be attached to your head, or some unsuspecting animal or monster. Right clicking the entity with a
neural controller allows you to interact with it. You can insert modules (which will be wrapped as peripherals) and
manipulate them with the built-in computer. Building a cyborg army has never been so easy.

You can also add a kinetic augment to the neural interface. This allows controlling the host entity in various ways.

## Requirements
- Minecraft with recent version of Forge
- [CC: Tweaked](http://minecraft.curseforge.com/projects/cc-tweaked)

## Documentation
There is pretty comprehensive documentation on [the Plethora website](https://squiddev-cc.github.io/plethora/). This
contains tutorials, explanations of several fundamental concepts and thoroughly explained examples.

You can also create a HTML dump of all methods by running the command `/plethora dump out.html`. When run in a single
player world this will save a file in the active directory (normally `.minecraft` or your modpack's folder). This
documentation is also [available online](http://squiddev-cc.github.io/plethora/methods.html).

## Images
![](https://squiddev-cc.github.io/plethora/images/squids-laser.png)

> You know, I have one simple request. And that is to have ~~sharks~~ squid with frickin' laser beams attached to their heads!
![](https://squiddev-cc.github.io/plethora/images/modules.png)

> Various modules available
131 changes: 131 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
plugins {
id 'fabric-loom' version '0.12.21'
id 'maven-publish'
}

version = project.mod_version
group = project.maven_group

repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.

maven {
name "SquidDev"
url "https://squiddev.cc/maven"
}

// CC: Restitched and transitive dependencies
maven { url "https://jitpack.io" } // TODO: CC:R on Maven?
maven { url "https://maven.shedaniel.me" } // cloth-config-fabric etc.
maven { url "https://maven.terraformersmc.com/releases" } // Mod Menu
maven {
url "https://ladysnake.jfrog.io/artifactory/mods"
content {
includeGroup "io.github.ladysnake"
includeGroupByRegex "io\\.github\\.onyxstudios.*"
}
}
}

sourceSets {
main.resources {
srcDir "src/generated/resources"
}
}

loom {
accessWidenerPath = file("src/main/resources/plethora.accesswidener")

runs {
data {
server()

name "Data Generation"
vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.output-dir=${file("src/generated/resources")}"

runDir "build/datagen"
}
}
}
assemble.dependsOn runData

dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${minecraft_version}"
mappings "net.fabricmc:yarn:${yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"

// CC: Restitched
modApi "com.github.cc-tweaked:cc-restitched:${cc_version}"

modImplementation(include("org.spongepowered:configurate-hocon:${configurate_version}"))
modImplementation(include("io.github.ladysnake:satin:${satin_version}"))

modApi("me.shedaniel.cloth:cloth-config-fabric:6.2.57") {
exclude(group: "net.fabricmc.fabric-api")
}
}

processResources {
inputs.property "version", project.version
filteringCharset "UTF-8"

filesMatching("fabric.mod.json") {
expand "version": project.version
}
}

def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release = targetJavaVersion
}
}

java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
archivesBaseName = project.archives_base_name
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}

// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
22 changes: 22 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.3
loader_version=0.14.5
# Mod Properties
mod_version=2.0.0-SNAPSHOT
maven_group=pw.switchcraft
archives_base_name=plethora
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.51.1+1.18.2

cc_version=v1.18.2-1.100.5-ccr
modmenu_version=3.2.1
night_config_version=3.6.5
cloth_api_version=3.2.64
cloth_config_version=7.0.61
configurate_version=4.1.2
satin_version=1.7.2
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit f3dc83e

Please sign in to comment.