Loyalty Rewards

Mods
2,490 Downloads Last Updated: Apr 8, 2019 Game Version: 1.12.2

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);

 

 

Need a server? Get 20% off your first month by using promo code "mrbysco"

 

 

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: