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.

ninjawizard

Members
  • Joined

  • Last visited

Everything posted by ninjawizard

  1. yes! i figger it out thanks! was this the correct: !player.abilities.isCreativeMode instead of !player.capabilities.isCreativeSettings they changed CreativeSettings to CreativeMode... you see that was what i was talking about; they change all these functions and variables from version to version, i need a place where i can see what they changed, do they make such logs? that would help a lot them i would not have to bother people cause i want to learn. Now i need to make the model Sit when tamed, i got the model code ready and such, as before it worked on 1.12, now i need to update it too.. should i post it here or start a new topic? thanks again!
  2. you are you so agressive with me man? its my first time on this forum i dont know all your rules... anyway i guess that handIn thing fix it, now i still got 2 errors: error: capabilities has private access in CapabilityProvider if (!player.capabilities.isCreativeSettings) error: cannot find symbol if (!player.capabilities.isCreativeSettings) ^ symbol: variable isCreativeSettings location: variable capabilities of type CapabilityDispatcher 2 errors now i know is something on that capabilities thing there... can you help me? i will credit you on my mod i promisse... i got 3 mods on minecraft btw, if you want i can link them so you can take a look, maybe we can make a co-op work!
  3. also if there is a section for begginers i will be glad in posting there... is this for advanced help only? sorry again im new on this forum too.
  4. that was what i talking about.. the hand variable does not exist on 1.15 but was on 1.12, thats my problem. So i replace for hand for 'handIn' ?
  5. well sir just basic, i know the variables, the functions and such, im trying to learn java for my mod, this is my situation; i got this mod for 1.12 with 60,000 downloads and these kids really want the 1.15 version, and i dont want to let them down.. the little fellows have a blast with that mod.. so i really want to update it, i use to be able to edit the code to do pretty much all i wanted on 1.12, but i had to be away for personal disease problems so i lost track off all coding changes... im trying to find a site or something that shows all new commands and such, like for example the scale mob thing i manage to fix with some help, but they removed GlState and now you scale with ms.scale.. things like that... i just cant find basic info for that.. the info i need help with for my mod is how to set the new variable names (like 'hand') and the one for capabilties class.. or if you could point me a tutorial for making tameable mobs for 1.15 would be great too... i really apreciate some help thou, im having a really hard time to find help. PS- sorry my english im from Brazil
  6. yes i look on the cow file for the taming code.. im kinda new on this im very sorry for that, im trying to learn it.... i would be greateful if you could teach me what i need to change
  7. Hey guys, i got this code from 1.12 for taming im trying to update to 1.15 here.. got some errors thou (i cant find a replament for the 'hand' variable and others): PS- this is question about the code only, im not asking questions about MCreator.. //TAME CODE public void setTamed(boolean tamed) { super.setTamed(tamed); //whatever you want your mob to do when it's tamed e.g. the wolf's class uses this to increase the mob's max health to 20 if it's tamed } public boolean processInteract(PlayerEntity player, Hand handIn) { ItemStack itemstack = player.getHeldItem(hand); if (!this.isTamed() && itemstack.getItem() == Items.APPLE && !this.isBreedingItem(itemstack)) { if (!player.capabilities.isCreativeSettings) { itemstack.shrink(1); } if (!this.world.isRemote) { if (this.rand.nextInt(3) == 0 && !net.minecraftforge.event.ForgeEventFactory.onAnimalTame(this, player)) { this.setTamedBy(player); this.navigator.clearPath(); this.setAttackTarget((LivingEntity)null); this.sitGoal.setSitting(true); this.setHealth(8.0F); this.playTameEffect(true); this.world.setEntityState(this, (byte)7); } else { this.playTameEffect(false); this.world.setEntityState(this, (byte)6); } } return true; } else if (this.isOwner(player) && !this.world.isRemote && !this.isBreedingItem(itemstack)) { this.sitGoal.setSitting(!this.isSitting()); this.isJumping = false; this.navigator.clearPath(); this.setAttackTarget((LivingEntity)null); return true; } return super.processInteract(player, hand); } //TAME CODE END here is the 4 errors: java:175: error: cannot find symbol ItemStack itemstack = player.getHeldItem(hand); ^ symbol: variable hand location: class CustomEntity java:178: error: capabilities has private access in CapabilityProvider if (!player.capabilities.isCreativeSettings) java:178: error: cannot find symbol if (!player.capabilities.isCreativeSettings) java:212: error: cannot find symbol return super.processInteract(player, hand); ^ symbol: variable hand location: class CustomEntity 4 errors > Task :compileJava FAILED
  8. sorry but i was asking for help only.. i want to learn on my own way.
  9. i can post the hole thing if you need, thanks!
  10. im very new on java yet, i hope is this part you mention
  11. Hey guys, im kinda new here, hoping im posting it on the right section: I got this mod with tons of animal mobs from MC 1.12 and im trying to update it to 1.15, but im having a lot of problems with code change, Im trying to make my mob here climb walls like a Spider, so what i did was copy the Spider climb files, but for some reason it gives error on this line: private static final DataParameter<Byte> CLIMBING = EntityDataManager.createKey(CapuchinBrownEntity.class, DataSerializers.BYTE); the CapuchinBrownEntity part will give the error below, and if i replace it with SpiderEntity the mode wont appear in-game (off course): error: method createKey in class EntityDataManager cannot be applied to given types; private static final DataParameter<Byte> CLIMBING = EntityDataManager.createKey(CapuchinBrownEntity.class, DataSerializers.BYTE); ^ required: Class<? extends Entity>,IDataSerializer<T> found: Class<CapuchinBrownEntity>,IDataSerializer<Byte> reason: cannot infer type-variable(s) T (argument mismatch; Class<CapuchinBrownEntity> cannot be converted to Class<? extends Entity>) where T is a type-variable: T extends Object declared in method <T>createKey(Class<? extends Entity>,IDataSerializer<T>) 1 error > Task :compileJava FAILED FAILURE: Build failed with an exception. im trying to make my little monkey mobs climb blocks

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.