Can someone help me right some scripts for some stuff? im a total scrub at this, i kind of understand whats going on but i've never actually tried anything like the actual scripts before and I am afraid of screwing something up and spending months debugging llol
the all the scripts i wanted are below though i think that some of these are REALLY hard and am only hoping i am wrong lol
my server uses multiverse so im not sure how that affects this
A script so that when someone hits someone with a weapon there is a small chance that it runs a server command with the person being hit as the subject
i would also like the same script but with the person DOING the hitting as the subject
an example is lets say i want the weapon to hit someone and then cause them to get kicked from server (i actually wanted one for thaum warp but i cant remember the command lol) so in console it would of course be /kick X where X is the player getting hit
i also wanted a similar script but for eating food so it would run a console command on the player eating the food
A script that when you hit people it has a chance to temporarily raise the damage of the weapon for X seconds but if it triggers again then it resets X and there is a maximum number of stacks of increase Y. and hopefully the sword would be enchantable which could possibly increase its base damage
a script that when you hit someone wearing the armor, there is a chance that it fires a projectile-looking thing at the player who hit you and then a short time later the place where the player was originally standing gets struck by lightning.
ill probably have more scripts ill ask about but if anyone could help me with these i would be VERY grateful
i'd really love to use custom stuff 2 to add a couple crafting recipes but i literally know nothing about coding. when i see it its like a completely different language lol great mod though
I was wondering about a few things, hope I'm not being a bother with this:
1) Are you still working on a fix for the following bugs with the 0.11.10 Beta version of CS2 for 1.7.10
-The bug that prevents the creation of custom creative menu tabs.
-The bug that prevents users from creating recipes that have a part that recieves durability damage when used in a recipe (for example, a Chisel and a Block are combined in a crafting grid to make a new block, the Chisel takes damage when you craft the block and will eventually break with use). This used to be a feature in older versions of CS2, but seems to have broken in the current version.
2) Will development of CS2 end with 1.7.10 or is there plans for porting it to 1.8 in the future. I'm curious if I will need to port my project to CS3 to use it with 1.8. Custom Stuff is an excellent resource and has allowed me to make a completely new experience for Minecraft without having to relearn Java after nine years.
Edit: Formatting issues, having problems with the new forums setup.
1) Yeah, I'm going to fix them.
2) Depends on how much work it is to port it to 1.8. If it isn't too much of a change, I will port it to 1.8.
Hey, I did a mod spotlight for Whole Tree Axe recently. Hopefully I covered the mod well and didn't miss anything. Let me know if there is anything that needs correction.
Everything is correct. The axe isn't supposed to be damaged by 2 for each use, this is a bug and is now fixed in the most recent version.
And can you add support of hungry chest. And I think it's cheaty 6 sticks=4uses. 6 irons=20 uses. => 30 sticks=6 iron, realy? And about diamonds......... I think this crafts better. Without diamonds, this mod too simple for diamonds.
Forgive me for my sillyness, but where is the Chest Transporter download for 1.6.2? I got to the mediafire download page with multiple version downloads. I can see some MC1.7.X compatible versions, but I don't see a version that is 1.6.2 compatible. Unless thats what universal refers to?? (If that's the case, wouldn't a mod that is 1.1.X compatible clash with minecraft 1.6.X?)
Forgive me for my sillyness, but where is the Chest Transporter download for 1.6.2? I got to the mediafire download page with multiple version downloads. I can see some MC1.7.X compatible versions, but I don't see a version that is 1.6.2 compatible. Unless thats what universal refers to?? (If that's the case, wouldn't a mod that is 1.1.X compatible clash with minecraft 1.6.X?)
The 1.1.7 version should be the one for 1.6.2.
Rollback Post to RevisionRollBack
I'm on twitter: @CubeX2_. Follow me for upcoming features and other stuff ;).
java.lang.NullPointerException: Ticking memory connection
at cubex2.cs2.block.WrappedBlock.damageDropped(WrappedBlock.java:347)
at cubex2.cs2.block.BlockCS.func_149692_a(BlockCS.java:205)
at net.minecraft.block.Block.func_149643_k(Block.java:1065)
at net.minecraftforge.event.world.BlockEvent$BreakEvent.<init>(BlockEvent.java:90)
at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:414)
at net.minecraft.server.management.ItemInWorldManager.func_73084_b(ItemInWorldManager.java:259)
at net.minecraft.server.management.ItemInWorldManager.func_73074_a(ItemInWorldManager.java:151)
at net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:489)
at net.minecraft.network.play.client.C07PacketPlayerDigging.func_148833_a(SourceFile:53)
at net.minecraft.network.play.client.C07PacketPlayerDigging.func_148833_a(SourceFile:8)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:186)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at cubex2.cs2.block.WrappedBlock.damageDropped(WrappedBlock.java:347)
at cubex2.cs2.block.BlockCS.func_149692_a(BlockCS.java:205)
at net.minecraft.block.Block.func_149643_k(Block.java:1065)
at net.minecraftforge.event.world.BlockEvent$BreakEvent.<init>(BlockEvent.java:90)
at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:414)
at net.minecraft.server.management.ItemInWorldManager.func_73084_b(ItemInWorldManager.java:259)
at net.minecraft.server.management.ItemInWorldManager.func_73074_a(ItemInWorldManager.java:151)
at net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:489)
at net.minecraft.network.play.client.C07PacketPlayerDigging.func_148833_a(SourceFile:53)
at net.minecraft.network.play.client.C07PacketPlayerDigging.func_148833_a(SourceFile:8)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
-- Ticking connection --
Details:
Connection: net.minecraft.network.NetworkManager@7b81db0
Stacktrace:
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:186)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
My second problem is when I add the line onCollidedWithLiving[0] = "living.addPotionEffect('wither',10,1);"; . Here's the code:
ame = "mercury";
material = "water";
creativeTab = "buildingBlocks";
Failed loading Custom Stuff mod OAGPorg.mozilla.javascript.WrappedException: Wrapped cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodException: cubex2.cs2.item.ItemCSBlock.(net.minecraft.block.Block, cubex2.cs2.block.attributes.BlockTrapDoorAttributes) (mod.js#89) 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:89) 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.oagp.OAGP.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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)Caused by: cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodException: cubex2.cs2.item.ItemCSBlock.(net.minecraft.block.Block, cubex2.cs2.block.attributes.BlockTrapDoorAttributes) at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:233) at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:191) at cubex2.cs2.block.EnumBlockType.createDefaultBlock(EnumBlockType.java:75) at cubex2.cs2.block.EnumBlockType.createBlock(EnumBlockType.java:65) at cubex2.cs2.scripting.ScriptableMod.addBlock(ScriptableMod.java:1277) 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) ... 48 moreCaused by: java.lang.NoSuchMethodException: cubex2.cs2.item.ItemCSBlock.(net.minecraft.block.Block, cubex2.cs2.block.attributes.BlockTrapDoorAttributes) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:219) ... 56 more
If not no add trapdoors in game I have another crash with everytime random block/item:
Mod: mod.addCreativeTab("blocksOAGP", "OAGP:bricks:11");
Have you tried changed the order in that you add the block / creative tab?
I'll try to fix that.
I'll fix it.
There is no 0.10.6b version for you?
The getBlockName() thing is a bug that will be fixed in the next update.
1. Trapdoors crashes Minecraft
2. Creative tabs fixed for blocks but items don't shown in they tab
3. (I downloaded CS2 for 1.6.4 from another site yet)
the all the scripts i wanted are below though i think that some of these are REALLY hard and am only hoping i am wrong lol
my server uses multiverse so im not sure how that affects this
A script so that when someone hits someone with a weapon there is a small chance that it runs a server command with the person being hit as the subject
i would also like the same script but with the person DOING the hitting as the subject
an example is lets say i want the weapon to hit someone and then cause them to get kicked from server (i actually wanted one for thaum warp but i cant remember the command lol) so in console it would of course be /kick X where X is the player getting hit
i also wanted a similar script but for eating food so it would run a console command on the player eating the food
A script that when you hit people it has a chance to temporarily raise the damage of the weapon for X seconds but if it triggers again then it resets X and there is a maximum number of stacks of increase Y. and hopefully the sword would be enchantable which could possibly increase its base damage
a script that when you hit someone wearing the armor, there is a chance that it fires a projectile-looking thing at the player who hit you and then a short time later the place where the player was originally standing gets struck by lightning.
ill probably have more scripts ill ask about but if anyone could help me with these i would be VERY grateful
1) Yeah, I'm going to fix them.
2) Depends on how much work it is to port it to 1.8. If it isn't too much of a change, I will port it to 1.8.
This is not possible as of now.
Everything is correct. The axe isn't supposed to be damaged by 2 for each use, this is a bug and is now fixed in the most recent version.
And can you add support of hungry chest. And I think it's cheaty 6 sticks=4uses. 6 irons=20 uses. => 30 sticks=6 iron, realy? And about diamonds......... I think this crafts better. Without diamonds, this mod too simple for diamonds.
It is the mods directory where all your mods are.
The 1.1.7 version should be the one for 1.6.2.
These code crashes Minecraft:
mod.js
copperOre.js
Okay, thanks! It worked and everything.
There is a bug that prevents you from putting the block that is used as the icon of the creative tab into that creative tab.
The first is about this block:
And the error it gives is:
My second problem is when I add the line onCollidedWithLiving[0] = "living.addPotionEffect('wither',10,1);"; . Here's the code:
And the error it gives is:
I have to fix that. But you can just use a different item for the creative tab.
If not no add trapdoors in game I have another crash with everytime random block/item:
Mod: mod.addCreativeTab("blocksOAGP", "OAGP:bricks:11");
Block: creativeTab = "blocksOAGP";
Also world.getBlockName() returns null instead of "minecraft:air". Is it bug?
ModName:blockOrItem
Press ingame F3+H to show ID's in inventory
Have you tried changed the order in that you add the block / creative tab?
I'll try to fix that.
I'll fix it.
There is no 0.10.6b version for you?
The getBlockName() thing is a bug that will be fixed in the next update.
1. Trapdoors crashes Minecraft
2. Creative tabs fixed for blocks but items don't shown in they tab
3. (I downloaded CS2 for 1.6.4 from another site yet)
And latest two bugs on attachment in this post