Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ixDarkLorD

Members
  • Joined

  • Last visited

Everything posted by ixDarkLorD

  1. I can't get all the item tag names. I've tried to use this method: ForgeRegistries.ITEMS.tags().getTagNames() But it's giving me an empty stream!
  2. Is there a way to make the Item Renderer render an item with a translucent look? I couldn't figure it out.
  3. I'm having trouble finding a way to access uniforms in the shader programs. What I'm trying to do is when there is an active post-effect I need a way to access the program's uniforms with codes in order to make changes in real-time. public static void activeShader(ResourceLocation shader) { var renderer = Minecraft.getInstance().gameRenderer; renderer.loadEffect(shader); } "shaders/program/testing.json" { "blend": { "func": "add", "srcrgb": "one", "dstrgb": "zero" }, "vertex": "sobel", "fragment": "darklight:testing", "attributes": [ "Position" ], "samplers": [ { "name": "DiffuseSampler" }, { "name": "PrevSampler" } ], "uniforms": [ { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, { "name": "InSize", "type": "float", "count": 2, "values": [ 1.0, 1.0 ] }, { "name": "OutSize", "type": "float", "count": 2, "values": [ 1.0, 1.0 ] }, { "name": "VoidSize", "type": "float", "count": 1, "values": [ 1.0 ] } ] }
  4. Sorry If I'm asking too much! How can you obtain the soul jar item for any mobs? By crafting them or interacting with a specific mob?
  5. I've got no solution for this particular way. But may I suggest? You can create one singular item and store the entity's data using NBT or Capability. It will make things easier and cleaner.
  6. Nvm! It took me 1 hour to figure out that I put the RenderType$CompositeState#setDepthTestState to NO_DEPTH_TEST
  7. Hi everyone! I have a hard time figuring out a way to make these box to not render behind the solid blocks. So, is there a way to prevent this from happening? Any ideas?
  8. Finally! I did it 🕺🤍
  9. Yeah, I got what you are saying. But the thing that I'm trying to do is to add the player replica entity to the client side so can only the same player who initiates the summoning can see it. It doesn't matter if it's a phantom, Because I will not save any data in it. I just want it for client camera manipulation. I think what I got wrong is using an id that already used and unproper player replica entity class. As for my use of the BlockEvent, I used a packet sent from the server to client to add the entity for the player.
  10. I want to make a player clone to spawn it in the world, but I can't figure it out. When I spawn the entity, the model doesn't render. So this is the player clone class: public class PlayerClone extends AbstractClientPlayer { public PlayerReplacement() { super(Minecraft.getInstance().level, Minecraft.getInstance().player.getGameProfile(), Minecraft.getInstance().player.getProfilePublicKey()); } @Override public boolean isModelPartShown(@NotNull PlayerModelPart part) { return Minecraft.getInstance().player != null && Minecraft.getInstance().player.isModelPartShown(part); } } And this is the way I used to spawn the Entity: @SubscribeEvent public static void onPlayerBreak(BlockEvent.BreakEvent event) { PlayerClone clone = new PlayerClone(); clone.readAdditionalSaveData(Minecraft.getInstance().player.saveWithoutId(new CompoundTag())); BlockPos pos = event.getPos().above(1); clone.setPos(pos.getX(), pos.getY(), pos.getZ()); Minecraft.getInstance().level.addPlayer(clone.getId(), clone); } In the console, I get this warn: Duplicate entity UUID 180df9z1-fs03-344c-a080-009bad2a9z4a: PlayerReplacment['Dev'/641, l='ClientLevel', x=279.00, y=68.00, z=295.00]
  11. @ChampionAsh5357 Thank you! ❤️ You saved me from wasting a lot of time.
  12. Is there a way to protect a specific generated structure from getting destroyed by a player until the player meets certain conditions?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.