Everything posted by Insane96MCP
-
Low FPS please help
Yeah you may have more java versions
-
Why is NetherBrick's harvestTools equal to null?
That did the job by checking if the StrVsBlock is > 1.0f
-
Why is NetherBrick's harvestTools equal to null?
Don't think so since I need to know if an Item can harvest the Block as Tool, not Level
-
Why is NetherBrick's harvestTools equal to null?
But this is not true for the NetherBrick
-
Low FPS please help
How what?
-
Low FPS please help
As you can see on the right side of the F3 screen, with forge your minecraft runs with the sheetty integrated GPU, while the non-forge runs with the UberPowerful GPU. Just change that. YOu should be able to do this from desktop > rightclick > NVIDIA control panel and there you have to set the right GPU. It's not a forge problem. I assume that you run the non-forge version from the original launcher and the Forge version from a different launcher (Twitch App, MultiMC, etc.) That gave me an headache for a month when I bought a new PC for "Why I have now a powerful computer and minecraft runs at 20 FPS??"
-
Low FPS please help
Do you have any mod installed (other than Optifine)? Could you send an F3-screen screenshot in-game? Do you experience something like this?
-
Why is NetherBrick's harvestTools equal to null?
I'm checking if the tool I'm using on blocks is effective on those. But for some reasons, netherbrick's harvestTool is null and not "pickaxe" Printing the actual tool class, block's unloalized name and block's harvestTool System.out.println(toolClass + " " + block.getUnlocalizedName() + " " + block.getHarvestTool(event.getState())); Outputs pickaxe tile.netherBrick null
-
How to use unlocalized strings other than on item / block names?
Nevermind. Found out that I can use %d / %s / ... and the parameters parameter in I18n.format()
-
How to use unlocalized strings other than on item / block names?
There's any convention I should use for placeholders?
-
How to use unlocalized strings other than on item / block names?
Oh, forgot about placeholders.
-
How to use unlocalized strings other than on item / block names?
Thanks everyone. I18n did the job. Another small question. How can I add a space after a string in the lang file? Like tooltip.item.base_info=This is an OP sword <-Space Seems like minecraft doesn't recognize the space. Nevermind. I'm stupid. ^ The same question goes for a space after the equal (=) tooltip.item.base_info= This is an OP sword In this case, minecraft doesn't recognize the string at all. I had to do tooltip.add(I18n.format("tooltip.item.base_info") + " "); and tooltip.add(" " + I18n.format("tooltip.item.base_info")); but I don't think that is a neat solution
-
How to use unlocalized strings other than on item / block names?
Double post. Deleted
-
How to use unlocalized strings other than on item / block names?
I would like to have item information with addInformation() but have it localized. I've tried with tooltip.add(ChatFormatting.DARK_PURPLE + "descr.bonus.hoe"); but is not working
-
PlayerDropsEvent and PlayerEvent.PlayerRespawnEvent not called in anyway?
But the second one is not registered. It's just a Method
-
PlayerDropsEvent and PlayerEvent.PlayerRespawnEvent not called in anyway?
It shouldn't since I have another LivingHurtEvent that works https://github.com/Insane-96/GalaxiteMod/tree/master/common/net/insane96mcp/galaxite
-
PlayerDropsEvent and PlayerEvent.PlayerRespawnEvent not called in anyway?
I have those 2 simple subscribed events: @SubscribeEvent public void PlayerDropsEvent(PlayerDropsEvent event) { Entity entity = event.getEntity(); System.out.println("Drop " + entity); } @SubscribeEvent public void PlayerRespawnEvent(PlayerEvent.PlayerRespawnEvent event) { System.out.println(event.player); } But none of them are called, neither when the player dies and when he respawns
-
Whats the best way to change vanilla blocks behaviour when events are not available?
Uhm well, I may have to move my mod to 1.12
-
Whats the best way to change vanilla blocks behaviour when events are not available?
The problem is that I've tried but the game crashes saying that the block has been registered twice: ResourceLocation location = new ResourceLocation("minecraft", "farmland"); newFarmland = new BlockNewFarmland(); newFarmland.setRegistryName(location); newFarmland.setCreativeTab(CreativeTabs.DECORATIONS); GameRegistry.register(newFarmland); GameRegistry.register(new ItemBlock(newFarmland), location); What's the point of this reply?
-
Whats the best way to change vanilla blocks behaviour when events are not available?
Deleted
-
Whats the best way to change vanilla blocks behaviour when events are not available?
Let's say I want to change how Farmland works (e.g. want to add a new propertyInteger to the block), or beacon. What should I do? Create a new block, with most of the same attributes and methods, and replace (using events) the vanilla one? Or there's some other method that works better?
-
Get a list of every entity registered and know if it is a mob?
As already said, I managed to do it. No need to instantiate every mob:
-
Adding a new slot to container returns an IndexOutOfBounds exception
The problem is that I'm using a vanilla method, and it should work alone.
-
Get a list of every entity registered and know if it is a mob?
I was doing the wrong way around. The solution is the opposite if (EntityCreature.class.isAssignableFrom(EntityList.getClass(entity))) //returns true if entity is a subtype of EntityCreature
-
Get a list of every entity registered and know if it is a mob?
Yeah, I meant the resource location for the lightning bolt does this what?
IPS spam blocked by CleanTalk.