Everything posted by GotoLink
-
Is it possible to have multiple versions of Forge in different profiles?
Yes.
-
Retrogen
Well you can remove a chunk data and let the game regenerate it. That would also regenerate other ores and delete any player-built stuff inside, though. But considering you could also explore your world further to get the same stuff, or put back the data after trying, i don't see any issue with that.
-
[1.7.2] Disable movement
I would cancel the key event for the movement keys when appropriate.
-
[1.7.2] Food Eaten Event
PlayerUseItemEvent would probably help to achieve this.
-
[Solved][1.7.2] Material function ?
Most of those properties can be defined at block initialization. Extend BlockFalling to get a basic falling block, then use the setters to add other properties. Block#setStepSound(SoundType) Block#setHardness(float)
-
[1.7.2] Problems with subtypes [SOLVED, BUT STILL UNSOLVED]
Read the tutorials. public static final Block blocksOfAsphalt_Yellow_0 = new BlocksOfAsphalt_Yellow_0( You never should do that, no matter what version of Minecraft you code for.
-
Change unique name for item after release
FMLMissingMappingsEvent should help you remap the item/block.
-
Version Number confusion
Extending EntityCow isn't bad...but using @Mod this way is kinda strange. You might want to read its javadoc.
-
[Solved][1.7.2] Material function ?
Material doesn't have the effects you think. "sand" in particular does nothing but having a specific note from the note block, and display "sand color" on the map (MapColor) There are also "burning", "pushing", "tool use" flags in Material, but "sand" uses the defaults.
-
Get All players on a Server in a 'KeyHandler'
Looks like something that could be handled in a server command. You'll be able to set a permission level, as a bonus.
-
MinecraftServer.getServer() returns null! [Help]
Why do you want the server instance on a client anyways ?
-
(Solved)GUI handling causing game to crash with no crash report?
while(tileEntity instanceof TileEntityWindmill && world.getBlockMetadata(x, y, z) < ; Yeah, that is an infinite loop.
-
Version Number confusion
External librairies. Doesn't look like you searched before asking.
-
[1.7.2] Changing harvest level of vanilla Block
It will run at least on the first update for any mob/player. public static boolean onLivingUpdate(EntityLivingBase entity) { return MinecraftForge.EVENT_BUS.post(new LivingUpdateEvent(entity)); } Listen to that event and you'll be fine.
-
[1.7.2] player.addVelocity won't affect actual user velocity. {Solved}
Entity#setVelocity(double, double, double) is client-side only.
-
[1.7.2] armor material in configuration file
You need to initialize your armor material after the configuration settings are loaded, if you want them to be applied.
-
[1.7][SOLVED]Compare 2 items
He meant you created a new variable instead of using the static field.
-
How to make mob apply potion effect. [Code not working]
Use EntityLivingBase if you want to affect players and mobs.
-
Mods are Breaking
Go to the topic for each broken mods: -chocolate mod -tconstruct -millenaire
-
[1.7.2] random int [SOLVED]
if(i == 1); Take a close look.
-
[1.7.2] Can't find Modded Biome
WorldType#biomesForWorldType doesn't exist anymore. Either register a new WorldType and override getBiomeLayer(long, GenLayer) or use the WorldTypeEvent.InitBiomeGens.
-
[1.6.4] Give Player items at world generation
PlayerLoggedInEvent ?
-
Can't set custom Item or Block IDs? (1.7.2)
public chaosSword (int id, ToolMaterial ChaosSword) { super(ChaosSword); this.setMaxStackSize(1); this.setCreativeTab(tabStarlightWeapons); } "id" is totally unused in this constructor. Removing is advised.
-
[1.7.2]EntityPlayer Crash
Caused by: java.lang.ClassCastException: net.minecraft.entity.passive.EntityChicken cannot be cast to net.minecraft.entity.player.EntityPlayer The LivingUpdateEvent triggers for all living things, including chickens (which, are not players).
-
[1.7.2]What is proper entity registration (conflicting tutorials confusion)?
You don't need to have a global entity id at all. The #registerModEntity is the right one. This is totally correct. Also, while it doesn't give you a vanilla egg, it doesn't stop you from making one. The lazy step would be to register a global entity id and add it to the vanilla egg list. (but then the local id registration is far less interesting) Another solution is to create your own egg, like any item (see ItemMonsterPlacer, though you'll need to replace the global entity id lookup with either entity name or local id). Another solution is to use events and spawn the entity yourself.
IPS spam blocked by CleanTalk.