Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gnembon committed Jan 31, 2020
1 parent 90d95c6 commit 8f714fa
Show file tree
Hide file tree
Showing 53 changed files with 4,065 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# gradle

.gradle/
build/
out/
classes/

# idea

.idea/
*.iml
*.ipr
*.iws

# vscode

.settings/
.vscode/
bin/
.classpath
.project

# fabric

run/
90 changes: 90 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,92 @@
# quick-carpet
Very small subset of carpet mod features that allows to very quickly update to new versions and snapshots

## commandPlayer
Enables /player command to spawn players
* Type: `String`
* Default value: `true`
* Suggested options: `true`, `false`
* Categories: `COMMAND`
* Additional notes:
* It has an accompanying command
* Can be limited to 'ops' only, or a custom permission level

## commandSpawn
Enables /spawn command for mobcaps information
* Type: `String`
* Default value: `true`
* Suggested options: `true`, `false`
* Categories: `COMMAND`
* Additional notes:
* It has an accompanying command
* Can be limited to 'ops' only, or a custom permission level

## commandTick
Enables /tick command to control game clocks
Available functions: warp, rate and health
* Type: `String`
* Default value: `true`
* Suggested options: `true`, `false`
* Categories: `COMMAND`
* Additional notes:
* It has an accompanying command
* Can be limited to 'ops' only, or a custom permission level

## explosionNoBlockDamage
Explosions won't destroy blocks
* Type: `boolean`
* Default value: `false`
* Required options: `true`, `false`
* Categories: `CREATIVE`

## fillLimit
Customizable fill/clone volume limit
* Type: `int`
* Default value: `32768`
* Suggested options: `32768`, `250000`, `1000000`
* Categories: `CREATIVE`
* Additional notes:
* You must choose a value from 1 to 20M

## fillUpdates
fill/clone/setblock and structure blocks cause block updates
* Type: `boolean`
* Default value: `true`
* Required options: `true`, `false`
* Categories: `CREATIVE`

## hopperCounters
hoppers pointing to wool will count items passing through them
Enables /counter command, and actions while placing red and green carpets on wool blocks
Use /counter <color?> reset to reset the counter, and /counter <color?> to query
Counters are global and shared between players, 16 channels available
Items counted are destroyed, count up to one stack per tick per hopper
* Type: `boolean`
* Default value: `false`
* Required options: `true`, `false`
* Categories: `COMMAND`, `CREATIVE`
* Additional notes:
* It has an accompanying command

## interactionUpdates
placing blocks cause block updates
* Type: `boolean`
* Default value: `true`
* Required options: `true`, `false`
* Categories: `CREATIVE`

## smoothClientAnimations
smooth client animations with low tps settings
works only in SP, and will slow down players
* Type: `boolean`
* Default value: `false`
* Required options: `true`, `false`
* Categories: `CREATIVE`

## superSecretSetting
Gbhs sgnf sadsgras fhskdpri!
* Type: `boolean`
* Default value: `false`
* Required options: `true`, `false`
* Categories: `CREATIVE`

77 changes: 77 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
plugins {
id 'fabric-loom' version '0.2.6-SNAPSHOT'
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

minecraft {
}

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

// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
// You may need to force-disable transitiveness on them.
}

processResources {
inputs.property "version", project.version

from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}

from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}

// 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
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}

// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}

jar {
from "LICENSE"
}

// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}

// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
}
}
13 changes: 13 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.15.2
yarn_mappings=1.15.2+build.8
loader_version=0.7.6+build.180

# Mod Properties
mod_version = 1.0.0
maven_group = carpet
archives_base_name = quick-carpet
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-5.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 8f714fa

Please sign in to comment.