Refactoring mod name
|
@ -1,3 +1,3 @@
|
|||
# minecraft-firstmod
|
||||
# minecraft-wegnercraft
|
||||
|
||||
My first attempt at a Minecraft Forge mod.
|
||||
|
|
|
@ -12,8 +12,8 @@ apply plugin: 'net.minecraftforge.gradle.forge'
|
|||
|
||||
|
||||
version = "1.0"
|
||||
group= "com.wadewegner.firstmod.main.FirstMod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "firstmod"
|
||||
group= "com.wadewegner.wegnercraft.main.Wegnercraft" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "wegnercraft"
|
||||
|
||||
sourceCompatibility = targetCompatibility = "1.6" // Need this here so eclipse task generates correctly.
|
||||
compileJava {
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
package com.wadewegner.firstmod.init;
|
||||
|
||||
// import com.wadewegner.firstmod.init.FirstModBlocks;
|
||||
// import com.wadewegner.firstmod.init.FirstModFood;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class FirstModTabs
|
||||
{
|
||||
public static final CreativeTabs tabFirstModItems = new CreativeTabs("tabFirstModItems")
|
||||
{
|
||||
@Override
|
||||
public Item getTabIconItem()
|
||||
{
|
||||
return FirstModItems.first_item;
|
||||
}
|
||||
};
|
||||
|
||||
public static final CreativeTabs tabFirstModBlocks = new CreativeTabs("tabFirstModBlocks")
|
||||
{
|
||||
@Override
|
||||
public Item getTabIconItem()
|
||||
{
|
||||
return Item.getItemFromBlock(FirstModBlocks.ruby_block);
|
||||
}
|
||||
};
|
||||
|
||||
public static final CreativeTabs tabFirstModeFood = new CreativeTabs("tabFirstModeFood")
|
||||
{
|
||||
@Override
|
||||
public Item getTabIconItem()
|
||||
{
|
||||
return FirstModFood.butter;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package com.wadewegner.firstmod.main;
|
||||
|
||||
public class Reference
|
||||
{
|
||||
public static final String MODID = "firstmod";
|
||||
public static final String NAME = "First Mod";
|
||||
public static final String VERSION = "1.0";
|
||||
|
||||
public static final String CLIENTPROXY = "com.wadewegner.firstmod.proxy.ClientProxy";
|
||||
public static final String COMMONPROXY = "com.wadewegner.firstmod.proxy.CommonProxy";
|
||||
}
|
|
@ -1,14 +1,15 @@
|
|||
package com.wadewegner.firstmod.init;
|
||||
package com.wadewegner.wegnercraft.init;
|
||||
|
||||
import com.wadewegner.wegnercraft.main.Reference;
|
||||
import com.wadewegner.wegnercraft.init.blocks.RubyBlock;
|
||||
|
||||
import com.wadewegner.firstmod.main.Reference;
|
||||
import com.wadewegner.firstmod.init.blocks.RubyBlock;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
public class FirstModBlocks
|
||||
public class WegnercraftBlocks
|
||||
{
|
||||
public static RubyBlock ruby_block;
|
||||
|
||||
|
@ -17,7 +18,7 @@ public class FirstModBlocks
|
|||
ruby_block = new RubyBlock();
|
||||
|
||||
ruby_block.setUnlocalizedName("ruby_block");
|
||||
ruby_block.setCreativeTab(FirstModTabs.tabFirstModBlocks);
|
||||
ruby_block.setCreativeTab(WegnercraftTabs.tabWegnercraftBlocks);
|
||||
}
|
||||
|
||||
public static void registerRenders()
|
|
@ -1,6 +1,6 @@
|
|||
package com.wadewegner.firstmod.init;
|
||||
package com.wadewegner.wegnercraft.init;
|
||||
|
||||
import com.wadewegner.firstmod.main.Reference;
|
||||
import com.wadewegner.wegnercraft.main.Reference;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
|
@ -8,16 +8,18 @@ import net.minecraft.creativetab.CreativeTabs;
|
|||
import net.minecraft.item.ItemFood;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
|
||||
|
||||
public class FirstModFood
|
||||
public class WegnercraftFood
|
||||
{
|
||||
public static Item butter;
|
||||
|
||||
public static void init()
|
||||
{
|
||||
butter = registerItem(new ItemFood(1, 0.9F, false), "butter").setUnlocalizedName("butter").setCreativeTab(FirstModTabs.tabFirstModeFood);
|
||||
butter = registerItem(new ItemFood(1, 0.9F, false), "butter").setUnlocalizedName("butter")
|
||||
.setCreativeTab(WegnercraftTabs.tabWegnercraftFood);
|
||||
}
|
||||
|
||||
public static void registerRenders()
|
|
@ -1,22 +1,22 @@
|
|||
package com.wadewegner.firstmod.init;
|
||||
package com.wadewegner.wegnercraft.init;
|
||||
|
||||
import com.wadewegner.firstmod.main.Reference;
|
||||
import com.wadewegner.wegnercraft.main.Reference;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
|
||||
|
||||
public class FirstModItems
|
||||
public class WegnercraftItems
|
||||
{
|
||||
public static Item first_item;
|
||||
|
||||
public static void init()
|
||||
{
|
||||
first_item = registerItem(new Item(), "first_item").setUnlocalizedName("first_item").setCreativeTab(FirstModTabs.tabFirstModItems);
|
||||
first_item = registerItem(new Item(), "first_item").setUnlocalizedName("first_item").setCreativeTab(WegnercraftTabs.tabWegnercraftItems);
|
||||
}
|
||||
|
||||
public static void registerRenders()
|
|
@ -0,0 +1,35 @@
|
|||
package com.wadewegner.wegnercraft.init;
|
||||
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class WegnercraftTabs
|
||||
{
|
||||
public static final CreativeTabs tabWegnercraftItems = new CreativeTabs("tabWegnercraftItems")
|
||||
{
|
||||
@Override
|
||||
public Item getTabIconItem()
|
||||
{
|
||||
return WegnercraftItems.first_item;
|
||||
}
|
||||
};
|
||||
|
||||
public static final CreativeTabs tabWegnercraftBlocks = new CreativeTabs("tabWegnercraftBlocks")
|
||||
{
|
||||
@Override
|
||||
public Item getTabIconItem()
|
||||
{
|
||||
return Item.getItemFromBlock(WegnercraftBlocks.ruby_block);
|
||||
}
|
||||
};
|
||||
|
||||
public static final CreativeTabs tabWegnercraftFood = new CreativeTabs("tabWegnercraftFood")
|
||||
{
|
||||
@Override
|
||||
public Item getTabIconItem()
|
||||
{
|
||||
return WegnercraftFood.butter;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.wadewegner.firstmod.init.blocks;
|
||||
package com.wadewegner.wegnercraft.init.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
|
@ -0,0 +1,11 @@
|
|||
package com.wadewegner.wegnercraft.main;
|
||||
|
||||
public class Reference
|
||||
{
|
||||
public static final String MODID = "wegnercraft";
|
||||
public static final String NAME = "Wegnercraft";
|
||||
public static final String VERSION = "1.0";
|
||||
|
||||
public static final String CLIENTPROXY = "com.wadewegner.wegnercraft.proxy.ClientProxy";
|
||||
public static final String COMMONPROXY = "com.wadewegner.wegnercraft.proxy.CommonProxy";
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
package com.wadewegner.firstmod.main;
|
||||
package com.wadewegner.wegnercraft.main;
|
||||
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import com.wadewegner.firstmod.proxy.CommonProxy;
|
||||
import com.wadewegner.wegnercraft.proxy.CommonProxy;
|
||||
|
||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||||
|
@ -14,13 +14,13 @@ import net.minecraftforge.fml.common.Mod.Instance;
|
|||
import net.minecraftforge.fml.common.SidedProxy;
|
||||
|
||||
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
|
||||
public class FirstMod
|
||||
public class Wegnercraft
|
||||
{
|
||||
@SidedProxy(clientSide = Reference.CLIENTPROXY, serverSide = Reference.COMMONPROXY)
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@Instance
|
||||
public static FirstMod instance;
|
||||
public static Wegnercraft instance;
|
||||
|
||||
public static Logger logger;
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
package com.wadewegner.firstmod.proxy;
|
||||
package com.wadewegner.wegnercraft.proxy;
|
||||
|
||||
import com.wadewegner.firstmod.init.FirstModItems;
|
||||
import com.wadewegner.firstmod.init.FirstModBlocks;
|
||||
import com.wadewegner.firstmod.init.FirstModFood;
|
||||
import com.wadewegner.wegnercraft.init.WegnercraftItems;
|
||||
import com.wadewegner.wegnercraft.init.WegnercraftBlocks;
|
||||
import com.wadewegner.wegnercraft.init.WegnercraftFood;
|
||||
|
||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||||
|
@ -14,18 +14,18 @@ public class ClientProxy extends CommonProxy
|
|||
public void preInit(FMLPreInitializationEvent evt) {
|
||||
super.preInit(evt);
|
||||
|
||||
FirstModItems.init();
|
||||
FirstModBlocks.init();
|
||||
FirstModFood.init();
|
||||
WegnercraftItems.init();
|
||||
WegnercraftBlocks.init();
|
||||
WegnercraftFood.init();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FMLInitializationEvent evt) {
|
||||
super.init(evt);
|
||||
|
||||
FirstModItems.registerRenders();
|
||||
FirstModBlocks.registerRenders();
|
||||
FirstModFood.registerRenders();
|
||||
WegnercraftItems.registerRenders();
|
||||
WegnercraftBlocks.registerRenders();
|
||||
WegnercraftFood.registerRenders();
|
||||
}
|
||||
|
||||
@Override
|
|
@ -1,8 +1,9 @@
|
|||
package com.wadewegner.firstmod.proxy;
|
||||
package com.wadewegner.wegnercraft.proxy;
|
||||
|
||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class CommonProxy
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"variants": {
|
||||
"normal": { "model" : "firstmod:ruby_block" }
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"parent": "firstmod:block/ruby_block"
|
||||
}
|
До Ширина: | Высота: | Размер: 60 KiB |
До Ширина: | Высота: | Размер: 1.7 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"variants": {
|
||||
"normal": { "model" : "wegnercraft:ruby_block" }
|
||||
}
|
||||
}
|
|
@ -8,6 +8,6 @@ tile.ruby_block.name=Ethan Block
|
|||
item.butter.name=Butter
|
||||
|
||||
// Tabs
|
||||
itemGroup.tabFirstModItems=My Items
|
||||
itemGroup.tabFirstModBlocks=My Blocks
|
||||
itemGroup.tabFirstModeFood=My Food
|
||||
itemGroup.tabWegnercraftItems=My Items
|
||||
itemGroup.tabWegnercraftBlocks=My Blocks
|
||||
itemGroup.tabWegnercrafteFood=My Food
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "firstmod:blocks/ruby_block"
|
||||
"all": "wegnercraft:blocks/ruby_block"
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "firstmod:items/butter"
|
||||
"layer0": "wegnercraft:items/butter"
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "firstmod:items/first_item"
|
||||
"layer0": "wegnercraft:items/first_item"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "wegnercraft:block/ruby_block"
|
||||
}
|
До Ширина: | Высота: | Размер: 24 KiB После Ширина: | Высота: | Размер: 24 KiB |
До Ширина: | Высота: | Размер: 1.6 KiB После Ширина: | Высота: | Размер: 1.6 KiB |
До Ширина: | Высота: | Размер: 27 KiB После Ширина: | Высота: | Размер: 27 KiB |
|
@ -1,14 +1,14 @@
|
|||
[
|
||||
{
|
||||
"modid": "firstmod",
|
||||
"name": "First Mod",
|
||||
"description": "TBD Description",
|
||||
"modid": "wegnercraft",
|
||||
"name": "Wegnercraft",
|
||||
"description": "Additions to Minecraft exclusively for Wegners",
|
||||
"version": "${version}",
|
||||
"mcversion": "${mcversion}",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
"authorList": ["Wade Wegner"],
|
||||
"credits": "TBD Credits",
|
||||
"credits": "TBD",
|
||||
"logoFile": "",
|
||||
"screenshots": [],
|
||||
"dependencies": []
|
||||
|
|