Everything posted by DavidM
-
[1.15.2] No way to avoid coremod?
You can subscribe to RenderWorldLastEvent and manually render the player there. Only do this on the client that has its view entity changed to the camera.
-
[1.15.2] Issues with vanilla rendering
Oh hey you are making a JoJo mod! So the effect is global? In that case just send a packet to all clients that is in the same dimension (or else, depending on the coverage of the effect), and cancel all velocity of entities. The same works with continuing the time (except you will need to also include the initial velocity of all entities).
-
[1.15.2] Block that drops an item into a hopper or on the ground
Do you know how to code? If not, please learn Java first, as this forum does not provide copy-pasta code (we prefer you to learn how it works rather than copying and pasting other's work without learning anything). Show what you have tried.
-
[1.15.2] Issues with vanilla rendering
You will have to cancel the velocity on the client side too. Where are you doing this? If it is in a tile entity or a tickable object then you could get away with canceling the velocity of nearby objects on the client side in tick, otherwise you can create a stop time packet containing the range (coverage of the effect in the world) of the stop time effect, and send that to the client (as sending individual update velocity packets is both inefficient and considered a bad practice).
-
How to get Player position
In that case you just Minecraft.getInstance().player
-
[1.15.2] get World variable from save
You should really just make the mod server side and send whatever information you need from there to the client.
-
Display Text Over Head
Post what you’ve tried. The procedure should be very similar to the name tag displaying code. Post would be better in my opinion. Most people would expect stuff that changes the vanilla model to be in pre (scaling, rotating, etc) and additions to the rendering in post (health bars, rune circles, texts, etc). Following this allows other modders to cancel the event/modify stuff during the event without unexpected behaviors happening.
-
My Models Make it so you can see through the world
I'm currently on 31.1.44 (haven't updated yet). It might have been removed in more recent updates.
-
My Models Make it so you can see through the world
Hmm I can still find isOpaqueCube in the Block class in my 1.15 workspace. Not sure if using it is a good practice though (since the not solid is set in block properties now, as demonstrated by a few vanilla blocks).
-
My Models Make it so you can see through the world
Note that IDEs don't matter in the actual programming part. Either override Block#isOpaqueCube to return false call Properties#notSolid when constructing the block or make the block's voxel shape not fill up the entire 1*1*1 space.
-
FireworkRocketEntity should fire ProjectileImpactEvent
It doesn't act similarly to other projectiles. Whoa when did that get added?
-
[1.15.2]Possible to get server side tileentity data with client side mod?
That is not possible. What will the end result of your mod be like? It sounds like you are using a wrong method in approaching your problem.
-
[1.15.2] Recipe getRemainingItems not triggered
You can’t modify the crafting matrix in that event. Create a custom IRecipe instead.
-
[1.15.2]Possible to get server side tileentity data with client side mod?
No. What are you trying to do from an end-user’s perspective?
-
FireworkRocketEntity should fire ProjectileImpactEvent
FireworkRocketEntity is not a projectile; it wouldn’t make sense for it to trigger ProjectileImpactEvent.
-
Forge 1.15.2 Installer won't open
Please make your own thread.
-
Twitch Modpacks 1.13 above crash instantly
The current Windows launcher and Mac launcher are the same; they are all updated to use the newer launcher. Newer versions of the legacy launcher do support Minecraft versions above 1.13. Maybe Twitch screwed ups and didn't update or something.
-
[1.15.2] getBlockState does not updaate block for all players
You need to do this on the server side. Use World#isRemote to check whether the sides (true for client, false for server).
-
1.14.4 Forge-28.2.4 Crash || Error: java.lang.NullPointerException: Rendering overlay
Delete your config folder.
-
How can I update my mod from an earlier version.
The whole system is moving towards data packs, so what can be done in json should be done in json. You can still do anything you can do with Java with json.
-
[Crash] Ticking Block Entity --MC 1.15.2
Post logs.
-
[1.15.2] Help with Mob Movement (Please ;_;)
Post your code.
-
Leaf block showing transparent sections as black
I wouldn't call that monologuing. Draco18s is teaching you the correct/most effective way in solving similar problems (by searching in vanilla code and on the forums).
-
[1.15.2] How to send mining and walking function to player?
If you are implementing a curse effect then you should do all this server side. You can then send a packet to the client to rotate the camera or play certain animation.
-
[1.15.2] Help with Mob Movement (Please ;_;)
You will need a basic understanding of math/linear algebra to make mods that involved entity movement and custom rendering. I would suggest learning that first.
IPS spam blocked by CleanTalk.