Loyalty Rewards

This mod adds the ability to give a player an item or execute a command if he plays for a specified amount of time.

 

The mod is inspired by the lack of configurability in my other mod Loyalty Medals.

 

Using CraftTweaker you will be able to setup rewards.

Currently you can reward the following:

  • An item/block
  • Execute a command
  • An item/block and execute a command

By default the mod doesn't have rewards, It's up to the player or pack creator to specify the rewards.

 

Crafttweaker Info:

The String of amountOfTime can be either "sec(onds)", "min(utes)", "hour(s)". As long as either sec, min or hour is in there it's correct.


If you wanna use the Players username in the RawCommand string type @PLAYER where the players username should be. If you need the position type @PLAYERPOS.

 

An example of a IEntityDefinition would be <entity:minecraft:cow>

An example of an entityName string would be "minecraft:cow"

 

mods.loyaltyrewards.reward.addReward(String uniqueName, int time, String amountOfTime, IItemStack rewardStack);
mods.loyaltyrewards.reward.addReward(String uniqueName, int time, String amountOfTime, String RawCommand);
mods.loyaltyrewards.reward.addReward(String uniqueName, int time, String amountOfTime, IItemStack rewardStack, String RawCommand);<br />mods.loyaltyrewards.reward.addEggReward(String uniqueName, int time, String amountOfTime, IEntityDefinition entity);<br />mods.loyaltyrewards.reward.addEggReward(String uniqueName, int time, String amountOfTime, String entityName);

 

 

For questions feel free to join my Discord.

Discord Link

 

 Want to support me?

Patreon  -Mrbysco


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    298083
  • Created
    Jul 13, 2018
  • Last Released File
    Oct 18, 2018
  • Total Downloads
    1,725
  • License

Categories

Members

Recent Files