Code Monkey home page Code Monkey logo

Comments (36)

NathanWolf avatar NathanWolf commented on June 1, 2024

You can use "&" for color codes in place of the special Mojang character. This should work in-game and in configs.

You can use the /mitem command to create a custom item in-game, then save it and add it to a shop.

See: https://github.com/elBukkit/MagicPlugin/wiki/CustomItems

Minecraft potion effect powers start at 0, try "night_vision:0".

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

For Minecraft potion effect, I tried: "night_vision:0" and it's still power 2.

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

And "&" doesn't work :
http://i.imgur.com/yXQuTWW.png
http://i.imgur.com/Q3PGOxy.png

Error: http://i.imgur.com/FDsWg5m.png

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

The item key itself can't change, unless you create it as a custom item. It should look like this if you want to keep it contained in the shop:

- item: bed
  cost: 100
  name: "&c&lBed"

Alternately, look at the custom items wiki link I posted above- you can create your custom item and save it and then put it in the shop, like...

/mgive bed
/mitem name &c&lBed
/mitem add lore An awesome bed!
/mitem save custombed

.. and then put "custombed" in the shop as the item. Maybe not worth it for something as simple as a rename.

I don't know what exactly you're customizing, but for most potion effects the config would look like this:

boon:
    parameters:
        effect_night_vision: 0

Tested this just now, it works fine, gives me the level 1 version.

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

Okey thanks you c:
But the effect doesn't work :/

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

http://i.imgur.com/f8OfXMi.png

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

It worked for me (though imgur is not, so you'll have to take my word for it)

Make sure to put "passive: true" on any magic item you want to work while worn. Otherwise effects are only granted when held.

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

Doesn't work, it's still power 1 with this :

mageboots:
passive: true
icon: iron_boots
indestructible: true
locked: true
keep: true
xp_max_boost: 0.2
potion_effects: fast_digging:0
enchantments:
protection_fall: 5
protection_fire: 4
depth_strider: 3

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

What do you mean? It should be power 1 with :0

This is what I get, is it not what you're getting?
Power 1

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

:(
conf

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

Can you try this in-game?

/wand configure potion_effects fast_digging:0

That's what I did, I didn't actually do it via configs but it should be identical.

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

It works, but the item seems to change back to power II promptly :
https://streamable.com/8al2

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

That seems very odd, it routes through the same code. I'll try out your configs when I get a chance.

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

Our server is on 1.8
Thanks you for your time

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

What version of Magic have you got?

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

5.5.3

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

@NathanWolf Fix ? :)

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

I don't have a 1.8 test server anymore, this is going to take me a little while sorry. It's working in the latest build of Magic.

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

You can test it in my server If you want, test server for plugins

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

Thanks for the offer, but I have to set up a local one for debugging. I just don't work on the 1.8 build much anymore, but I will get to this when I can!

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

Yes no problem
I'm not upgrading my server to 1.9 because a lot of players hate this version.

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

I'm creating a plugins and I want to know if it's possible to add mana to an item / wand after an event ?

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

You can control wand mana via the API, yes:

https://github.com/elBukkit/MagicAPI/blob/master/src/main/java/com/elmakers/mine/bukkit/api/wand/Wand.java#L104

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

With itemstack ?

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

No- if you're trying to change the wand a player is holding, best to use Mage.getActiveWand, this returns a Wand instance directly.

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

Ok I'll try, thanks for all !

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

Ok, I was wrong! This was broken in the current 1.9 build as well. It's now fixed in both places- please update:

http://jenkins.elmakers.com/job/MagicPlugin-1.8/30/com.elmakers.mine.bukkit.plugins$Magic/artifact/com.elmakers.mine.bukkit.plugins/Magic/5.5.6-SNAPSHOT/Magic-5.5.6-SNAPSHOT.jar

from magicplugin.

dumptruckman avatar dumptruckman commented on June 1, 2024

@Blamo27 if your player's don't like 1.9 because of the swing timer, they added a gamerule in 1.9.2 to disable that.

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

A gamerule? They did? Why U no tell me these things? :D

from magicplugin.

dumptruckman avatar dumptruckman commented on June 1, 2024

Uhhh... Maybe I'm just imagining things... I can't find it anymore D:

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

You tease!

Well in theory you could make a plugin to give all players increased attack speed to compensate.

IDK, personally I could never imagine holding up a server update based on player complaints. You've just got to stay up to date ... there's really no two ways about it. Exploits, plugins, etc ...

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

Some plugins are not up to date (1.9) :/

from magicplugin.

dumptruckman avatar dumptruckman commented on June 1, 2024

You must be using some obscure plugins :(

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

Elytra is so OP for PvP :/

from magicplugin.

Blamo27 avatar Blamo27 commented on June 1, 2024

PvP/Faction servers

from magicplugin.

NathanWolf avatar NathanWolf commented on June 1, 2024

Ha.. I'm sure you must have brooms, levitate, fling, blink and probably a zillion other spells disabled then. Players have a different opinion of what is "OP" when there's magic involved.

from magicplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.