I am sure several people would love to see Industrial Craft 2 included in that list. I think being able to add macerator recipes was the reason mod support was first asked for. Also, I don't know if redpower has an API, but I would love to be able to add recipes to its alloy furnace.
Would ThaumCraft support mean we can specify the aspects on our items? Also, I would love to be able to add recipes to the crucible and infusion altar (the one that requires aspects for recipes).
You can specify aspects for your items and any other item. You will be able to create recipes for the crucible, the arcane crafting table and the infusion altar. You will also be able to interact with aura nodes through the world object, i.e. increasing or decreasing them.
That sounds great, maybe now I can put the taint back in that they took out of Thaumcraft
As far as suggestions, how about adding in support for Computercraft's peripheral API?
I'll see if I can do something with ComputerCraft.
Rollback Post to RevisionRollBack
I'm on twitter: @CubeX2_. Follow me for upcoming features and other stuff ;).
Equivalent Exchange 3 will eventually contain an API, though it's apparently not done yet. While I haven't tried EE3 yet (soon), I'm pretty psyched about it from what I've heard. Would you mind adding it to the "to-do" list, CubeX2?
Anyone know what's going on? It has to do with the pick feature in potatoGrass.js, because by commenting it out, it works fine. ||||| Also, what can I do to an item to get an existing block texture?
Error:
org.mozilla.javascript.WrappedException: Wrapped java.lang.Exception: The property wasn't found. (potatoGrass.js#17)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
at script(potatoGrass.js:17)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:123)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
at cubex2.cs2core.attribute.AttributeCollection.loadFromFile(AttributeCollection.java:69)
at cubex2.cs2core.scripting.ScriptableMod.addBlock(ScriptableMod.java:1074)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
at script(mod.js:54)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
at cubex2.cs2.DefaultMod.init(DefaultMod.java:101)
at cubex2.cs2.ModLoader.initMods(ModLoader.java:45)
at cubex2.cs2core.CustomStuff2Core.postInit(CustomStuff2Core.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:701)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:448)
at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:733)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: The property wasn't found.
at cubex2.cs2core.scripting.ScriptableConfig.getItemId(ScriptableConfig.java:284)
at cubex2.cs2core.scripting.ScriptableConfig.getItemId(ScriptableConfig.java:265)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 53 more
That is a very interesting construction your leaf-saplings have made. =D
The script checks for id 17, not if the block is wood or not. I don't think it is possible to check if the block is wood instead of checking individual ids. If you want to use a different log than vanilla, you need to substitute a different id on this line:
if(world.getBlockId(position) == 17)
If you want to make the script more versatile, replace the 17 with a variable and set the value for the variable before loading the script. Otherwise you can just replace 17 with config.getBlockId().
Anyone know what's going on? It has to do with the pick feature in potatoGrass.js, because by commenting it out, it works fine. ||||| Also, what can I do to an item to get an existing block texture?
Error:
org.mozilla.javascript.WrappedException: Wrapped java.lang.Exception: The property wasn't found. (potatoGrass.js#17)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
at script(potatoGrass.js:17)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:123)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
at cubex2.cs2core.attribute.AttributeCollection.loadFromFile(AttributeCollection.java:69)
at cubex2.cs2core.scripting.ScriptableMod.addBlock(ScriptableMod.java:1074)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
at script(mod.js:54)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
at cubex2.cs2.DefaultMod.init(DefaultMod.java:101)
at cubex2.cs2.ModLoader.initMods(ModLoader.java:45)
at cubex2.cs2core.CustomStuff2Core.postInit(CustomStuff2Core.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:701)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:448)
at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:733)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: The property wasn't found.
at cubex2.cs2core.scripting.ScriptableConfig.getItemId(ScriptableConfig.java:284)
at cubex2.cs2core.scripting.ScriptableConfig.getItemId(ScriptableConfig.java:265)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 53 more
From the look of it, it looks like the problem is being caused because potatoGrassItem is added to the config after you added the block. Moving the addItemIdProperty() for potatoGrassItem to above where you added the item, the crash should be fixed.
That is a very interesting construction your leaf-saplings have made. =D
The script checks for id 17, not if the block is wood or not. I don't think it is possible to check if the block is wood instead of checking individual ids. If you want to use a different log than vanilla, you need to substitute a different id on this line:
if(world.getBlockId(position) == 17)
If you want to make the script more versatile, replace the 17 with a variable and set the value for the variable before loading the script. Otherwise you can just replace 17 with config.getBlockId().
From the look of it, it looks like the problem is being caused because potatoGrassItem is added to the config after you added the block. Moving the addItemIdProperty() for potatoGrassItem to above where you added the item, the crash should be fixed.
Thanks! They both work like a charm! (I used the variable suggestion for the first problem)
I thought it says 1.5 + but because 1.5.2 is diferent 2 the others then I crashed. I think this is why I crashed at least
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to C:\Users\Alex\AppData\Roaming\.minecraft\crash-reports\crash-2013-06-02_13.35.48-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT 140518bc --------
Full report at:
C:\Users\Alex\AppData\Roaming\.minecraft\crash-reports\crash-2013-06-02_13.35.48-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 02/06/13 13:35
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_10, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 868518672 bytes (828 MB) / 973012992 bytes (927 MB) up to 973012992 bytes (927 MB)
JVM Flags: 2 total; -Xms1000m -Xmx1000m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 Optifine OptiFine_1.5.2_HD_U_D2 21 mods loaded, 21 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
CodeChickenCore{0.8.6.5} [CodeChicken Core] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
NotEnoughItems{1.5.2.12} [Not Enough Items] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
MultiPageChest{1.2.3} [Multi Page Chest] (multiPageChest_1.2.3_Universal.zip) Unloaded->Constructed->Pre-initialized->Initialized
EE3{pre1h (build 16)} [Equivalent Exchange 3] (equivalent exchange mod_1.5.2.jar) Unloaded->Constructed->Pre-initialized->Initialized
InfernalMobs{1.3.0} [Infernal Mobs] (InfernalMobs_1.5.2.zip) Unloaded->Constructed->Pre-initialized->Initialized
mod_BACR{v4} [Better Animations Collection Revived] (BACR v4 MC1,5,2.zip) Unloaded->Constructed->Pre-initialized->Initialized
piggypick{1.0} [More Pickaxe Mod] (Multitool1.1) Unloaded->Constructed->Pre-initialized->Initialized
mod_TooManyItems{1.5.2 2013-04-25} [mod_TooManyItems] (TooManyItems2013_04_25_1.5.2.zip) Unloaded->Constructed->Pre-initialized->Initialized
DamageIndicatorsMod{2.7.0.1} [Damage Indicators] (Damage-Indicators-Mod-1.5.2.zip) Unloaded->Constructed->Pre-initialized->Initialized
FlansMod{2.3.1} [Flan's Mod] (Flans Mod 2.3.1 for Minecraft 1.5.2 Universal.zip) Unloaded->Constructed->Pre-initialized->Errored
MoreExplosives{Release 3.5 for Minecraft 1.5.1} [More Explosives Mod] (MoreExplosivesModRelease3.6forMinecraft1.5.2.zip) Unloaded->Constructed->Pre-initialized->Initialized
JerrysMod{1.3} [Jerry's Mod] (JerryMod[pre-release]1.5.2.zip) Unloaded->Constructed->Pre-initialized->Initialized
BuildCraft|Core{3.5.1} [BuildCraft] (buildcraft-A-3.5.1.jar) Unloaded->Constructed->Pre-initialized->Initialized
BuildCraft|Builders{3.5.1} [BC Builders] (buildcraft-A-3.5.1.jar) Unloaded->Constructed->Pre-initialized->Initialized
BuildCraft|Energy{3.5.1} [BC Energy] (buildcraft-A-3.5.1.jar) Unloaded->Constructed->Pre-initialized->Initialized
BuildCraft|Factory{3.5.1} [BC Factory] (buildcraft-A-3.5.1.jar) Unloaded->Constructed->Pre-initialized->Initialized
BuildCraft|Transport{3.5.1} [BC Transport] (buildcraft-A-3.5.1.jar) Unloaded->Constructed->Pre-initialized->Initialized
BuildCraft|Silicon{3.5.1} [BC Silicon] (buildcraft-A-3.5.1.jar) Unloaded->Constructed->Pre-initialized->Initialized
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4200 GL version 3.3.10750 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
java.lang.IllegalArgumentException: Slot 4095 is already occupied by cubex2.mods.multipagechest.BlockMultiPageChest@244e2417 when adding co.uk.flansmods.common.BlockPlaneWorkbench@62374a0
at net.minecraft.block.Block.<init>(Block.java:340)
at co.uk.flansmods.common.BlockPlaneWorkbench.<init>(BlockPlaneWorkbench.java:21)
at co.uk.flansmods.common.FlansMod.load(FlansMod.java:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:447)
at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:732)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 8445f7b9 ----------
sorry did u say naquadah, looks like im not the only one who watches stargate sg-1
OH, oops. don't worry I think I got it
The crash is because both Multipage chest and flans mods plane workebench are both using id 4095. Just change the id of one of those to an unused block id that is less than 4095. The conflict is indicated by this line in case you have more problems:
java.lang.IllegalArgumentException: Slot 4095 is already occupied by cubex2.mods.multipagechest.BlockMultiPageChest@244e2417 when adding co.uk.flansmods.common.BlockPlaneWorkbench@62374a0
The above tells me that true is an invalid value for addToCreative, yet everything I see says to use exactly that. Any ideas?
One mistake is that displayName and textureFile were not capitalized properly. Although it didn't show this crash, it will show up after you fix the previous crash, so might as well fix it now.
If you are using 0.10.2+, then you have to use [0] on certain attributes. Either look at the examples on the wiki or use the documentation to figure out which attributes need the metadata tag (that is [0] for the first metadata). Here is the corrected version of what you posted:
I have the above with the file format CustomStuff/mods/MyModName/mod.js and MyModName/items/The4FileNames. I also have my textures inside of textures/items.
I am getting a null pointer exception. Am I forgetting to program something?
I have the above with the file format CustomStuff/mods/MyModName/mod.js and MyModName/items/The4FileNames. I also have my textures inside of textures/items.
I am getting a null pointer exception. Am I forgetting to program something?
Does "CustomNpcs Misc" already exist from a different mod? If it does, try testing using a vanilla tab. I have not tried adding to other mods custom tabs so not sure if it currently works. If that isn't it, try lowering the id value to below 10,000?
If nothing else, comment out various lines using the double slash (//) to see if any particular item or line is the cause. =\
What I am trying to do is remove recipes for other mod content, and replace them with my own. This was something I did with CS2 in 1.4.7, and it worked perfectly, but with 1.5.2, it doesn't appear to be working. I've gone through the linked documentation and made all the changes I can see that need making, but the recipes still don't appear in-game.
I've had no problem adding the dust-leadglassmix item, or using CS2 to remove recipes, it's just recipes that I'm trying to add aren't working whatsoever.
What I am trying to do is remove recipes for other mod content, and replace them with my own. This was something I did with CS2 in 1.4.7, and it worked perfectly, but with 1.5.2, it doesn't appear to be working. I've gone through the linked documentation and made all the changes I can see that need making, but the recipes still don't appear in-game.
I've had no problem adding the dust-leadglassmix item, or using CS2 to remove recipes, it's just recipes that I'm trying to add aren't working whatsoever.
Did you read the forge log?
It should tell you what error happened.
I accidentally coded the leaves to grow instead of the saplings, take a look! Lol.
How could I add my log onto this? I did isWood[0] in the logLondonPlane but it didn't do anything for the new leaves.
Okay, I will fix them.
IC2 will be included as soon as it is updated.
You can specify aspects for your items and any other item. You will be able to create recipes for the crucible, the arcane crafting table and the infusion altar. You will also be able to interact with aura nodes through the world object, i.e. increasing or decreasing them.
I'll see if I can do something with ComputerCraft.
|||||Also, what can I do to an item to get an existing block texture?Error:
potatoGrassItem.js
potatoGrass.js
mod.js
That is a very interesting construction your leaf-saplings have made. =D
The script checks for id 17, not if the block is wood or not. I don't think it is possible to check if the block is wood instead of checking individual ids. If you want to use a different log than vanilla, you need to substitute a different id on this line:
If you want to make the script more versatile, replace the 17 with a variable and set the value for the variable before loading the script. Otherwise you can just replace 17 with config.getBlockId().
From the look of it, it looks like the problem is being caused because potatoGrassItem is added to the config after you added the block. Moving the addItemIdProperty() for potatoGrassItem to above where you added the item, the crash should be fixed.
Thanks! They both work like a charm! (I used the variable suggestion for the first problem)
The crash is because both Multipage chest and flans mods plane workebench are both using id 4095. Just change the id of one of those to an unused block id that is less than 4095. The conflict is indicated by this line in case you have more problems:
name = "Ruby Coin";
displayname = "Ruby Coin";
id = 26980;
addToCreative = true;
creativeTab = "CustomNpcs Misc";
texturefile = "rubycoin.png";
maxStack = 64;
The above tells me that true is an invalid value for addToCreative, yet everything I see says to use exactly that. Any ideas?
One mistake is that displayName and textureFile were not capitalized properly. Although it didn't show this crash, it will show up after you fix the previous crash, so might as well fix it now.
If you are using 0.10.2+, then you have to use [0] on certain attributes. Either look at the examples on the wiki or use the documentation to figure out which attributes need the metadata tag (that is [0] for the first metadata). Here is the corrected version of what you posted:
Good luck. Feel free to ask if you have more problems or just curious about something.
mod.js
ruby.js
sapphire.js
quartz.js
obsidian.js
I have the above with the file format CustomStuff/mods/MyModName/mod.js and MyModName/items/The4FileNames. I also have my textures inside of textures/items.
I am getting a null pointer exception. Am I forgetting to program something?
Does "CustomNpcs Misc" already exist from a different mod? If it does, try testing using a vanilla tab. I have not tried adding to other mods custom tabs so not sure if it currently works. If that isn't it, try lowering the id value to below 10,000?
If nothing else, comment out various lines using the double slash (//) to see if any particular item or line is the cause. =\
Also, I know Cube was looking for API's. Ars Magica has a phenominal one.
By place-able items, I assume you don't mean just blocks. The plants example page has an example of an item that places a block.
What I am trying to do is remove recipes for other mod content, and replace them with my own. This was something I did with CS2 in 1.4.7, and it worked perfectly, but with 1.5.2, it doesn't appear to be working. I've gone through the linked documentation and made all the changes I can see that need making, but the recipes still don't appear in-game.
Here is my mod.js:
I've had no problem adding the dust-leadglassmix item, or using CS2 to remove recipes, it's just recipes that I'm trying to add aren't working whatsoever.
Did you read the forge log?
It should tell you what error happened.
name = "regenBlock";
displayName[0] = "Рандом реген";
material = "iron";
stepSound ="metal";
hardness[0] = 50.0;
addToCreative[0] = false;
textureFileFront[0] = "no.png";
textureFileBack[0] = "no.png";
textureFileSides[0] = "no.png";
hasCollision[0] = false;
transparent = true;
semiTransparent = true;
tickrate = 300;
onUpdate[0] = "world.setBlockIdAndMetadata(position, 2000, 0);";
opacity = 0;
//
displayName[1] = "Рандом реген 2";
hardness[1] = 50.0;
addToCreative[1] = false;
textureFileFront[1] = "no.png";
textureFileBack[1] = "no.png";
textureFileSides[1] = "no.png";
hasCollision[1] = false;
onUpdate[1] = "world.setBlockIdAndMetadata(position, 2000, 1);";