-
Posts
1830 -
Joined
-
Last visited
-
Days Won
12
Posts posted by DavidM
-
-
You can replace the registry value with your own implementation of UnbreakingEnchantment.
Although depending on what you want to do, it might be better to listen for certain events (break block, etc) and check if the player has an unbreaking item in hand.
-
7 minutes ago, xX_deadbush_Xx said:
It's still not putting the translucent texture onj the block... It does work on the blockitem though. I have tried only having it render the translucent part and that worked so it seems like the block cant have more than one RenderType at once... Any other ideas? If nothing works i will try using a TESR
Blocks can have more than one render layer. Have you tried TheGreyGhost’s solution?
-
You would need to figure out a way to track all the blocks you want to find (i.e. record on generation, or iterate through the entire chunk when it is received by the client), and subscribe to RenderWorldLastEvent and draw wireframes around the blocks.
-
How much RAM do you have in your computer?
8G might be too much. 4-6G is enough.
-
Pre 14's changelog is no longer visible, so we cannot check on that.
Try updating to pre 16, which is compatible with Forge 31.1.63.
If that don't work then report to Optifine, since Forge has nothing to do with it.
-
51 minutes ago, Paul L said:
I don't think it is possible the mod source code as far as I know doesn't include the code for player controls that would be very cool though and I would be interested to see it if someone else knows more.
It is definitely possible, but I haven't seen any mod that does what OP suggested.
-
-
Clear gradle cache and try again.
-
1 hour ago, TowerMX said:
ItemStack item_stack = new ItemStack(item_var);
You cannot do that statically (well not exactly static, but the block is constructed way before the correct time to do this). The item isn't initialized at that time, and the object holder is still null. You probably don't want it to be singletons anyways.
Create a new stack and give it to the player inside onBlockActivated.
You are also adding to the player's inventory on both sides, while it should only be done on the server. Use World#isRemote (returns false on server and true on client) to check if you are on the server side.
-
You can use services like Pastebin.
-
1. Don't use @OnlyIn.
2. Please post the code properly. It is currently impossible to read.
3. You don't have a proper event subscriber. Please refer to the documentation page on event subscribing.
-
You should report this to the author of the mod.
-
That would be opening the file directly. You were told to open the file from the command line. Please do that.
Just in case you are unsure how to open via command line: https://stackoverflow.com/questions/5774970/run-jar-file-in-command-prompt
-
1 hour ago, AlierrisBrisingr said:
But I would need some advice on why minecraft doesn't work
To conclude your issue: stop downloading from repost sites like Minecraft-France.
Only download your mods from CurseForge or an official page.
In this case, TrashSlot is causing the problem. Remove your copy of it and download the latest version from CurseForge.
-
1 hour ago, DeDxYk594 said:
@SubscribeEvent
public void onBlockHarvested(BlockEvent.BreakEvent event)
{ IWorld world=event.getWorld();
world.setBlockState(event.getPos(),new BlockState(new Stump(),new ImmutableMap<String,String>()));
}
You are also setting the block on both sides. Interactions like block placement should only happen on the server side.
-
Please post your code.
-
Minecraft-France is a repost site. You should not download mods from it.
Please check out https://stopmodreposts.org.
-
What do you mean bye "gate"?
-
Please read the EAQ and post log.
- 1
-
Please post the results from opening the file via the command line.
-
Install Java.
-
1 hour ago, judeflear said:
I have used the JVM arguments method and it still doesnt work
This crash have nothing to do with JVM arguments whatsoever. Please don't blindly follow these random "solutions to crash" on YouTube/Reddit/etc, as each crash has a specific cause, and blindly changing stuff might result in bigger problems.
1.12.2 is no longer supported on these forum due to its age.
Please update to a modern version of Minecraft to receive support.
-
19 hours ago, Ugdhar said:
Just for the record, I never said that, you shouldn't quote things people didn't actually post/say.
I think OP is trying to quote something you said and reply to that, but accidentally replaced the quote instead of appending to the end of the post. I've seen quite a few people do that due to unfamiliarity with the forum software. @Jesus Christ Please be careful in the future, as misquoting someone can lead to serious confusion.
In addition, debug.log include everything in other logs with an addition of messages logged at debug level. debug.log is the most optimal log to post when asking for help.
-
2 minutes ago, Zanexm said:
Um is there a way to do this without admin rights
I don't think so.
If I recall correctly installations like Java would need administrator. You should contact the administrator for your computer.
[1.15.2] Problems rendering a block
in Modder Support
Posted
Please post your code.