Wikiの見方がわかりません

Modding・サーバPlugin制作・ツール制作など、開発関連の質問があればこちらにお願い致します。
フォーラムルール
質問関連フォーラムで質問する時は、必ず次のトピックを一読/厳守お願い致します。
viewtopic.php?f=5&t=999
  • (PostNo.310887)

Wikiの見方がわかりません

投稿記事by 黒狐サァン » 2017年12月01日(金) 20:32

Minecraft modding wiki のバージョン1.7.10の無機能ブロックのページを見ていたのですが、「SampleBlockCore.java」「SampleBlock.java」の二つがあったのですが、どちらを見ればいいかよくわかりません
Modding初心者なので優しい方教えてくれると嬉しいです
黒狐サァン
ID:ca259d20
水から上がったとこ
 
記事: 10
登録日時: 2017年11月22日(水) 18:09

  • (PostNo.310893)

Re: Wikiの見方がわかりません

投稿記事by elise_blacklab » 2017年12月02日(土) 00:38

「どちらか」ではなく両方です.
Javaというのはオブジェクト指向型言語でして,オブジェクトごとにデータの内容・操作方法を抽象化するADTという概念のもと成り立っています.まあ実際にオブジェクトは複数が様々な関係を成して利用されるんですが,今回は「Mod本体」と「Block」という2つのオブジェクトを利用するわけです.
その利用方法については構築するシステムによりけりなので一般論を言うのは難しいですが,それぞれが「どこで」「どのような」利用のされ方をしているのかはソースを見ればだいたいわかります.ある意味,その程度にはJavaおよびオブジェクト指向に関する知識がないと,開発を進めるのはほぼ不可能です.

Javaについてある程度の知識があり,いざModding APIに向き合うのであれば,とりあえず丸ごとプロジェクトにコピーしてパラメータの一つ二つ変えてみれば良いでしょう.
メイドつくってたりします.http://6docvc.net/
アバター
elise_blacklab
ID:0f87040f
掘り廃人
 
記事: 2543
登録日時: 2014年6月25日(水) 18:30

  • (PostNo.310906)

Re: Wikiの見方がわかりません

投稿記事by 黒狐サァン » 2017年12月02日(土) 17:09

ということは、パッケージを作ってその中にクラスを二つ作成したらそれぞれに「SampleBlockCore.java」「SampleBlock.java」に書いてあるソースを張り付けて、変更必要箇所を変更すればよいということでしょうか?理解力なくてすいません
黒狐サァン
ID:ca259d20
水から上がったとこ
 
記事: 10
登録日時: 2017年11月22日(水) 18:09

  • (PostNo.310948)

Re: Wikiの見方がわかりません

投稿記事by 黒狐サァン » 2017年12月03日(日) 16:22

あの後試行錯誤してできるようになりました!
ですが、自分で作ったブロックを作るレシピを作ろうと思いそのブロックを指定しようとしたのですができません
どうすればよいでしょうか?

(一応)
コード

package kurogitsune_mod;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

public class Kurogitsune_block extends Block{


@SideOnly(Side.CLIENT)
private IIcon TopIcon;

@SideOnly(Side.CLIENT)
private IIcon SideIcon;

public Kurogitsune_block() {
super(Material.rock);
setCreativeTab(CreativeTabs.tabBlock);
setBlockName("Takumi_block");
setBlockTextureName("kurogitsune_mod:takumi_block");
setHardness(2.5F);
setResistance(100.0F);
setStepSound(Block.soundTypeStone);
setLightOpacity(1);
setLightLevel(14.0F);
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);/*当たり判定*/
GameRegistry.addRecipe(new ItemStack(Blocks.Takumi_block),
"AAA",
"AAA",
"AAA",
'A',Items.gunpowder
);
}

}

エラーコード

