-
Posts
1830 -
Joined
-
Last visited
-
Days Won
12
Everything posted by DavidM
-
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.
-
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
DavidM replied to its_queitw's topic in Modder Support
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. -
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).
-
In that case you just Minecraft.getInstance().player
-
You should really just make the mod server side and send whatever information you need from there to the client.
-
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
DavidM replied to jakethesnake123's topic in Modder Support
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
DavidM replied to jakethesnake123's topic in Modder Support
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
DavidM replied to jakethesnake123's topic in Modder Support
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
DavidM replied to [NoOneButNo]'s topic in Suggestions
It doesn't act similarly to other projectiles. Whoa when did that get added? -
You can’t modify the crafting matrix in that event. Create a custom IRecipe instead.
-
FireworkRocketEntity should fire ProjectileImpactEvent
DavidM replied to [NoOneButNo]'s topic in Suggestions
FireworkRocketEntity is not a projectile; it wouldn’t make sense for it to trigger ProjectileImpactEvent. -
Please make your own thread.
-
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
DavidM replied to TallYate's topic in Modder Support
You need to do this on the server side. Use World#isRemote to check whether the sides (true for client, false for server). -
How can I update my mod from an earlier version.
DavidM replied to Stanlyhalo's topic in Modder Support
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. -
Post logs.
-
[1.15.2] Help with Mob Movement (Please ;_;)
DavidM replied to BadBichShaquonda's topic in Modder Support
Post your code. -
Leaf block showing transparent sections as black
DavidM replied to Cyanideee's topic in Modder Support
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?
DavidM replied to IdiomCoder's topic in Modder Support
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 ;_;)
DavidM replied to BadBichShaquonda's topic in Modder Support
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.