Everything posted by GotoLink
-
Issue with Block.blockList?
You can change vanilla textures inside your mod package. Mods are loaded like resource packs. Just add assets/minecraft/...
-
Is there a way to detect when a player right clicks on an item?
EntityItemPickupEvent for the player colliding. I don't think EntityItem can be interacted with. (it doesn't override Entity#canBeCollidedWith) You could use PlayerInteractEvent to simulate this.
-
Adding an effect to an entity based on an enchantment
Your "armor" variable is not an Item.
-
Adding an effect to an entity based on an enchantment
Highlighted the wrong for you.
-
Forging Minecraft 2.0
Is is the 1st of April all over again ?
-
[1.7.2] Canceling crafting
I think it possible to cancel the mouse click when the crafting container is opened for the player. The trickiest part would probably be to compute the mouse screen position and check against the result slot. You can't prevent the recipe from being displayed without removing it entirely, though.
-
Minecraft Forge Gradle with Multipart
Maybe you could try to add the /libs directory into your project folder, then drop the stuff inside.
-
Minecraft Forge Gradle with Multipart
I just looked into ForgeMultipart doc, it explains how to. https://github.com/Chicken-Bones/ForgeMultipart/blob/master/README.md
-
[1.7.2] Rendering New Player
Render the player in the Pre event ?
-
JavaFX with ForgeGradle
You can add dependencies in the build.gradle file, using remote maven or local jar.
-
[1.7.2] Authors not showing up
Its "authorList" now. (see cpw.mods.fml.common.ModMetadata)
-
Enchantment Tutorial?
Well read the Enchantment class.
-
Structure Spawning in 1.7.2
Three things: -You are looking for stained_hardened_clay, i think. -When generating custom biome specific things, do it in the biome decorating method. -You don't need to create a new world generator in each iteration of a for loop.
-
[1.7.2] FMLControlledNamespacedRegistry help
The constructor is public but...isn't the idmap already "full" with blocks and items ? I would use RegistryNamespaced rather than stepping on FML toes. edit: It doesn't look like you'd want to save it per world with internal numerical ids, so...using FML registry stuff is unnecessary.
-
Replacing entities crash
I would say the "original code" stuff is a lot better. if (oldNeola.getCanSpawnHere()) Did you override that method in EntityNeola ? What is the parent class of EntityNeola and NeolaTameable ?
-
Ore doesn't spawn in the end.
You can replace end stone with WorldGenMinable, look at the constructors.
-
[1.6.4] Duplicate stat id crash
For some stupid reason, Minecraft auto register unnamed achievements for triggered stat, before you can register it. In 1.6.4, get the achievement from the StatList using the id, if it is null, you can register it again, if not, pray it is the achievement you registered from a previous save and use the returned instance.
-
Sound Files
I am not sure the underscore is going to work...but the file path should be: assets/modmud/sound/mud_chucker/hurt.ogg iirc, i used @ForgeSubscribe public void onSoundLoad(SoundLoadEvent event) { event.manager.soundPoolSound.addSound("stuff"); } Back in 1.6 days.
-
[DEPRECATED][1.6.4] Unable to install 1.6.4 as part of mod recode to 1.7.2
You do not need anything more than the forge download to begin in 1.7.2. There is even a dummy mod example to make sure you don't screw any important stuff while setting things down. You should start with that, then getting the same environment in 1.6.4 will be a piece of cake. (using build 964, of course)
-
[1.7.2] {SOLVED} Checking if a key is down every tick
ClientTickEvent. It works, contrary to what you think.
-
[1.6.4>>1.7.2]Major problems updating mod from 1.6.4 to 1.7.2
Sometimes UTF-8 derps for lang files. I recommend to leave blank lines at beginning and end of the file. Note that KeyInputEvent only triggers when the key is first pressed. (no continuous press, or unpress) Also, key presses are client-side only. You need packets to send the stuff to the server side. For helmet overlay, please use the item hook. Item#renderHelmetOverlay(ItemStack, EntityPlayer, ...)
-
Is it possible to have multiple versions of Forge in different profiles?
Let's put it simply: -You installed forge for both versions using the jar installer -You have a profile, that you edit to use one forge version -You have another profile (or you make one), that you edit to use the other forge version Optionally, you edit each profile to point to a different game directory (tick GameDirectory box), to avoid any conflict. That is all.
-
[1.7.2] Ore Generation error
Just look at the basic tutorials on the wiki.
-
[1.7.2] Ore Generation error
Use the event given by dark2222 to initialize and register blocks, items, and your world generation.
-
[SOLVED] Can't edit files
Making a new world type doesn't require editing files. new WorldType("myCustomWorld")
IPS spam blocked by CleanTalk.