Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ build
# other
eclipse
run

classes
28 changes: 0 additions & 28 deletions CREDITS-fml.txt

This file was deleted.

483 changes: 0 additions & 483 deletions LICENSE-new.txt

This file was deleted.

26 changes: 0 additions & 26 deletions MinecraftForge-Credits.txt

This file was deleted.

10 changes: 0 additions & 10 deletions Paulscode IBXM Library License.txt

This file was deleted.

40 changes: 0 additions & 40 deletions Paulscode SoundSystem CodecIBXM License.txt

This file was deleted.

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Roost
====

[![CurseForge](http://cf.way2muchnoise.eu/versions/roost_latest.svg)](https://minecraft.curseforge.com/projects/roost)

A Minecraft mod that gives chickens a place to rest.

59 changes: 0 additions & 59 deletions README.txt

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ minecraft {
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not allways work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20170624"
mappings = "snapshot_20171003"
useDepAts = true
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G

minecraft_version=1.12
forge_version=14.21.1.2443
minecraft_version=1.12.2
forge_version=14.23.5.2768
hwyla_version=1.8.20-B35_1.12
jei_version=jei_1.12.2:4.7.11.102
roost_version=1.3.0
chickens_version=6.0.2
jei_version=jei_1.12.2:4.14.1.234
roost_version=2.0.10
chickens_version=6.1.0
16 changes: 16 additions & 0 deletions license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
The MIT License

Copyright (c) 2019 Tim Wood, David Vierra

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.
Binary file added logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/main/java/com/timwoodcreates/roost/EggPreventer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.timwoodcreates.roost;

import net.minecraft.entity.passive.EntityChicken;
import net.minecraftforge.event.entity.living.LivingEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

public class EggPreventer {
@SubscribeEvent
public static void onLivingUpdate(LivingEvent.LivingUpdateEvent e) {
if(e.getEntity().getClass().equals(EntityChicken.class)) {
EntityChicken chicken = (EntityChicken) e.getEntity();
if(chicken.timeUntilNextEgg <= 1) {
chicken.timeUntilNextEgg = 999999999;
}
}
}
}
19 changes: 15 additions & 4 deletions src/main/java/com/timwoodcreates/roost/Roost.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.timwoodcreates.roost;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.timwoodcreates.roost.proxy.ProxyCommon;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInterModComms;
import net.minecraftforge.fml.common.event.FMLLoadCompleteEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

@Mod(modid = Roost.MODID, version = Roost.VERSION)
public class Roost {
Expand All @@ -33,5 +33,16 @@ public void preInit(FMLPreInitializationEvent e) {
RoostConfig.sync();

PROXY.preInit(e);

if(RoostConfig.disableEggLaying) {
MinecraftForge.EVENT_BUS.register(EggPreventer.class);
}
}


@EventHandler
public static void loadComplete(FMLLoadCompleteEvent event) {
PROXY.loadComplete(event);
}

}
3 changes: 3 additions & 0 deletions src/main/java/com/timwoodcreates/roost/RoostConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public class RoostConfig {
@RangeDouble(min = 0.01d, max = 100d)
public static double breederSpeed = 1d;

@Comment("Prevent vanilla chickens from laying eggs. Of interest to modpack makers only.")
public static boolean disableEggLaying = false;

public static void sync() {
ConfigManager.sync(Roost.MODID, Config.Type.INSTANCE);
}
Expand Down
Loading