Skip to content

Commit

Permalink
Rename to Dawn Craft Mod.And update to B0.10
Browse files Browse the repository at this point in the history
Rename to Dawn Craft Mod.And update to B0.10.
Then I fixed some bugs.
  • Loading branch information
DawningW committed Jul 1, 2016
1 parent 649bef2 commit 5f813ed
Show file tree
Hide file tree
Showing 208 changed files with 1,043 additions and 497 deletions.
17 changes: 0 additions & 17 deletions .gitattributes

This file was deleted.

78 changes: 23 additions & 55 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,23 @@
# TXT
*.txt

# others
*.setting
*.classpath
*.project

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

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

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

# Windows shortcuts
*.lnk

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

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

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

# include sourcecode
!src/

# need gradle
!gradle/
!gradlew
!gradlew.bat
!build.gradle
!gradle.properties

# include markdowns
!LICENSE
!LICENSE-fml.txt
!LICENSE-forge.txt
!README.txt
!README.md

# include git important files
!.gitmodules
!.gitignore
491 changes: 491 additions & 0 deletions LICENSE-fml.txt

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions LICENSE-forge.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
Minecraft Forge Public Licence
==============================

Version 1.0

0. Definitions
--------------

Minecraft: Denotes a copy of the Minecraft game licensed by Mojang AB

User: Anybody that interract with the software in one of the following ways:
- play
- decompile
- recompile or compile
- modify

Minecraft Forge: The Minecraft Forge code, in source form, class file form, as
obtained in a standalone fashion or as part of a wider distribution.

Dependency: Code required to have Minecraft Forge working properly. That can
include dependencies required to compile the code as well as modifications in
the Minecraft sources that are required to have Minecraft Forge working.

1. Scope
--------

The present license is granted to any user of Minecraft Forge, for all files included
unless stated otherwise in the file itself. As a prerequisite, a user of Minecraft
Forge must own a legally aquired copy of Minecraft.

2. Play rights
--------------

The user of Minecraft Forge is allowed to install the software on a client or
a server and to play it without restriction.

3. Modification rights
----------------------

The user has the right to decompile the source code, look at either the
decompiled version or the original source code, and to modify it.

4. Derivation rights
--------------------

The user has the rights to derive code from Minecraft Forge, that is to say to
write code that either extends Minecraft Forge class and interfaces,
instantiate the objects declared or calls the functions. This code is known as
"derived" code, and can be licensed with conditions different from Minecraft
Forge.


5. Distribution rights
----------------------

The user of Minecraft Forge is allowed to redistribute Minecraft Forge in
partially, in totallity, or included in a distribution. When distributing
binaries or class files, the user must provide means to obtain the sources of
the distributed version of Minecraft Forge at no costs. This includes the
files as well as any dependency that the code may rely on, including patches to
minecraft original sources.

Modification of Minecraft Forge as well as dependencies, including patches to
minecraft original sources, has to remain under the terms of the present
license.

The right to distribute Minecraft Forge does not extend to the right to distribute
MCP data files included within Minecraft Forge. These are the property of the MCP
project and should be removed from any customized distribution of Minecraft Forge
or permission sought separately from the MCP team.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Wc的科技Mod For Minecraft 1.8
# 曙光工艺Mod For Minecraft 1.8
本Mod遵守MIT协议开源
欢迎各路大神加入我们
QQ群:284807326
QQ群:287307326

======= 分 割 线 =======
如果你想为我们的项目贡献代码
那么请遵守规范:
1.缩进请使用四个空格或一个制表符
2.写代码请注意规范,例如:
在com.github.wdawning.dawncraft.item.ItemLoader中注册物品,而不是在com.github.wdawning.dawncraft.common.CommonProxy的preInit阶段中注册
PS:关于这点,你可以参考一下ustc-zzzz大大的教程,我就是从他的教程开始学做Mod的>_<
3.请在gradle.properties中更改Mod信息
4.还有其他的就不一一列举了
59 changes: 59 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
-------------------------------------------
Source installation information for modders
-------------------------------------------
This code follows the Minecraft Forge installation methodology. It will apply
some small patches to the vanilla MCP source code, giving you and it access
to some of the data and functions you need to build a successful mod.

Note also that the patches are built against "unrenamed" MCP source code (aka
srgnames) - this means that you will not be able to read them directly against
normal code.

Source pack installation information:

Standalone source installation
==============================

Step 1: Open your command-line and browse to the folder where you extracted the zip file.

Step 2: Once you have a command window up in the folder that the downloaded material was placed, type:

Windows: "gradlew setupDecompWorkspace"
Linux/Mac OS: "./gradlew setupDecompWorkspace"

Step 3: After all that finished, you're left with a choice.
For eclipse, run "gradlew eclipse" (./gradlew eclipse if you are on Mac/Linux)

