Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

CAS_ual_TY

Members
  • Content Count

    72
  • Joined

  • Last visited

  • Days Won

    1

CAS_ual_TY last won the day on August 29 2019

CAS_ual_TY had the most liked content!

Community Reputation

18 Good

About CAS_ual_TY

  • Rank
    Stone Miner

Recent Profile Visitors

1621 profile views
  1. Hi, the mod I am working on downloads textures at runtime (used for Screen, not Items/Blocks ofc). This must be done in seperate threads, as otherwise the game freezes for the duration. Now, I have some experience with Multithreading, I know how to make things thread safe and all the basics you need to know for that. My goal is to use a Thread Pools like implementation, as there are multiple tasks todo (Download, Resize, Modify image entirely ...), and sometimes they need to be done in a specific order. The main question would be: What to do when Minecraft shuts down. All the tasks a
  2. Afaik There is an event that gets fired when an item gets dropped and the item entity is spawned. Cancel it and spawn your own item entity that does what you want. Assuming my 1st assumption is true
  3. https://wiki.mcjty.eu/modding/index.php?title=YouTube-Tutorials#Episode_2:_The_First_Block.2C_Capabilities.2C_Container.2C_Gui Containers dont really require anything special in constructor in regards to tile entities. You are not forced to open it on right click of a tile entity. You can also just open the container when right clicking an item etc.. Just depends on where you call the NetworkHooks method to open it. Most minecraft containers require the player or player inventory as parameter (in constructor) because they access said inventory. But you are free to do whatever you w
  4. 1st: In 1.15 the 2nd parameter of RayTraceContext#new was not a direction, but rather another position. If that is still the case, then in your case you would have to do something like: new RayTraceContext(eyePos, eyePos.add(player.getLookVec().scale(RANGE)), RayTraceContext.BlockMode.COLLIDER, RayTraceContext.FluidMode.NONE, player) 2nd: Out of curiosity: Why are you using ItemStack#isItemEqual instead of just comparing the items? Is NBT important here?
  5. In 1.15 there was World#rayTraceBlocks Which was pretty straightforward. Maybe that is still a thing in 1.16
  6. (also you should add a gitignore file to your repo. The default one found in the mdk is pretty good)
  7. FMLServerStartingEvent & FMLServerStoppedEvent & FMLPlayerLoggedInEvent = Server Only RenderWorldLastEvent & Minecraft.getInstance() = Client Only Mixing "Server Only" and "Client Only" = Very Bad, Not Working You could take a look at EntityJoinTheWorldEvent and use a flag. I personally dont know the best Client Side event for this
  8. 1. You need to move this into your ClientProxy https://github.com/BudRunBun/LavaLamp/blob/0a1c3ed2f1f451c554155d3259bbbf7f9fcedfcb/src/main/java/com/budrunbun/lavalamp/LavaLamp.java#L35 This might not be the issue of your error (I couldnt see it), but this could definitely cause issues 2. If you want to follow the minecraft package naming "convention", you should lower case your tileEntities package and also put all package names to singular (screens -> screen, items -> item etc.)
  9. What you just gave me doesnt help me at all. I dont know what renderPlayerInfo does. I also dont know where you register all of this (when its fired). So until you show more context Ill just give you some general stuff: There is 2 different buses: - mod bus, for "mod construction" events (eg. FMLCommonSetupEvent, TextureStichEvent, ModelRegistryEvent, ModConfigEvent etc.) - forge bus, for general minecraft events (eg. RenderGameOverlay, EntityJoinedTheWorld...) And there is different methods of registering. This sums it up:
  10. Did you make a blockstate json file? Recheck it to make sure.
  11. You would have to make your own ItemGroup class which overrides the "fill" method in which you add your items to the list in any order you want.
  12. RenderGameOverlayEvent is correct. Just the bus is not. Register to MinecraftForge.EVENT_BUS
  13. 1/2: https://github.com/CAS-ual-TY/YgoDuelingMod/blob/8888405bdde4992838441b472d33f920c03b63b0/src/main/java/de/cas_ual_ty/ydm/YDM.java#L197 2/2 (the three DeckBox*** classes): https://github.com/CAS-ual-TY/YgoDuelingMod/tree/8888405bdde4992838441b472d33f920c03b63b0/src/main/java/de/cas_ual_ty/ydm/deckbox This is how I implemented a deck box that can hold up to 90 card items. The only thing you will have to do different is to consider your slots to be the x/y size of 18; I used the size 16 for my slots because otherwise there would not be enough space (in container a
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.