Everything posted by Choonster
-
[1.8.9] Data packet not being received by server?
The Side passed to SimpleNetworkWrapper#registerMessage is the side that receives and handles the packet, not the side that sends it. A client-to-server message should be registered with Side.SERVER . S35PacketUpdateTileEntity is usually returned from TileEntity#getDescriptionPacket to sync data from the server to the clients in the area surrounding the TileEntity . The client-side handler for this packet calls TileEntity#onDataPacket . This can't be used to send values from the client to the server.
-
custom block that prevents spawning of mobs in a certain perimeter
An instance of World is one dimension, yes. There's no point in creating an ArrayList if you're immediately assigning another value to the variable. Declare the mbBlockList variable in the same statement as you're calling mbdata.getList() in. Your get method does receive a World argument, but it uses World#loadItemData to load the data from that World . At least in 1.8.9, this uses the global MapStorage ( World#mapStorage ) instead of that dimension's MapStorage ( World#perWorldStorage ).
-
custom block that prevents spawning of mobs in a certain perimeter
Have you looked at the source of the World#loadItemData method? In 1.8.9, it uses World#mapStorage (global) rather than World#perWorldStorage (per-dimension).
-
[1.8.9] Can't add JEI dependency to workspace
Ah, I'm glad you fixed it. Gradle files aren't Java code, so you should have kept the .gradle extension on the Gist file. I probably should have made this clearer in my previous post, I copy/pasted it from a more general response I use to tell people how to post code properly.
-
How to change the way light levels are determined?
I doubt this will be easy. You'll probably need to read up on how OpenGL and Minecraft's lighting system work and then modify/re-implement the lighting system using ASM. Doing this likely break compatibility with a lot of mods.
-
[1.8.9] Can't add JEI dependency to workspace
Upload your build.gradle file to Gist or Pastebin with syntax highlighting and link it here. To get syntax highlighting on Gist, give each file the appropriate extension (.gradle for Gradle scripts). To get syntax highlighting on Pastebin, select the language from the dropdown at the bottom of the page. Edit: Reworded my copy/pasted text on syntax highlighting to be more appropriate for this situation.
-
Logging Events in 1.7.10
I imagine that this is because the brewing isn't directly triggered by a player like regular crafting is. The only way to approximate which player brewed the potion is to record who took the resulting potions out of the brewing stand. Unless you can use an existing hook or event, you'll have to either make a PR to Forge (which is very unlikely to get merged for 1.7.10, since it's now outdated) or resort to ASM. ASM requires knowledge of the Java bytecode format and there aren't many tutorials on it.
-
[1.8.9] Can't add JEI dependency to workspace
Did you add the Maven repository shown in the README?
-
Logging Events in 1.7.10
Look at the subclasses of cpw.mods.fml.common.eventhandler.Event in your IDE to see which events are provided by Forge. PotionBrewEvent.Pre / Post are fired when a potion is brewed. None of the other events you described are provided by Forge and I'm not aware of any mods that do provide them. In 1.8.9, EntityTravelToDimensionEvent is fired when an entity changes dimensions.
-
AFK Fish Farms
I'm not aware of Forge changing anything that would affect this, but your post is a bit vague. Describe your setup in more detail. Does it work in vanilla? Does it work in Forge with no mods? Does it work in Forge with mods? If not, how doesn't it work?
-
Crash when booting server
What's This Pack is client-only. It looks like the IDs for Witchery, Ars Magica 2 and possibly Blood Arsenal are conflicting. You should be able to change these in the config files for each mod. It looks like Sanguimancy may be trying to use an invalid potion ID.
-
[1.8.9] FIXED Impossible mission: Texture on items
Can you upload the full FML log (from logs/fml-client-latest.log) to Gist and link it here?
-
custom block that prevents spawning of mobs in a certain perimeter
Try denying the spawn unconditionally. Does this prevent all mobs from spawning? I don't feel like setting up Java 7 to run 1.6.4, but I tried this in 1.8.9 and it did appear to prevent all mobs from spawning.
-
[1.7.10] How to get an Item given its numeric ID and metadata
An Item by itself is just one item type (i.e. one item ID). An ItemStack holds an Item , metadata value, stack size and NBT tag. Keep in mind that block and item IDs are automatically assigned and will be different between maps, so they're not a very reliable identifier for persistent storage.
-
Custom Item loses its texture when created on the crafting table
In future, please use one of the paste/code hosting sites I linked in my previous post instead of putting your code directly in your post. It's much easier to read code with proper formatting and syntax highlighting. This crash happened because Minecraft tried to render an ItemStack with a nul Item . I suspect that this is because your recipe uses the Main.berry field (which is never initialised) instead of ModItems.berry . I would also recommend moving your recipes to a dedicated class.
-
Custom Item loses its texture when created on the crafting table
Use Gist or Pastebin to post the FML log and your code with syntax highlighting. To get syntax highlighting on Gist, give each file the appropriate extension (.java for Java code). To get syntax highlighting on Pastebin, select the language from the dropdown at the bottom of the page. If you already have a repository set up for your mod on a site like GitHub/BitBucket, post that instead of using Gist/Pastebin for the code. I still need your FML log either way, though.
-
[1.8] The received string length is longer than maximum allowed (27 > 20)
The channel name of your SimpleNetworkWrapper (usually your mod ID) can't be more than 20 characters long.
-
strange error
Minetweaker or one of its scripts is throwing an error while trying to undo adding a Thaumcraft research page.
-
strange error
Upload the full FML log (logs/fml-client-latest.log) to Gist and link it here.
-
Crash when booting server
There's something weird going on with your logs. The FML log just cuts out and seems to start several seconds after the MultiCraft log ends. It's not very clear what the error is, but it looks like you have some conflicting potion IDs and possibly some invalid potion IDs. The maximum potion ID is 31 for vanilla, but many mods (including Blood Magic) expand this to 255.
-
Fatally missing blocks and items (2016)
Thank you for the reply but I'm 17 Is that relevant? Do you understand what diesieben07 is telling you to do?
-
Crash when booting server
There's no error there, the log just ends with Inpure Core downloading a library.
-
Crash when booting server
Resource Loader is client-only.
-
Intellij Idea 15 bug with Minecraft Forge?
If you have Gradle installed locally, use its installation directory as the Gradle Home. You can also just tell IDEA to use the default Gradle wrapper instead of installing Gradle locally.
-
Intellij Idea 15 bug with Minecraft Forge?
Click the + button (Attach Gradle Project) in IDEA's Gradle window and browse to the other build.gradle file.
IPS spam blocked by CleanTalk.