Everything posted by DietmarKracht
-
Alternative to saving data other than Capabilities (Server Side)
So you are more the type of "give me some code i can copy and paste cuz i don't want to understand the concept thats going on here"? The documentation on capabilities is perfectly fine. They function as the exact purpose you just described in your first post. So give it a try at least. I doubt you are under strict time constraints and need to finish porting your mod within the next week....
-
Alternative to saving data other than Capabilities (Server Side)
Capabilities are not that hard to understand....
-
Playing a sound on the client with an event
You can get the client Player by calling Minecraft#getInstance#getPlayer
-
Armor Render Event
Subscribe to PlayerRenderEvent.Pre and cancel it.
-
[SOLVED] Attributes Not Applying
You need to register your Attributes void to the Mod Eventbus.
-
[1.16.5] My Entity Is Just A Shadow!
well you do not render your model. Inside your renderToBuffer method you need to render all ModelRenderers that you want to show
-
[1.16.5] Emitting light in the world without it rendering on the client?
For the mob spawning you could check when an entity joins the world (EntityJoinWorldEvent) and cancel that within a certain radius to your block. For the melting you would either use the randomtick of your block and manually melt ice around or use a tileentity for that
-
Solved: [1.16]Open custom inventory instead of vanilla player inventory
You do not need to cancel the event. You need to set the GUI of the event to yours.
-
[SOLVED] 1.16.5 Schedule Block Update
So i solved this by using blockstates for the intermediate state where the block would not update and schedule a tick after the given amount of time. Then in the tick() method of the block i do my logic when the blockstate matches my intermediate state.
-
[SOLVED] 1.16.5 Schedule Block Update
I want to know how i can schedule changes to a blockstate after a certain amount of time. I want to change the blocks state of my block on right click after some seconds to render an animation during this time. How would i approach this?
-
[SOLVED] 1.16.5 Completely stop Entity from moving
So i used a global list storing the entities affected by the freeze effect and manually ticked their effect in ServerTickEvent
-
[SOLVED] 1.16.5 Completely stop Entity from moving
So as far as i can see this event is not even used by forge. Also refering to the documentation it would not fit my need.
-
[SOLVED] 1.16.5 Completely stop Entity from moving
I don't think so, cuz i would need to modify vanilla entities for that.
-
[SOLVED] 1.16.5 Completely stop Entity from moving
Is there a way to completely stop an entity from moving (including head, limbs...) for a certain amount of time? I have an effect that should freeze the entities. If i set their motion to 0 they can still move their legs or head. That effect is my effect and it should be able to be applied to all enemies.
-
[Solved] 1.16.5 Get Entities Active Potion Effect Clientside
Thanks, its working as expected now!
-
[Solved] 1.16.5 Get Entities Active Potion Effect Clientside
It is just for my potion effect but for all entities
-
[Solved] 1.16.5 Get Entities Active Potion Effect Clientside
I need to get the active potion effect of an entity, but on the client side, since i need to render this entity based on the potion effect. Is there a way to sync the entities effects to the players client?
-
How to make a custom texture for wearing armor
https://championash5357.github.io/ChampionAsh5357/tutorial/minecraft/1.16.1/items/armor
-
1.16.5 Custom Texture Atlas
Does anyone know how to create a custom texture atlas? Currently i just stitch my textures to the chest atlas in TextureStitchEvent.Pre. But actually i want them to be stitched to a custom atlas. The atlas map from the event is final and can't be modified.
-
[1.16.4] Custom Dimension
Check out mcjty. He has tutorials on dimensions in 1.15 and porting them to 1.16 https://wiki.mcjty.eu/modding/index.php?title=YouTube-Tutorials If you need custom dynamic dimensions you should check out hyperbox: https://github.com/Commoble/hyperbox
-
[1.16.5] TileEntityRenderer renders item very dark
I am not using mojang mappings, but i think you need to use the combinedLight and combinedOverlay for rendering. Like this: renderer.renderItem(stack, ItemCameraTransforms.TransformType.FIXED, combinedLightIn, combinedOverlayIn, matrixStackIn, bufferIn);
-
Change Dimension using code 1.16.5
You need to get the MinecraftServer from a ServerPlayer first. Then use MinecraftServer#getWorld and use the target world registry key. You can find the vanilla registry keys in the World.class
-
[1.16.5]Anyway to prevent BREAKABLE ItemStack from breaking and meanwhile run a function?
Always debug to see if your methods are called. Use breakpoints or logging
-
Change Dimension using code 1.16.5
It is teleportTo iirc. Check the parameters. Though you need a serverworld as the targetworld
-
[1.16.5] TER render error (all blocks in the world have the same TER)
Where do you register your tile entity renderer?
IPS spam blocked by CleanTalk.