Whenever you get an error that says you're missing ) after an argument list it's usually because your syntax is wrong, not necessarily because of a close parenthesis. If the above doesn't work, try putting quotes around the numbers.
Thank you! Turns out i needed the quotes and the "mod." thing. but again, thanks!
Rollback Post to RevisionRollBack
There will always be that kind of a moment at least once in everyone's life. That moment when your sitting there listening to someone going down memory lane, but really not listening at all.
in 1.6 versions of CS2, when i need to creat an shaped recipe with empty slots, i just need to reference then with 0. Example:
But now in 1.7 this wont work. Should i replace then with "minecraft:air" or something else are wrong?
I noted too an warning occours in console every minecraft start:
Is this bad?
Thanks in advance!
Your issue here is not, from what I understand, the 0. I'm reading about this right now, I'll edit this post (or put it in my next post if anyone else comments on this thread before I get back) with what I find. I can tell you right off the bat that code from 1.6.x can't be put right into 1.7.x, in most cases anyway, as the way minecraft and forge handles things has changed significantly.
EDIT: I am now working on a CS2 mod in 1.7.10 using the latest versions of CS2 and Forge, and I've found a problem... Aliases don't seem to be working.
The first smelting recipe is not working, but the second one is, and none of the shapeless recipes are working. I could be doing something wrong somewhere, but from what I can tell, aliases are not working in the most recent release of CS2.
Your issue here is not, from what I understand, the 0. I'm reading about this right now, I'll edit this post (or put it in my next post if anyone else comments on this thread before I get back) with what I find. I can tell you right off the bat that code from 1.6.x can't be put right into 1.7.x, in most cases anyway, as the way minecraft and forge handles things has changed significantly.
Well, then how i create an shaped recipe with empty slots on CS2 for 1.7? Can you give me an example?
EDIT: I am now working on a CS2 mod in 1.7.10 using the latest versions of CS2 and Forge, and I've found a problem... Aliases don't seem to be working.
The first smelting recipe is not working, but the second one is, and none of the shapeless recipes are working. I could be doing something wrong somewhere, but from what I can tell, aliases are not working in the most recent release of CS2.
I believe CubeX2 doesnt fix the aliases yet, because he thinks no one would use this anymore, because the data values changes...
EDIT: About the 'recipe class' thing, i found an identical problem with ComputerCraft. Look at the reply of Lexmanos:
About it not being for the end user, this doesn't apply to us very much, since we're the end user, but also acting as the modder.
And for recipes, I put a few in this morning, some for smelting, some shapeless, and some shaped. I don't have any examples yet with spaces, but here's a few examples of working recipes.
Note that the third recipe does work, as long as the whole entry is on one line. This forum wraps it so it doesn't run out of the text box. It would also be a LOT shorter if aliases were working.
The first recipe smelts a raw worldgen block from Biomes O' Plenty into Slain34:cragStuff:1, which is a smooth version, using the same concept as cobblestone to smoothstone. The second recipe uses four 'polished' blocks to make four 'brick' blocks, which uses the same base texture as vanilla mc Stone Bricks. The last two recipes are set up so the block Slain34:cragStuff:4, which is a small brick block, using a similar texture to vanilla mc Bricks, breaks down into 9 bricks, and those bricks build back into the block.
This is also all written for CS2 for 1.7.10, it would look different for the 1.6.4 release.
I hope this helps, I'll work on adding some more stuff that show how to handle different circumstances, such as custom crafting tables only using recipes made for it, and using blank spaces in crafting. I'll also be adding in my custom crop I wrote for 1.6.4, which only grows on a certain kind of block, and I may do a tree to go with it.
And for recipes, I put a few in this morning, some for smelting, some shapeless, and some shaped. I don't have any examples yet with spaces, but here's a few examples of working recipes.
Note that the third recipe does work, as long as the whole entry is on one line. This forum wraps it so it doesn't run out of the text box. It would also be a LOT shorter if aliases were working.
The first recipe smelts a raw worldgen block from Biomes O' Plenty into Slain34:cragStuff:1, which is a smooth version, using the same concept as cobblestone to smoothstone. The second recipe uses four 'polished' blocks to make four 'brick' blocks, which uses the same base texture as vanilla mc Stone Bricks. The last two recipes are set up so the block Slain34:cragStuff:4, which is a small brick block, using a similar texture to vanilla mc Bricks, breaks down into 9 bricks, and those bricks build back into the block.
This is also all written for CS2 for 1.7.10, it would look different for the 1.6.4 release.
I hope this helps, I'll work on adding some more stuff that show how to handle different circumstances, such as custom crafting tables only using recipes made for it, and using blank spaces in crafting. I'll also be adding in my custom crop I wrote for 1.6.4, which only grows on a certain kind of block, and I may do a tree to go with it.
This is partly wrong too:
Several mods works with small or even none changes from 1.6 to 1.7. The major things only are the data values thing and some addins in 1.7 version.
My major issue is with something i believe didn't changed from 1.6 (except DV thing again): the recipes. More precisely
the empty slot thing.
Let me be more clear:
Suppose that i need to create this recipe:
The question is: HOW i reference the Empty slots? THIS is my question. Not more...
Rollback Post to RevisionRollBack
If you speak Portuguese and play Minecraft: Java Edition like me, join my rabbit hole on Discord!
WRONG! This applies to us same as CubeX2, because CS is like an API; not a regular mod!
This is partly wrong too:
Several mods works with small or even none changes from 1.6 to 1.7. The major things only are the data values thing and some addins in 1.7 version.
My major issue is with something i believe didn't changed from 1.6 (except DV thing again): the recipes. More precisely
the empty slot thing.
Let me be more clear:
Suppose that i need to create this recipe:
The question is: HOW i reference the Empty slots? THIS is my question. Not more...
You aren't the only person asking questions, and I'm sure some others would benefit from the information I've included that wasn't directly related to your question. Anyway, it took a whole 3 minutes of testing to find the fix for your problem.
I'm running More Furnaces v1.3.8 on Minecraft 1.7.2 with Forge 10.12.2.1147. Somehow the iron furnace now only burns 8 items per coal and it looks like it isn't any faster then the normal furnace too. Can you look in to that? Because now it's just a very expensive aesthetic.....
This function only works for tile entities created with Custom Stuff. In general it is not possible to change NBT of tile entities as it is only used to load it from the save file and is discarded afterwards.
org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: MetroBlock.js: Attribute creativeTab: failed to convert the value correctly. (mod.js#3)
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(mod.js:3)
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:113)
at cubex2.cs2.ModLoader.loadMod(ModLoader.java:67)
at cubex2.cs2.CustomStuff2.loadMod(CustomStuff2.java:92)
at _customstuff.mara.Mara.preInit(Unknown Source)
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:513)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
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.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:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.IllegalArgumentException: MetroBlock.js: Attribute creativeTab: failed to convert the value correctly.
at cubex2.cs2.attribute.AttributeContainer.loadFromJsFile(AttributeContainer.java:123)
at cubex2.cs2.scripting.ScriptableMod.addBlock(ScriptableMod.java:1275)
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)
... 48 more
Minecraft version - 1.7.10
Minecraft Forge version - 10.13.0.1180
Custom Stuff 2 version - 0.11.10
I have problem with custom creative tab. What I'm doing wrong?
EDIT: I found another problem, when you destroy block with wood material, then the game just crash...
This seems to be a bug. I'll try to fix that for the next version.
Apparently onUpdate for items only works when the item is in the inventory and not equipped... is there any way to get around this to also run it while equipped?
With equipped you mean in one of the armor slots? If so, you can use the onArmorUpdate attribute.
What was your motivation behind removing the Experience functions?
Is there a change in how Minecraft itself calculates experience or was there some other reason? I know that the past behavior for set and remove was inconsistent with "experience rules" (it was possible to remove all points without removing levels), but without the get function it is impossible to check how much actual experience the player has (like, is he barely 16 level or 16, but almost 17).
I have a mod which relies on experience and I use the getExperience function heavily. If it is to be removed, I need to change my approach, but before I make substantial changes to my mod's balance, I would like to make sure that there will be no change in CS in the near future again. So I will be very grateful for some info
Well, basically minecraft only increases experience which means that even if you reduce your levels by using an anvil, the experience will still be the same. If you just want to have the progress of the current level, I can add a function that returns a value between 0 and 1 to indicate how full the experience bar is.
Your issue here is not, from what I understand, the 0. I'm reading about this right now, I'll edit this post (or put it in my next post if anyone else comments on this thread before I get back) with what I find. I can tell you right off the bat that code from 1.6.x can't be put right into 1.7.x, in most cases anyway, as the way minecraft and forge handles things has changed significantly.
EDIT: I am now working on a CS2 mod in 1.7.10 using the latest versions of CS2 and Forge, and I've found a problem... Aliases don't seem to be working.
The first smelting recipe is not working, but the second one is, and none of the shapeless recipes are working. I could be doing something wrong somewhere, but from what I can tell, aliases are not working in the most recent release of CS2.
This used to be 10.6 for Iron, 20 for Gold and 40 for Diamond. How is this possible?
That's because I changed the fuel consumption rates as mentioned in the change log. If you want it to be as it was before, set the consumption rates of all furnaces in the config file to 1.0
Rollback Post to RevisionRollBack
I'm on twitter: @CubeX2_. Follow me for upcoming features and other stuff ;).
That's because I changed the fuel consumption rates as mentioned in the change log. If you want it to be as it was before, set the consumption rates of all furnaces in the config file to 1.0
I see, I understand the need to nerf them a bit but now they are just very expensive cosmetics..... I mean, to get a diamond furnace you need a furnace, and 8 iron, gold and diamond. In change for? A turkoise colored furnace that burns 2 items more per coal? Isn't that being nerfed a bit too enthousiastic?
I see, I understand the need to nerf them a bit but now they are just very expensive cosmetics..... I mean, to get a diamond furnace you need a furnace, and 8 iron, gold and diamond. In change for? A turkoise colored furnace that burns 2 items more per coal? Isn't that being nerfed a bit too enthousiastic?
It also smelts way faster than a regular furnace and has more slots. I may change the default consumption rates of the gold and diamond furnace a bit.
Rollback Post to RevisionRollBack
I'm on twitter: @CubeX2_. Follow me for upcoming features and other stuff ;).
It also smelts way faster than a regular furnace and has more slots. I may change the default consumption rates of the gold and diamond furnace a bit.
Your right about that, but I would like to see a difference between iron/gold/diamond in fuel efficiency as well, next to speed and slots. That would make them an upgrade in every way!
This is somewhat urgent and I cannot find anything on it so far. If you create a tile entity with the type of normal, what is the code to store information in that block?
png texture has standart location in ".minecraft\mods\CS2_1000\assets\1000\textures\models\armor" I've tried to change destination to .png file, to put it in another folders, and to change the line in .js - but it doesn't help whatever... my armor anyway have standart iron armor texture in the game...
P.S. I'm using 0.11.1 CS2, and 1.7.2 MC
P.S.S. I've also tried 0.11.2-0.11.8 CS2 versions, but my game crashing with script error reason always.
Any help would be appreciated. Whole Tree Axe mod - doesn't let me craft the axe. I can place the 5 diamonds and 2 sticks and it shows that it crafted the axe, but when i go to click the axe to add to my inventory, the axe stays in the craft table. The mouse click to add basically relinquishes the selection and I can't use the tool. When exit crafting table, the 5 diamonds and 2 sticks fall on the ground.
Thank you! Turns out i needed the quotes and the "mod." thing. but again, thanks!
There will always be that kind of a moment at least once in everyone's life. That moment when your sitting there listening to someone going down memory lane, but really not listening at all.
in 1.6 versions of CS2, when i need to creat an shaped recipe with empty slots, i just need to reference then with 0. Example:
But now in 1.7 this wont work. Should i replace then with "minecraft:air" or something else are wrong?
I noted too an warning occours in console every minecraft start:
Is this bad?
Thanks in advance!
If you speak Portuguese and play Minecraft: Java Edition like me, join my rabbit hole on Discord!
Your issue here is not, from what I understand, the 0. I'm reading about this right now, I'll edit this post (or put it in my next post if anyone else comments on this thread before I get back) with what I find. I can tell you right off the bat that code from 1.6.x can't be put right into 1.7.x, in most cases anyway, as the way minecraft and forge handles things has changed significantly.
Ok, so this is the sheet for the RecipeSorter.class.
EDIT: I am now working on a CS2 mod in 1.7.10 using the latest versions of CS2 and Forge, and I've found a problem... Aliases don't seem to be working.
The first smelting recipe is not working, but the second one is, and none of the shapeless recipes are working. I could be doing something wrong somewhere, but from what I can tell, aliases are not working in the most recent release of CS2.
Well, then how i create an shaped recipe with empty slots on CS2 for 1.7? Can you give me an example?
I believe CubeX2 doesnt fix the aliases yet, because he thinks no one would use this anymore, because the data values changes...
EDIT: About the 'recipe class' thing, i found an identical problem with ComputerCraft. Look at the reply of Lexmanos:
http://www.minecraftforge.net/forum/index.php?topic=17168.0
This is not for the end user, go complain to your modders to use the RecipeSorter system.
http://www.minecraftforge.net/forum/index.php?topic=20888.0
And the official documentation:
http://www.minecraftforge.net/wiki/Crafting_and_Smelting#1.7_6
If you speak Portuguese and play Minecraft: Java Edition like me, join my rabbit hole on Discord!
About it not being for the end user, this doesn't apply to us very much, since we're the end user, but also acting as the modder.
And for recipes, I put a few in this morning, some for smelting, some shapeless, and some shaped. I don't have any examples yet with spaces, but here's a few examples of working recipes.
Note that the third recipe does work, as long as the whole entry is on one line. This forum wraps it so it doesn't run out of the text box. It would also be a LOT shorter if aliases were working.
The first recipe smelts a raw worldgen block from Biomes O' Plenty into Slain34:cragStuff:1, which is a smooth version, using the same concept as cobblestone to smoothstone. The second recipe uses four 'polished' blocks to make four 'brick' blocks, which uses the same base texture as vanilla mc Stone Bricks. The last two recipes are set up so the block Slain34:cragStuff:4, which is a small brick block, using a similar texture to vanilla mc Bricks, breaks down into 9 bricks, and those bricks build back into the block.
This is also all written for CS2 for 1.7.10, it would look different for the 1.6.4 release.
I hope this helps, I'll work on adding some more stuff that show how to handle different circumstances, such as custom crafting tables only using recipes made for it, and using blank spaces in crafting. I'll also be adding in my custom crop I wrote for 1.6.4, which only grows on a certain kind of block, and I may do a tree to go with it.
WRONG! This applies to us same as CubeX2, because CS is like an API; not a regular mod!
This is partly wrong too:
Several mods works with small or even none changes from 1.6 to 1.7. The major things only are the data values thing and some addins in 1.7 version.
My major issue is with something i believe didn't changed from 1.6 (except DV thing again): the recipes. More precisely
the empty slot thing.
Let me be more clear:
Suppose that i need to create this recipe:
The question is: HOW i reference the Empty slots? THIS is my question. Not more...
If you speak Portuguese and play Minecraft: Java Edition like me, join my rabbit hole on Discord!
You aren't the only person asking questions, and I'm sure some others would benefit from the information I've included that wasn't directly related to your question. Anyway, it took a whole 3 minutes of testing to find the fix for your problem.
This recipe uses 8 pieces of cragPiece:2 in an arrangement that looks like the recipe for a chest or furnace.
THANK YOU SO MUCH! I will test this, if worked i will edit this post OR create a new if someone replies! Thanks again!
If you speak Portuguese and play Minecraft: Java Edition like me, join my rabbit hole on Discord!
Iron furnace: Little more then 8 items on 1 coal
Gold / Diamond / Obsidian furnace: 10 items on 1 coal
This used to be 10.6 for Iron, 20 for Gold and 40 for Diamond. How is this possible?
This function only works for tile entities created with Custom Stuff. In general it is not possible to change NBT of tile entities as it is only used to load it from the save file and is discarded afterwards.
This seems to be a bug. I'll try to fix that for the next version.
With equipped you mean in one of the armor slots? If so, you can use the onArmorUpdate attribute.
No, that is not possible.
Well, basically minecraft only increases experience which means that even if you reduce your levels by using an anvil, the experience will still be the same. If you just want to have the progress of the current level, I can add a function that returns a value between 0 and 1 to indicate how full the experience bar is.
I'll look into that.
That's because I changed the fuel consumption rates as mentioned in the change log. If you want it to be as it was before, set the consumption rates of all furnaces in the config file to 1.0
I see, I understand the need to nerf them a bit but now they are just very expensive cosmetics..... I mean, to get a diamond furnace you need a furnace, and 8 iron, gold and diamond. In change for? A turkoise colored furnace that burns 2 items more per coal? Isn't that being nerfed a bit too enthousiastic?
It also smelts way faster than a regular furnace and has more slots. I may change the default consumption rates of the gold and diamond furnace a bit.
Your right about that, but I would like to see a difference between iron/gold/diamond in fuel efficiency as well, next to speed and slots. That would make them an upgrade in every way!
Could it ever be implemented, or is it just not possible at all?
If there is an API for it, it can be implemented.
EDIT: Found it here...
http://mc.afawo.de/cs2docu/javadoc/index.html?cubex2/cs2core/scripting/ScriptableMod.html
damage = "0";
armorTexture = "roman_praetor_helm_1.png";
textureFile[0] = "z_roman_plate.png";
armorType = "plate";
maxDamage = 148;
damageReduction = 2;
enchantability = 20;
repairable = true;
addToCreative[0] = true;
creativeTab = "combat";
P.S. I'm using 0.11.1 CS2, and 1.7.2 MC
P.S.S. I've also tried 0.11.2-0.11.8 CS2 versions, but my game crashing with script error reason always.
Any help would be appreciated. Whole Tree Axe mod - doesn't let me craft the axe. I can place the 5 diamonds and 2 sticks and it shows that it crafted the axe, but when i go to click the axe to add to my inventory, the axe stays in the craft table. The mouse click to add basically relinquishes the selection and I can't use the tool. When exit crafting table, the 5 diamonds and 2 sticks fall on the ground.
Your thoughts?