This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
maven { url = 'https://files.minecraftforge.net/maven' } | |
mavenCentral() | |
} | |
dependencies { | |
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.examplemod; | |
import net.minecraft.creativetab.CreativeTabs; | |
import net.minecraft.init.Items; | |
import net.minecraft.item.Item; | |
import net.minecraft.item.ItemShears; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.item.crafting.IRecipe; | |
import net.minecraft.util.ResourceLocation; | |
import net.minecraftforge.common.MinecraftForge; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
maven { url = "http://files.minecraftforge.net/maven" } | |
} | |
dependencies { | |
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include 'EnchantChanger','MultiToolHolders','Booster', 'DigBedrock','FarmOptimize','LilypadBreed','AdditionalEnchantments','BigItems','ChainDestruction','HyperDimensionalBag','VillagerTweaks','MergeEnchantment','ModItemName','NameWakander','AdvancedTools','OreBlockLight', 'PokeLoli','ReplaceBlock','SpawnChange','StackableTools','StackSizeChange','StoneCutter','FenceGateKeeper','HarvestLevelSetter', 'CompactEngine','VisibleRayGenerator','InfinityChest','SolomonsRod','Den-Endermans','FixVanilla','FoodInfo','PotionExtension','StructureTweaks','Schr0Box','Ebon','NanoLaser','MoreEffectivePotion'//, 'MCEconomy2', 'SextiarySector' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
//mavenLocal() | |
maven { | |
name = "forge" | |
url = "http://files.minecraftforge.net/maven" | |
} | |
maven { | |
name = "sonatype" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.examplemod; | |
import com.google.common.base.Function; | |
import com.google.common.collect.ImmutableMap; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.BlockColored; | |
import net.minecraft.block.material.Material; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.renderer.block.model.BakedQuad; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ak.sampleMod; | |
import cpw.mods.fml.common.registry.GameRegistry; | |
import net.minecraft.entity.SharedMonsterAttributes; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.item.Item; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.item.ItemSword; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.nbt.NBTTagList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ID指定だけ。被ってたら被らなくなるまで増加方向にずれる。 | |
private void registerItemToId(Item item, String name, String modId, int Id) | |
{ | |
//これに悩んでたってわけ。 | |
Map<UniqueIdentifier, ModContainer> customOwners = ObfuscationReflectionHelper.getPrivateValue(GameData.class, null, 3); | |
ModContainer mc = Loader.instance().activeModContainer(); | |
if (modId != null) | |
{ | |
//地味にここも悩んだ。 | |
customOwners.put(new UniqueIdentifier(modId + ":" +name), mc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Additional Enchantment | |
1.3.1 | |
1.11に対応 | |
1.3.0 | |
1.9.4及び1.10.0に対応 | |
1.2.11 | |
エンチャントの重複判定が1.7.10版で直っていなかったので、修正。 | |
1.2.10 | |
1.8.9対応 | |
1.2.9 |