Author Topic: MattRoyal52's Add-Ons Topic - Pack 1 Released (Custom Gun and Mini-BuildBot)  (Read 4515 times)

Hello Everyone ! I rencently started coding and i finally created an addon !
He's contains 3 differents features

Custom Gun is a copy of the gun but with changeable projectiles and explosions


changed projectile to pong, for do this, do /guntopong

Changed into rocket. For do this, do /guntorocket


These things are the explosion, for custom explosion you need to get the original projectile, then do /guntogun
For this Jeep Explosion, do /extojeepex

For the custom explosion (using my emitter), do /extopfex


And for get the original gun explosion, do /extoex

Now for the buildbot this is just a chat command of the console commands : buildwall(); buildconfetti(); and buildstairs();

Type /buildwall for build a big block
Type /spammerbuild for build confetti and
Type /buildstairs for build stairs (Spam this command for make the famous infinite stairs ;)

Download link : https://www.dropbox.com/s/zdz6g6orke1glga/Tool_PeanutFish_Pack1v2.zip?dl=0

NOTE : YOU NEED Weapon_Gun FOR WORK!

So basically a Mixashoot but you can decide what to fire?
« Last Edit: August 05, 2016, 05:38:40 AM by Red Spy »

So basically a Mixashoot but you can decide what to fire?

No but will added soon :)

NO ONE DOWNLOAD THIS

I've just failed it on Blockland Glass with a very long list of reasons.
« Last Edit: August 05, 2016, 08:54:09 AM by jes00 »

I've just failed it on Blockland Glass with an extremely long list of reasons.
What's wrong with it?


What's wrong with it?
What is the fail ?
- Doesn't force require the default gun.
- Creates unnecessary packages.
- Modifies datablocks during gameplay(instead he should be creating the projectile manually in ::onFire since he wants the projectile to vary).
- Commands can be used by anyone and are easily spammable.
- Mixes server and client code.
- A package named BuildBot is probably already used by Nexus' Build Bot.
- When anyone uses /BuildWall, /SpammerBuild, or /BuildStairs then it'll actually cause the host to do those, not the person that used the command. This is also because he's mixed server and client code.
- Overwrites the default gun's damage type.
- The item for CgunImage is set to BowItem(it's also like this with the default gun, but that doesn't mean you should continue the problem).
- Overwrites gunImage::onFire.
« Last Edit: August 05, 2016, 08:44:20 AM by jes00 »

Type /buildwall for build a big block

Are you Annoying Orange

Oh dang, well, they did say that they recently started coding, so i imagine that they just didn't know any better and made some rookie mistakes

The download link should be removed for now until those problems can be worked out

- Doesn't force require the default gun.
- Creates unnecessary packages.
- Modifies datablocks during gameplay(instead he should be creating the projectile manually in ::onFire since he wants the projectile to vary).
- Commands can be used by anyone and are easily spammable.
- Mixes server and client code.
- A package named BuildBot is probably already used by Nexus' Build Bot.
- When anyone uses /BuildWall, /SpammerBuild, or /BuildStairs then it'll actually cause the host to do those, not the person that used the command. This is also because he's mixed server and client code.
- Overwrites the default gun's damage type.
- The item for CgunImage is set to BowItem(it's also like this with the default gun, but that doesn't mean you should continue the problem).
- Overwrites gunImage::onFire.

Yes, i know i'm not really good for coding i started recently. But, i want continue this addon and idk how i can fix these fails

Are you Annoying Orange

No i'm not Donald Annoying Orange, Donald Annoying Orange is this thing :


No i'm not Donald Annoying Orange, Donald Annoying Orange is this thing :
So, a god?

Yes, i know i'm not really good for coding i started recently. But, i want continue this addon and idk how i can fix these fails
I suggest finding something easier to code, and reading lots of other people's code to see how they did things.


Yes, i know i'm not really good for coding i started recently. But, i want continue this addon and idk how i can fix these fails
Well for starters.
You can look at Guns Akimbo to see how to force require an add-on.
Remove the packages.
Remove the commands because they don't work right anyways.
Remove the client command.
Remove the addDamageType line of code.
Change the item field under CgunImage to CgunItem.
Change the function gunImage::onFire to CgunImage::onFire.

Oh and read this: https://forum.blockland.us/index.php?topic=300531.msg9166358#msg9166358

When you've done all that and have posted your new code, I'll help you further.

Well for starters.
You can look at Guns Akimbo to see how to force require an add-on.
Remove the packages.
Remove the commands because they don't work right anyways.
Remove the client command.
Remove the addDamageType line of code.
Change the item field under CgunImage to CgunItem.
Change the function gunImage::onFire to CgunImage::onFire.

Oh and read this: https://forum.blockland.us/index.php?topic=300531.msg9166358#msg9166358

When you've done all that and have posted your new code, I'll help you further.
OK Thanks :D