Jump to content

NewDivide

Members
  • Posts

    21
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

NewDivide's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. public static DamageSource itemHit = new DamageSource("itemHit").setDamageBypassesArmor(); To display a custom chat message on death by that item, and to change the damage amount when hit with that item
  2. Hey, I searched for a way to change the damage source on a custom item (non sword) when someone hits something, without using events, but i find nothing Is there a way to do it, or i need to subscribe to some event? Maybe LivingAttackEvent, Player EntityAttackEvent or something like that? Thanks in advance :)!
  3. That was quick, haha, im not copying BlockGlass again, thanks!
  4. Hey, I made item models involving water, and they turned really good... but when i tried blocks, they dont wanna be see-trough , I made an example for the sake of showing this, There you see all the item forms are see-through, and the block is not. BlockState Block model Item model Block class Item Class Initialization class Am I doing something wrong? Is it not possible due to water texture implementation? Thanks in advance, NewDivide
  5. Thanks, i didnt thought about that route, i set the texture variables with an empty path ("") in the main model, and override them in the child ones, and achive what i wanted, but ... Can you define a texture without seting its path?
  6. Hey, I've been searching for ways to use one model for various items, Came across with IItemColor/layers, and it kinda did the job, but it was a bit limiting, cause i would like to use varying textures with the same "skeleton". Is there a way to use one model the item defines it's texture? Thanks in advance, NewDivide
  7. Hey, i been trying to save atributes to the player, using nbt, but for some reason it doesnt save. Ive read that to save to a vanilla entity you have to use IExtendedProperties, or IPlayerTracker, but it seems that in 1.9 things changed, cause those classes are not where there are supposed to be... This is what i first tried : but i checked with NBTExplorer, and the data wasnt saved How can i save data to the player then? (persistent) Thanks!
  8. hey, I tryed to change "AttributeModifiers" on armor pieces and tools, the equivalent to e.g. "/give @p 301 1 0 {AttributeModifier:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.5,Operation:0,UUIDLeast:8000,UUIDMost:4000}]}". (this would be seen on the item like "+x% speed"). but when the item is created, "on created" event, but i dont really know what im doing ..., and the posts ive found werent what i was looking for. could someone hook me up with some info?
  9. Thanks! I added it under dependecies, worked like a charm
  10. Hey, i've been messing with player models in a new test mod, and i need to compile it to test if it works as intended, I've used gradlew build in order to compile it, but it stops due to stuff related to switch of strings in 1.6, Gradlew log: http://pastebin.com/K1W35G9L there was some information in other posts, but already tried and didnt work, how do i solve this for 1.9?
  11. i ve tried to do it that way, but it seems that @SubscribeEvent doesnt work like i thought, this doesnt fire at all, am i doing it wrong?
×
×
  • Create New...

Important Information

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