• Proceed with caution! Unofficial add-on plugins and abilities are not supported by the ProjectKorra staff. We will not provide support for broken add-ons. Download at your own risk.
  • Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

Programming Question (Ability Listeners)

SenpaiBlaze

Verified Member
So I went through some of Coolade's displayed videos and I did his tutorial, and successfully made Ingnite. Now I want to move on to something bigger. I have two questions, and here they are.

Question 1.) How can I make it so when you shift at water, the particles appear, and it shoots a certain order of blocks forward. Here, let me brake it down.

1. Shifting at water selects the source block
1.2 It displays particles (I Could Find This On My Own If I Need Two)
2.On Right Click, it shoots a certain order of water blocks forward
2.1 The Damage and Potion Effects It Gives The Player When It Hits Them

Question 2.) How to make it when someone shifts at a block, it turns into something else. Also how can I make it so it falls under the list of Earth-bendable blocks. Again, let me brake it down.

1. Shifting at a block triggers something so it turns into another block
2. How to make the blocks that it can be used on the earth bendable block list

If you know how to do this feel free to comment below, link me to tutorials (Won't Help As Much), or PM me. Thank you all! ~ Blaze
 

jedk1

New Member
as for question 1, look at block iterators, and look at the korra methods for setting TempBlock (thanks @runefist for the help with that), and i think korra has a method for creating particles (i use my own tho) so you might have to ask @AlexTheCoder for tips on that. For potion effects, when iterating thru the block iterator locations, do a check to get nearby entities and apply potion effects to them.

As for question 2, no idea.

hope ive been some help-ish xD
 

SenpaiBlaze

Verified Member
as for question 1, look at block iterators, and look at the korra methods for setting TempBlock (thanks @runefist for the help with that), and i think korra has a method for creating particles (i use my own tho) so you might have to ask @AlexTheCoder for tips on that. For potion effects, when iterating thru the block iterator locations, do a check to get nearby entities and apply potion effects to them.

As for question 2, no idea.

hope ive been some help-ish xD
Thanks :D
 

jedk1

New Member
I found that out, but my question was how would I make it where the move used the list as its bendable blocks instead of, lets say Stone
get the block and check it with
Code:
Methods.isEarthbendable(player, block);
 

AlexTheCoder

Staff member
Plugin Developer
Verified Member
For anything more detailed relating to PK Methods, feel free to ask any of the developers, up until we get a working JavaDocs or other Documentation of the class so any dev should be able to help
 

Coolade

Staff member
Plugin Developer
Verified Member
Somebody should put together a medium level tutorial that involves particles and progressing abilities over multiple ticks.
 

Coolade

Staff member
Plugin Developer
Verified Member
A youtube series would be much more tricky than just writing it out, but either one would be a big help to other people trying to code abilities.
 

jedk1

New Member
why cant u do one?
hes made one. the move im going to teach you to make, is going to be a tutorial of a higher level. It will involve block iterators and particles, then as a higher up tutorial it will be about checking blocks etc (maybe). Thats all im saying for now tho until i actually make this! :D
 

xX_FireGaming_Xx

Verified Member
hes made one. the move im going to teach you to make, is going to be a tutorial of a higher level. It will involve block iterators and particles, then as a higher up tutorial it will be about checking blocks etc (maybe). Thats all im saying for now tho until i actually make this! :D
he made a video?
 
Top