Everything posted by shadowfacts
-
Spawn many entitys on break block
Replace 32 with (new Random()).nextInt(maxEntities)
-
[1.7.10] Mod Addon
https://github.com/diesieben07/SevenCommons/blob/master/build.gradle#L49-L52
-
[1.7.10] Mod Addon
The version of Minecraft that you play is obfuscated. This means that instead of things like methods and fields having normal names, they have obfuscated names like: field_149806_a. MPC then deobfuscates the code turning the super cryptic code into nice, human-readable code using mappings. Forge then applies those mappings in the dev environment so you don't have to look at ugly code. Then when you use gradlew build to build your mod ForgeGradle reobfuscates any deobfuscated methods that you used in your mod and packages it up into a JAR file. So if you have a mod that uses an obfuscated field, like field_149806_a, and you try to access it in a deobfuscated environment, it won't exist. You need a deobfuscated version of a mod to run in a deobfuscated environment.
-
[1.7.10] Mod Addon
On the page where you download the mod instead of downloading the normal version you need to download the one labeled either "dev" or "deobf". e.g. for any of Chicken Bones' mods you would go here and you would click on the "dev" link to download a version of the mod that would work in a development environment.
-
Spawn many entitys on break block
Basic Java, if you don't know it then you shouldn't be here. for (int i = 0; i < 32; i++) { // Spawn entity }
-
gradlew setupDecompWorkspace --refresh-dependencies doesnt work
Try with a brand new completely empty workspace.
-
gradlew setupDecompWorkspace --refresh-dependencies doesnt work
Try remove the --refresh-dependencies option.
-
[1.7.10] Mod Addon
You need to use the "dev" or "deobf" version of the mod for it to work in a deobfuscated environment like the development env.
-
gradlew setupDecompWorkspace --refresh-dependencies doesnt work
Try running setupDecompWorkspace again, there was a problem with the Forge Maven that just recently got fixed.
-
Help with Forge Modded Server
One (or more) of the required dependencies for one (or more) of the mods you have installed is missing. Go to the topic/website for each mod and check if it has any dependencies and then check if they are installed.
-
[1.7.10]Light value?
Draco, they should totally add the <nitpick> tag to HTML5.
-
Need help understanding Metadata items using @SideOnly
If you're using @SideOnly for any methods fields dealing with IIcon or anything related to textures/rendering then @SideOnly is good. Any of this sort of method will never get called on the server, so using @SideOnly will not cause any problems.
-
[Solved]Having coders block cant figure out what im doing wrong?[Solved]
On a code formatting note: Your variables (specifically, Mode) should begin with lowercase letters. This is a fairly common coding standard in most programming languages.
-
[Misc]Mod Options
Yeah, it's really nice to be able to quickly change a minor config setting without having to completely restart the game.
-
[Misc]Mod Options
iChun's mods use it.
-
[1.8] "flying is not allowed on this server". Is it my mod's fault?
Check the server.properties file. "allow-flight" needs to be set to true.
-
[1.7.10]Block emiting a redstone signal
CC computers can emit redstone signals by themselves without any additional mods.
-
[1.7.10] How to add new slot in player's inventory
If you're asking diesiebem07 to write the code for you that already works, then I can guarantee the answer is going to be no.
-
[1.7.10] adding a .jar as a reference library eclipse
You do not need MultiWorld to create your own dimension. Forge has everything you need to do this.
-
Tile Entity Losing Its Data On Chunk Reload
1. Post the whole log 2. Post your code for your TileEntity
-
[1.7.10] Commenting on the JSON (for Configuration)
If you want nested categories you can use "." to specify them when using the Forge Configuration class. Categories: String category1 = "topCategory.subCategory1"; String category2 "topCategory.subCategory2"; What the Forge config file might look like: { "topCategory": { "subCategory1": { # your options }, "subCategory2": { " more options } } }
-
[1.7.10] Question on GUI Buttons
Don't use for loops to count time.
-
Assistance with logging wrapper class
My simple FMLLog wrapper: https://github.com/shadowfacts/ShadowCore/blob/master/src/main/java/net/shadowfacts/shadowcore/Log.java
-
Testing Held Item
Hold on, while there is no item in the player's hand you want them to be able to fly? And when they are holding your item they can't fly? That makes no sense whatsoever.
-
[1.7.10]Fire Rate on guns
world.spawnEntityInWorld(...) You will also need to make sure that the entity is only spawned on the server.
IPS spam blocked by CleanTalk.