Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
froyo4u authored Nov 21, 2020
1 parent 94c13fc commit 69bf36b
Show file tree
Hide file tree
Showing 36 changed files with 618 additions and 6 deletions.
12 changes: 6 additions & 6 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License
The MIT License (MIT)

Copyright (c) 2020 MeowMC
Copyright (c) 2020

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -9,13 +9,13 @@ 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 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.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
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.5-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

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"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_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()
}
}
4 changes: 4 additions & 0 deletions build/classes/java/main/doorknockmod-refmap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"mappings": {},
"data": {}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions build/loom-cache/mixin-map-1.16.4-1.16.4+build.7-v2.0.tiny
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1 named intermediary
Binary file added build/resources/main/assets/doorknockmod/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions build/resources/main/assets/doorknockmod/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"subtitles.doorknockmod.door_knock":"Door knocking",
"subtitles.doorknockmod.trapdoor_knock":"Trapdoor knocking"
}
15 changes: 15 additions & 0 deletions build/resources/main/assets/doorknockmod/sounds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"door_knock": {
"subtitle": "subtitles.doorknockmod.door_knock",

"sounds": [
"doorknockmod:door_knock"
]
},
"trapdoor_knock": {
"subtitle": "subtitles.doorknockmod.trapdoor_knock",
"sounds": [
"doorknockmod:trapdoor_knock"
]
}
}
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions build/resources/main/doorknockmod.mixins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"required": true,
"minVersion": "0.8",
"package": "tk.meowmc.doorknockmod.mixin",
"compatibilityLevel": "JAVA_8",
"mixins": [
"DoorKnockMixins",
"TrapDoorKnockMixins"
],
"client": [
"DoorKnockMixins",
"TrapDoorKnockMixins"
],
"server": [
"DoorKnockMixins",
"TrapDoorKnockMixins"
],
"injectors": {
"defaultRequire": 1
}
}
23 changes: 23 additions & 0 deletions build/resources/main/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"schemaVersion": 1,
"id": "doorknockmod",
"version": "1.0",
"name": "Door Knocker",
"description": "",
"authors": [],
"contact": {},
"license": "MIT",
"environment": "*",
"entrypoints": {
"main": [
"tk.meowmc.doorknockmod.Doorknockmod"
]
},
"mixins": [
"doorknockmod.mixins.json"
],
"depends": {
"fabric": "*",
"minecraft": "1.16.x"
}
}
8 changes: 8 additions & 0 deletions build/tmp/compileJava/source-classes-mapping.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tk/meowmc/doorknockmod/KnockSounds.java
tk.meowmc.doorknockmod.KnockSounds
tk/meowmc/doorknockmod/mixin/TrapDoorKnockMixins.java
tk.meowmc.doorknockmod.mixin.TrapDoorKnockMixins
tk/meowmc/doorknockmod/Doorknockmod.java
tk.meowmc.doorknockmod.Doorknockmod
tk/meowmc/doorknockmod/mixin/DoorKnockMixins.java
tk.meowmc.doorknockmod.mixin.DoorKnockMixins
2 changes: 2 additions & 0 deletions build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 2 additions & 0 deletions build/tmp/remapJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 2 additions & 0 deletions build/tmp/sourcesJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

14 changes: 14 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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.16.4
yarn_mappings=1.16.4+build.7
loader_version=0.10.8
# Mod Properties
mod_version=1.0
maven_group=tk.meowmc
archives_base_name=doorknockmod
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.25.1+build.416-1.16
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-6.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 69bf36b

Please sign in to comment.