Add sounds and fix build.gradle

This commit is contained in:
JackCarterSmith 2019-02-26 14:43:28 +01:00
parent 00c4ac1dfd
commit c37172feaf
8 changed files with 17 additions and 13 deletions

View File

@ -18,8 +18,8 @@ buildscript {
apply plugin: 'forge'
version = "0.1.1"
group= "fr.jcs.bigalarm" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "bigalarm"
group = "fr.jcs.bigalarm"
archivesBaseName = "BigAlarm"
apply plugin: 'java'
sourceCompatibility = 1.7
@ -27,6 +27,7 @@ targetCompatibility = 1.7
minecraft {
version = "1.7.10-10.13.4.1558-1.7.10"
replace '${version}', project.version
mappings = 'stable_12'
runDir = "eclipse"
}
@ -49,19 +50,15 @@ dependencies {
processResources
{
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}

View File

@ -8,6 +8,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public class AlarmBlock extends BlockContainer {
public AlarmBlock() {
super(Material.iron);
this.setHardness(5.0F);

View File

@ -0,0 +1,6 @@
{
"alarm-default": {"category": "master","sounds": [{"name": "alarm-default","stream": true}]},
"alarm-sci-fi": {"category": "master","sounds": [{"name": "alarm-sci-fi","stream": true}]},
"alarm-mf": {"category": "master","sounds": [{"name": "alarm-mf","stream": true}]},
"alarm-buzzer": {"category": "master","sounds": [{"name": "alarm-buzzer","stream": true}]}
}

Binary file not shown.

View File

@ -1,14 +1,14 @@
[
{
"modid": "examplemod",
"name": "Example Mod",
"description": "Example placeholder mod.",
"modid": "bigalarm",
"name": "BigAlarm",
"description": "I love big alarm sound, not you ? This is a mod who add alarm block for making a real alarm system for your reactor or just for intruder.",
"version": "${version}",
"mcversion": "${mcversion}",
"url": "",
"updateUrl": "",
"authorList": ["ExampleDude"],
"credits": "The Forge and FML guys, for making this example",
"url": "https://jcs.bfnt.io/",
"updateUrl": "https://ci.jcs.bfnt.io/job/BigAlarm/",
"authorList": ["JackCarterSmith"],
"credits": "",
"logoFile": "",
"screenshots": [],
"dependencies": []