[16:17:55] [main/INFO] [GradleStart]: Extra: []
[16:17:55] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/kurogitsune/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[16:17:55] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[16:17:55] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[16:17:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:17:55] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[16:17:55] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
[16:17:55] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_144, running on Windows 8.1:x86:6.3, installed at C:\Users\kurogitsune\Desktop\eclips\Eclips\pleiades\java\8\jre
[16:17:55] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[16:17:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:17:55] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[16:17:55] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[16:17:55] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:17:55] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[16:17:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:17:55] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:17:55] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:17:55] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:17:55] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:17:58] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[16:17:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:17:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[16:17:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:17:59] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[16:17:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[16:17:59] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[16:18:00] [main/INFO]: Setting user: Player749
[16:18:01] [Client thread/INFO]: LWJGL Version: 2.9.1
[16:18:02] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Why did you do that?

Time: 17/12/03 16:18
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (x86) version 6.3
Java Version: 1.8.0_144, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 959858888 bytes (915 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
GL info: ' Vendor: 'Intel' Version: '4.2.0 - Build 10.18.10.3412' Renderer: 'Intel(R) HD Graphics 4600'
[16:18:02] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[16:18:02] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
[16:18:02] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[16:18:02] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[16:18:02] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[16:18:02] [Client thread/INFO] [FML]: Searching C:\Users\kurogitsune\Desktop\Forge\forge-1.7.10-10.13.4.1614-1.7.10-src\eclipse\mods for mods
[16:18:04] [Client thread/INFO] [Kurogitsune_Mod]: Mod Kurogitsune_Mod is missing the required element 'name'. Substituting Kurogitsune_Mod
[16:18:04] [Client thread/WARN] [Kurogitsune_Mod]: Mod Kurogitsune_Mod is missing the required element 'version' and no fallback can be found. Substituting '1.0'.
[16:18:12] [Client thread/INFO] [FML]: Forge Mod Loader has identified 7 mods to load
[16:18:12] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, BlockSampleMod, SampleItemCore, Kurogitsune_Mod, Kurogitsune_sword] at CLIENT
[16:18:12] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, BlockSampleMod, SampleItemCore, Kurogitsune_Mod, Kurogitsune_sword] at SERVER
[16:18:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Kurogitsune_mod, FMLFileResourcePack:Kurogitsune_mod, FMLFileResourcePack:Kurogitsune_Mod, FMLFileResourcePack:SampleItemCore
[16:18:13] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:18:13] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[16:18:13] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[16:18:13] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[16:18:13] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:18:13] [Client thread/INFO] [FML]: Applying holder lookups
[16:18:13] [Client thread/INFO] [FML]: Holder lookups applied
[16:18:13] [Client thread/INFO] [FML]: Injecting itemstacks
[16:18:13] [Client thread/INFO] [FML]: Itemstack injection complete
[16:18:13] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[16:18:13] [Client thread/ERROR] [FML]:
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCH Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCE BlockSampleMod{1.0} [Kurogitsune_mod] (bin)
UCH SampleItemCore{1.0} [Kurogitsune_mod] (bin)
UCH Kurogitsune_Mod{1.0} [Kurogitsune_Mod] (bin)
UCH Kurogitsune_sword{1.0} [SampleItemCore] (bin)
[16:18:13] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[16:18:13] [Client thread/ERROR] [FML]: Caught exception from BlockSampleMod
java.lang.Error: Unresolved compilation problem:
Takumi_block は解決できないか、フィールドではありません

at kurogitsune_mod.Kurogitsune_block.<init>(Kurogitsune_block.java:38) ~[bin/:?]
at kurogitsune_mod.Kurogitsune_block_core.preInit(Kurogitsune_block_core.java:19) ~[bin/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_144]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_144]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_144]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_144]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_144]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_144]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_144]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_144]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[16:18:13] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// Oops.

Time: 17/12/03 16:18
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: java.lang.Error: Unresolved compilation problem:
Takumi_block は解決できないか、フィールドではありません

at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:559)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
Caused by: java.lang.Error: Unresolved compilation problem:
Takumi_block は解決できないか、フィールドではありません

at kurogitsune_mod.Kurogitsune_block.<init>(Kurogitsune_block.java:38)
at kurogitsune_mod.Kurogitsune_block_core.preInit(Kurogitsune_block_core.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
... 12 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (x86) version 6.3
Java Version: 1.8.0_144, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 837544152 bytes (798 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 7 mods loaded, 7 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCH Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCE BlockSampleMod{1.0} [Kurogitsune_mod] (bin)
UCH SampleItemCore{1.0} [Kurogitsune_mod] (bin)
UCH Kurogitsune_Mod{1.0} [Kurogitsune_Mod] (bin)
UCH Kurogitsune_sword{1.0} [SampleItemCore] (bin)
GL info: ' Vendor: 'Intel' Version: '4.2.0 - Build 10.18.10.3412' Renderer: 'Intel(R) HD Graphics 4600'
[16:18:13] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\kurogitsune\Desktop\Forge\forge-1.7.10-10.13.4.1614-1.7.10-src\eclipse\.\crash-reports\crash-2017-12-03_16.18.13-client.txt
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
黒狐サァン
ID:ca259d20
水から上がったとこ
 
記事: 10
登録日時: 2017年11月22日(水) 18:09

  • (PostNo.310963)

Re: Wikiの見方がわかりません

投稿記事by elise_blacklab » 2017年12月03日(日) 22:54

黒狐サァン さんが書きました:GameRegistry.addRecipe(new ItemStack(Blocks.Takumi_block),
"AAA",
"AAA",
"AAA",
'A',Items.gunpowder
);

レシピの対象として指定するのは,BlockやItemのインスタンスです.では独自ブロックの「インスタンス」はどこにあったでしょうか?

あとrecipeを追加するタイミングはBlock内ではなく@Modクラス内かつinit(FMLInitializationEvent)時が望ましいです
メイドつくってたりします.http://6docvc.net/
アバター
elise_blacklab
ID:0f87040f
掘り廃人
 
記事: 2543
登録日時: 2014年6月25日(水) 18:30


Return to 質問:開発・制作関連

x