If you preffer to use IntelliJ, steps are a little different.
1. Open IDEA, and import project.
2. Select your build.gradle file and have it import.
3. Once it's finished you must close IntelliJ and run the following command:

"gradlew genIntellijRuns" (./gradlew genIntellijRuns if you are on Mac/Linux)

Step 4: The final step is to open Eclipse and switch your workspace to /eclipse/ (if you use IDEA, it should automatically start on your project)

If at any point you are missing libraries in your IDE, or you've run into problems you can run "gradlew --refresh-dependencies" to refresh the local cache. "gradlew clean" to reset everything {this does not effect your code} and then start the processs again.

Should it still not work,
Refer to #ForgeGradle on EsperNet for more information about the gradle environment.

Tip:
If you do not care about seeing Minecraft's source code you can replace "setupDecompWorkspace" with one of the following:
"setupDevWorkspace": Will patch, deobfusicated, and gather required assets to run minecraft, but will not generated human readable source code.
"setupCIWorkspace": Same as Dev but will not download any assets. This is useful in build servers as it is the fastest because it does the least work.

Tip:
When using Decomp workspace, the Minecraft source code is NOT added to your workspace in a editable way. Minecraft is treated like a normal Library. Sources are there for documentation and research purposes and usually can be accessed under the 'referenced libraries' section of your IDE.

Forge source installation
=========================
MinecraftForge ships with this code and installs it as part of the forge
installation process, no further action is required on your part.

LexManos' Install Video
=======================
https://www.youtube.com/watch?v=8VEdtQLuLO0&feature=youtu.be

For more details update more often refer to the Forge Forums:
http://www.minecraftforge.net/forum/index.php/topic,14048.0.html
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ buildscript {

apply plugin: 'forge'

version = "B0.9"
group= "WdawningStudio" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "wcscience"
version = mod_version
group= mod_group // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = mod_id

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

minecraft {
version = "1.8-11.14.3.1500"
version = minecraft_version + "-" + forge_version
runDir = "eclipse"

// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// 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 = 'stable_18'
mappings = mcp_mapping
}

dependencies {
Expand Down
9 changes: 9 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mod Information
mod_id = dawncraft
mod_version = B0.10
mod_group = wdawning

# Minecraft & Forge
minecraft_version = 1.8
forge_version = 11.14.3.1500
mcp_mapping = stable_18

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package WdawningStudio.DawnW.science.achievement;
package com.github.wdawning.dawncraft.achievement;

import WdawningStudio.DawnW.science.science;
import WdawningStudio.DawnW.science.item.ItemLoader;
import com.github.wdawning.dawncraft.dawncraft;
import com.github.wdawning.dawncraft.item.ItemLoader;

import net.minecraft.stats.Achievement;
import net.minecraft.stats.AchievementList;
import net.minecraftforge.common.AchievementPage;

public class AchievementLoader
Expand All @@ -19,5 +18,5 @@ public AchievementLoader()
}

//register new Achievement page
public static AchievementPage pageScience = new AchievementPage(science.NAME, Ger);
public static AchievementPage pageScience = new AchievementPage(dawncraft.NAME, Ger);
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
package WdawningStudio.DawnW.science.block;
package com.github.wdawning.dawncraft.block;

import java.util.Random;

import WdawningStudio.DawnW.science.creativetab.CreativeTabsLoader;
import com.github.wdawning.dawncraft.creativetab.CreativeTabsLoader;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;

public class BlockComputer extends Block
{
Expand Down Expand Up @@ -104,6 +94,7 @@ public boolean isFullCube()

//方块状态太难弄了,我不玩♂你♀行了吧.........
//其实是从家具mod里抄的,太无耻!!!!!!!!
//好吧,其实我会了hi哈哈哈
/*
@Override
public IBlockState onBlockPlaced(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package WdawningStudio.DawnW.science.block;
package com.github.wdawning.dawncraft.block;

import com.github.wdawning.dawncraft.creativetab.CreativeTabsLoader;

import WdawningStudio.DawnW.science.creativetab.CreativeTabsLoader;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyBool;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package WdawningStudio.DawnW.science.block;
package com.github.wdawning.dawncraft.block;

import WdawningStudio.DawnW.science.fluid.FluidLoader;
import WdawningStudio.DawnW.science.fluid.FluidPetroleum;
import com.github.wdawning.dawncraft.fluid.FluidLoader;

import net.minecraft.block.material.Material;
import net.minecraftforge.fluids.BlockFluidClassic;
import net.minecraftforge.fluids.Fluid;

public class BlockFluidPetroleum extends BlockFluidClassic
{
Expand Down
Loading

0 comments on commit 5f813ed

Please sign in to comment.