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

perromercenary00

Members
  • Content Count

    564
  • Joined

  • Last visited

Community Reputation

2 Neutral

About perromercenary00

  • Rank
    Dragon Slayer

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

2933 profile views
  1. there was a time when the nbt system was broken and the nbt data in the server side was sinced no more to client side, they inplement a capabilities system and whith them you have to implement a package system to custome send only the data nesesary to the client side that was too shitty and too complicated soo make some animation on a item wass ridicolus i do this but end diching out minecraft modding as hobby https://studio.youtube.com/video/A_Hj05Yr2xs/edit if clasic nbttags are back doing something like this is cheape easy relatibely easy
  2. well im doing something again after long time i see a post asking for examples of nbt for 1.15 and do in a test_item <code> CompoundTag nbtTagCompound = itemStack.getTag(); if (nbtTagCompound == null) { nbtTagCompound = new CompoundTag(); itemStack.setTag(nbtTagCompound); } if (nbtTagCompound != null ) { if( !world.isClient ) { nbtTagCompound.putInt("x", nbtTagCompound.getInt("x") + 1 );
  3. goods i need to align an entity on a blockface but i need to work on nonfull size blocks like slabs or fences minecraft 1.16 has no more the EnumFacing attribute and for some reason they change raytrace name to raycast anyway i need to know to what face of the non-fullsize block where te raycast hit the block thanks for your time
  4. goog days i have a trouble and a broken english im doing some code to make guns in minecraft but i have this trouble i have a basic gun is this moment i make it shoot for rounds every time i press rigthclick one bullet every 256 milliseconds the gun works the shoot animation runs but notice than most of the times there was no sound effect and the code is not execute and no damage is cause to the target entity // ########################################################### public boolean disparo(ItemStack stack, World world, Entity entity) {
  5. lets say i need just a guide or a functional code whit an item runing whit a b3d model just to use as example to fix mi code
  6. good days lets start whit this this is an animation i did in the complicated way i make 60 frames and set the speed to one frame every 100ms so it play slow and all the frames become visible normally it plays one frame every 25ms i can control the animation in this case i launch it whit right-click, the trouble i have with this is to make the animation of the magazine take out from the gun if could just offset the magazine texture i just simply could make another script to edit the json frames and move the magazine texture under the gun texture fra
  7. i need to Mach two png files in texture for an item json all this to make a simple animation vanilla bow style lets say i got this json file in whitch i have two textures i need to fix the layer0 some pixels down normally it looks like this but i need to displace the magazine gradually to make it look like this i have this json { "parent": "modmercenario:item/prueba00/parental00", "textures": { "layer0": "modmercenario:items/armasdefuego/armas9mm/atss00", "layer1": "modmercenario:items/armasdefuego/armas9mm/at
  8. jummm interesting adding this two methods to the item class enable minecraft to read the nbt and sync it to remote world this also fix mi capabilitie issue the data is also reaching remote client // ############################################################################################3 /** * Override this method to decide what to do with the NBT data received from getNBTShareTag(). * * @param stack The stack that received NBT * @param nbt Received NBT, can be null */ @Override public void readNBTShareTag(ItemStack st
  9. and how goes this share tag mechanics when i search it it just display old nbttags guides
  10. well originally in 1.8 i use nbttags to store data in the itemstack in the server side whit it i can control animations in the remote world this video was in 1.10 or 1.11 don't remember clearly and the code is missing somewhere in the time nbttags stop syncing between worlds anymore someone tell me i have to move into capabilities i do so move to capabilities hoping it gonna sync i do a lot of code then it result into not syncing after all capabilities are based on nbt public void deserializeNBT(NBTBase nbtIn) {} public
  11. after calming down I was dusting off my old package manager thinking a way to send specific data to an specific item on a specific player world and well forge has already some kind of tool to do this or I must write it ? like in this case i need to serialize and send a long ,4 bytes and a Int
  12. public static final PropertyInteger LEVEL = PropertyInteger.create("level", 0, 3); is a remains of another test "Capabilities on items are not synced to the client by default" i don't like this part i need it to update the nbt values to the client so it could control animations to the item wait wait wait soo if the capability don't update to client then what capabilities are intended for?. if i have to create a custom package system just to manually sync simple values i could just keep using directly nbttags. this capability code
  13. Goo days and sorry for the broken English im doing a custome capability to manage some weapons and tools actually still in develop stage when i was doing mi code i notice that the values i set in item stack in the server side are not reaching the client side so i made a test item to check it out, but still the values i change remain even after i close the world , lets explain it better i have a test item "prueba00" and a costume capability "animacionMercenaria" in the item left click: i set a value for the variable action only in the server
  14. ya i got it also the textures i have to change mi items class to declare the textures accordantly @Override public void getSubItems (CreativeTabs tab, NonNullList<ItemStack> subItems) { if (getCreativeTab() != tab) return; super.getSubItems(tab, subItems); //subItems.add(new ItemStack(this, 1, 0)); subItems.add(new ItemStack(this, 1, 1)); subItems.add(new ItemStack(this, 1, 2)); subItems.add(new ItemStack(this, 1, 3)); subItems.add(new ItemStack(this, 1, 4)); subItems.add(new Ite
  15. good days I'm searching for a guide on how to use animation api to make a good looking items well i think is called animation api i get little information after decompressing the over watch mod and wanna make items luck like this an animated where i get i good guide to create good loking items an animate them tanks for reading sorry for broken english
×
×
  • Create New...

Important Information

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