-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Posts posted by Animefan8888
-
-
Just now, tubi_carrillo said:
I haven't, I'm guessing I should specify it inside when registering the block? or is it inside the block class?
Check the link I posted.
-
4 minutes ago, hohserg said:
Yes, I want it!
There is no event for that. You will need to bake your data somewhere else.
- 1
-
5 minutes ago, tubi_carrillo said:
issue is with the json file per se.
You would likely be correct. Could you post your code and check out this post.
-
24 minutes ago, hohserg said:
Therefore I want to bake it render in chunk like baked blocks models.
This part is where I lose you. You want to bake your rendering data into the chunks rendering data?
-
3 hours ago, idontspam said:
where do i import it from?
It's this the net.minecraftforge.eventbus.api.SubscribeEvent.
If you can't import that you set up your workspace incorrectly and will need to inform us on how you set it up. -
55 minutes ago, ultra_reemun said:
Any help would be greatly appreciated, this is my first mod!
This is a little more complicated than what you have tried. When the key is pressed down you will need to send a packet to the server. The packet will say hey this player has pressed this button. The server will verify any other conditions then proceed with the appropriate response. In your case it will change the velocity of the player.
Now Minecraft uses xVel, yVel, and zVel so you likely need to use trig depending on exactly what you want to do.PlayerEntity::moveForward and PlayerEntity::moveStrafe are from what I can tell multipliers on the actual motion values. And any change you do to them will be imperceptible because they are changed immediately before the entity moves.
-
1 hour ago, Drachenbauer said:
Maybe i put a gradient png-texture in another color (for sample yellow) into a custome mod resource location.
I'm not sure if this will work, but it may be worth a try.
1 hour ago, Drachenbauer said:Can i tell the redstone wire to get it´s colors from there by writing a java-class?
Probably but you may as well just use code and no image file to get the color. In BlockColors.register seems to be what you want. You can use that to change the color of the redstone there.
-
3 hours ago, TheThorneCorporation said:
new Block.Properties.create(
Remove the new keyword.
-
5 hours ago, imacatlolol said:
Additionally, you should really be using DimensionManager's register methods for the sake of compatibility.
They also should be using the Registry Events to register things that belong in a registry...
-
1 minute ago, hohserg said:
Yes, but it are not provide way to bake custom render to chunk
There is no way for me to know what you want to do if you don't explain it. Please explain what exactly you want to do.
-
7 hours ago, Anonomys said:
And it still doesn't work i checked everything but it doesn't work!!!
Post the latest debug.log file.
-
7 hours ago, hohserg said:
Up
There doesn't seem to be an appropriate event for what you are wanting to do on 1.15.2. I'm not sure what you want to do, but there is RenderWorldLastEvent in 1.14.4
- 1
-
8 hours ago, Kiljaeden053 said:
I have an idea that you can copy the position of the model when animated then send it to the server
This is not how client-server architecture works. The server determines where the hitbox is then sends that to the client. So you are going to need to control the animation on the server and update the hitboxes accordingly.
-
9 hours ago, KidKoderMod033109 said:
class to make a custom Effect. I have the effect rigistered and everything, but it is not functioning. I would hope that I could use one of the functions in there to activate the effect when I use
Post your code.
-
9 hours ago, ninjatdx said:
but didn't work.
What does this mean?
9 hours ago, ninjatdx said:I tried to create a dependency
What did you try?
-
9 hours ago, Tupaç said:
Ah, i see. ok
is there a suggested method for saving data on disk? or you recommend anyone in special?Either to a JSON file via the GSON library(good if you want to easily be able to read the data with your eyes) or using CompoundNBT and CompressedStreamTools.
-
2 minutes ago, DavidM said:
Capabilities would also work, and would probably be a bit simpler to implement.
Capabilities wouldn't save the data if the mod is meant to be client side. At least not on dedicated servers. So @Tupaç is better off writing the file to disk themselves.
- 1
-
4 minutes ago, peter1745 said:
if anyone knows how to do this, or has any pointers to tutorials it would be very much appreciated
Seeing as how World Gen tutorials were pretty sparse even prior to 1.13 I doubt there are any or at least any good ones.
I would say look at the Buried Treasure structure/feature as it seems really basic. Basically look at where the constructors are called as well for the associated classes until a place looks like a registry or something to do with world generation. And use that to make a simple structure before you make your actual structure. -
16 minutes ago, saoj12 said:
One more thing, how do I look at the vanilla jar file? Up until now I've been right-clicking net.minecraft classes and clicking goto declaration in my IDE ?
In eclipse in the package explorer there is Reference Libraries -> client-extra.jar You can look at all the assets and data files for vanilla in there.
If you are not using eclipse I'm not sure of the entire process but somewhere there should be a client-extra.jar file you can look into. If not you can always go to your .minecraft folder and open the 1.15.2 versions jar file. -
Just now, saoj12 said:
I have made I am breaking the item in-game in the same conditions as I'm breaking the iron block. The BlockItem is also definitely registered as I can hold it in my hand
You also need to add a loot_table file for your block drops. If you need an example check out the vanilla jar file. Or look it up.
- 1
-
1 minute ago, Orionss said:
How could I repair this behaviour please .
You need to call World::addEntity
- 1
-
4 minutes ago, ScottBot10 said:
Where do I get GuiScreen? I couldn't find a class called GuiScreen, only GuiScreenEvent.
It's called Screen::hasShiftDown now.
- 1
-
3 minutes ago, Dr.Nickenstein said:
That method doesn't work, it makes my entity stay still forever when i hit it. I'll try to find a better solution
Post your code. You probably forgot to call the super methods because I didn't include them in my example.
-
6 minutes ago, Nitoxym said:
What do you mean? An event, class? If so, it's in RenderGameOverlayEvent
That's exactly what I meant. Inside the RenderGameOverlayEvent there is a getWIndow() function and that has a bunch of getters inside of it. There is one for getScaledWidth/Height and the normal getWidth/Height not sure which one you want to use though.
RenderWorldEvent in new versions
in Modder Support
Posted
You could look at ChunkRenderDispatcher, RegionRenderCacheBuilder, and WorldRenderer to figure out where and how.