-
Posts
642 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
Recent Profile Visitors
15201 profile views
TheRPGAdventurer's Achievements
Dragon Slayer (6/8)
4
Reputation
-
Hi everyone, i recently fixed the bug when riding a dragon that would cause the camera to be used as an xray passing through the blocks below, basing from rideable vanilla mobs like horse or pigs they orient the camera by using raytraceresult and subtract the distance from behind hence reducing the zoom dist thus fixing xray, their parameters are filled with rarely used methods what are their purposes? for (int i = 0; i < 8; ++i) // max thirdPersonDistance = 4 so 8 is a X 2 version? { float f3 = (float)((i & 1) * 2 - 1); // is 2 half of thirdPersonDistance? float f4 = (float)((i >> 1 & 1) * 2 - 1); // what the point of 1? float f5 = (float)((i >> 2 & 1) * 2 - 1); f3 = f3 * 0.1F; // why are they converted to 10 %? f4 = f4 * 0.1F; f5 = f5 * 0.1F; RayTraceResult raytraceresult = this.mc.world.rayTraceBlocks(new Vec3d(d0 + (double)f3, d1 + (double)f4, d2 + (double)f5), new Vec3d(d0 - d4 + (double)f3 + (double)f5, d1 - d6 + (double)f4, d2 - d5 + (double)f5)); Their purpose might help improve my xray fix. It isnt perfect XD
-
[1.11] Is it possible to change the font size of a string?
TheRPGAdventurer replied to Kander16's topic in Modder Support
ahh yeah thoguht that was for renderers only thanks dies -
[1.11] Is it possible to change the font size of a string?
TheRPGAdventurer replied to Kander16's topic in Modder Support
sorry for necroing this post but when i call the method it makes other stuff unintentionally smaller -
what do you mean open build.gradle as a project?
-
@V0idWa1k3r Ok man thank for the TileEntityItemStackRenderer advice and initalized it by calling TileEntityBanner.setItemValues(); now i know the model works because the top wooden part of the banner renderers but the slate with textures doesnt what am i doing wrong here? https://pastebin.com/GMaVFGK8
-
@V0idWa1k3r i already done that but how do i get the textures for it? you said puling out the data from the itemstack but i see no methods of getting the tileentity from Item.class. what do i need to call the the banner tile entity since it the only one that tores the data not the blockbanner nor the itembanner private ResourceLocation getBannerResourceLocation(TileEntityBanner bannerObj) { return BannerTextures.BANNER_DESIGNS.getResourceLocation(bannerObj.getPatternResourceLocation(), bannerObj.getPatternList(), bannerObj.getColorList()); }
-
Ok sorry for necroing this post. Using the render by item method works for me. but the problem is that it shows the bannerstand model which is the brown stick below i want it gone now, its there because I rendered it by the item model entity. now i want to render the banner model in the render instead of calling in the item model, with it can finally set bannerModel.bannerStand.showModel = true; to false removing the stick beloww. but how do i call in the item tileentity straight from the inventory data for the textures to render, the texture is automatically called in by the item?
-
1.12.2 need help for my datafixer
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
so how do i restore items from old world saves without calling in the "id" in DataFixers. As much as i can ee in Choonsters code when he helped me in datafixers i dont see him setting an ID. -
1.12.2 need help for my datafixer
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
how was their "id" set then when we call Item.setRegistryName or Item.etUnlocalizedName or Item.setTranslationKey -
1.12.2 need help for my datafixer
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
Ok someone debugged it and it say that the "id" nbt is null. Does registering an Item make an nbt already? -
1.12.2 need help for my datafixer
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support